Clean up code
This commit is contained in:
parent
95a8f3fc70
commit
3a3b05b2f0
1 changed files with 6 additions and 5 deletions
|
@ -31,14 +31,15 @@ namespace atom {
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
// The default routing id of WebContents, since in Electron a WebContents
|
// The default routing id of WebContents.
|
||||||
// always owns its own RenderProcessHost, this ID is same for every WebContents.
|
// In Electron each RenderProcessHost only has one WebContents, so this ID is
|
||||||
|
// same for every WebContents.
|
||||||
int kDefaultRoutingID = 2;
|
int kDefaultRoutingID = 2;
|
||||||
|
|
||||||
// Next navigation should not restart renderer process.
|
// Next navigation should not restart renderer process.
|
||||||
bool g_suppress_renderer_process_restart = false;
|
bool g_suppress_renderer_process_restart = false;
|
||||||
|
|
||||||
// Find out the owner of the child process according to child_process_id.
|
// Find out the owner of the child process according to |process_id|.
|
||||||
enum ProcessOwner {
|
enum ProcessOwner {
|
||||||
OWNER_NATIVE_WINDOW,
|
OWNER_NATIVE_WINDOW,
|
||||||
OWNER_GUEST_WEB_CONTENTS,
|
OWNER_GUEST_WEB_CONTENTS,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue