OLD | NEW |
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 28 matching lines...) Expand all Loading... |
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(Profile* profile); |
46 virtual ~BrowserRenderProcessHost(); | 46 virtual ~BrowserRenderProcessHost(); |
47 | 47 |
48 // RenderProcessHost implementation (public portion). | 48 // RenderProcessHost implementation (public portion). |
| 49 virtual void EnableSendQueue(); |
49 virtual bool Init(bool is_accessibility_enabled); | 50 virtual bool Init(bool is_accessibility_enabled); |
50 virtual int GetNextRoutingID(); | 51 virtual int GetNextRoutingID(); |
51 virtual void CancelResourceRequests(int render_widget_id); | 52 virtual void CancelResourceRequests(int render_widget_id); |
52 virtual void CrossSiteSwapOutACK(const ViewMsg_SwapOut_Params& params); | 53 virtual void CrossSiteSwapOutACK(const ViewMsg_SwapOut_Params& params); |
53 virtual bool WaitForUpdateMsg(int render_widget_id, | 54 virtual bool WaitForUpdateMsg(int render_widget_id, |
54 const base::TimeDelta& max_delay, | 55 const base::TimeDelta& max_delay, |
55 IPC::Message* msg); | 56 IPC::Message* msg); |
56 virtual void ReceivedBadMessage(); | 57 virtual void ReceivedBadMessage(); |
57 virtual void WidgetRestored(); | 58 virtual void WidgetRestored(); |
58 virtual void WidgetHidden(); | 59 virtual void WidgetHidden(); |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 // Messages we queue while waiting for the process handle. We queue them here | 140 // Messages we queue while waiting for the process handle. We queue them here |
140 // instead of in the channel so that we ensure they're sent after init related | 141 // instead of in the channel so that we ensure they're sent after init related |
141 // messages that are sent once the process handle is available. This is | 142 // messages that are sent once the process handle is available. This is |
142 // because the queued messages may have dependencies on the init messages. | 143 // because the queued messages may have dependencies on the init messages. |
143 std::queue<IPC::Message*> queued_messages_; | 144 std::queue<IPC::Message*> queued_messages_; |
144 | 145 |
145 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); | 146 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); |
146 }; | 147 }; |
147 | 148 |
148 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ | 149 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ |
OLD | NEW |