Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: content/browser/renderer_host/browser_render_process_host.h

Issue 7864019: Fix a race in BrowserRenderProcessHost::FastShutdownIfPossible (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/renderer_host/browser_render_process_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 95
96 // Copies applicable command line switches from the given |browser_cmd| line 96 // Copies applicable command line switches from the given |browser_cmd| line
97 // flags to the output |renderer_cmd| line flags. Not all switches will be 97 // flags to the output |renderer_cmd| line flags. Not all switches will be
98 // copied over. 98 // copied over.
99 void PropagateBrowserCommandLineToRenderer(const CommandLine& browser_cmd, 99 void PropagateBrowserCommandLineToRenderer(const CommandLine& browser_cmd,
100 CommandLine* renderer_cmd) const; 100 CommandLine* renderer_cmd) const;
101 101
102 // Callers can reduce the RenderProcess' priority. 102 // Callers can reduce the RenderProcess' priority.
103 void SetBackgrounded(bool backgrounded); 103 void SetBackgrounded(bool backgrounded);
104 104
105 // Handle termination of our process.
106 void ProcessDied();
107
105 // The count of currently visible widgets. Since the host can be a container 108 // The count of currently visible widgets. Since the host can be a container
106 // for multiple widgets, it uses this count to determine when it should be 109 // for multiple widgets, it uses this count to determine when it should be
107 // backgrounded. 110 // backgrounded.
108 int32 visible_widgets_; 111 int32 visible_widgets_;
109 112
110 // Does this process have backgrounded priority. 113 // Does this process have backgrounded priority.
111 bool backgrounded_; 114 bool backgrounded_;
112 115
113 // Used to allow a RenderWidgetHost to intercept various messages on the 116 // Used to allow a RenderWidgetHost to intercept various messages on the
114 // IO thread. 117 // IO thread.
(...skipping 29 matching lines...) Expand all
144 // Messages we queue while waiting for the process handle. We queue them here 147 // Messages we queue while waiting for the process handle. We queue them here
145 // instead of in the channel so that we ensure they're sent after init related 148 // instead of in the channel so that we ensure they're sent after init related
146 // messages that are sent once the process handle is available. This is 149 // messages that are sent once the process handle is available. This is
147 // because the queued messages may have dependencies on the init messages. 150 // because the queued messages may have dependencies on the init messages.
148 std::queue<IPC::Message*> queued_messages_; 151 std::queue<IPC::Message*> queued_messages_;
149 152
150 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); 153 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost);
151 }; 154 };
152 155
153 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ 156 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/browser_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698