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

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

Issue 7464009: Removal of Profile from content part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: browser_context Created 9 years, 5 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
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 24 matching lines...) Expand all
35 // hosts using it go away. 35 // hosts using it go away.
36 // 36 //
37 // This object communicates back and forth with the RenderProcess object 37 // This object communicates back and forth with the RenderProcess object
38 // running in the renderer process. Each RenderProcessHost and RenderProcess 38 // running in the renderer process. Each RenderProcessHost and RenderProcess
39 // keeps a list of RenderView (renderer) and TabContents (browser) which 39 // keeps a list of RenderView (renderer) and TabContents (browser) which
40 // are correlated with IDs. This way, the Views and the corresponding ViewHosts 40 // are correlated with IDs. This way, the Views and the corresponding ViewHosts
41 // communicate through the two process objects. 41 // communicate through the two process objects.
42 class BrowserRenderProcessHost : public RenderProcessHost, 42 class BrowserRenderProcessHost : public RenderProcessHost,
43 public ChildProcessLauncher::Client { 43 public ChildProcessLauncher::Client {
44 public: 44 public:
45 explicit BrowserRenderProcessHost(Profile* profile); 45 explicit BrowserRenderProcessHost(content::BrowserContext* context);
jam 2011/07/22 16:58:38 nit: brower_context
46 virtual ~BrowserRenderProcessHost(); 46 virtual ~BrowserRenderProcessHost();
47 47
48 // RenderProcessHost implementation (public portion). 48 // RenderProcessHost implementation (public portion).
49 virtual void EnableSendQueue(); 49 virtual void EnableSendQueue();
50 virtual bool Init(bool is_accessibility_enabled); 50 virtual bool Init(bool is_accessibility_enabled);
51 virtual int GetNextRoutingID(); 51 virtual int GetNextRoutingID();
52 virtual void CancelResourceRequests(int render_widget_id); 52 virtual void CancelResourceRequests(int render_widget_id);
53 virtual void CrossSiteSwapOutACK(const ViewMsg_SwapOut_Params& params); 53 virtual void CrossSiteSwapOutACK(const ViewMsg_SwapOut_Params& params);
54 virtual bool WaitForUpdateMsg(int render_widget_id, 54 virtual bool WaitForUpdateMsg(int render_widget_id,
55 const base::TimeDelta& max_delay, 55 const base::TimeDelta& max_delay,
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 // Messages we queue while waiting for the process handle. We queue them here 144 // 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 145 // 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 146 // messages that are sent once the process handle is available. This is
147 // because the queued messages may have dependencies on the init messages. 147 // because the queued messages may have dependencies on the init messages.
148 std::queue<IPC::Message*> queued_messages_; 148 std::queue<IPC::Message*> queued_messages_;
149 149
150 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); 150 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost);
151 }; 151 };
152 152
153 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ 153 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698