| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 | 10 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 // are correlated with IDs. This way, the Views and the corresponding ViewHosts | 53 // are correlated with IDs. This way, the Views and the corresponding ViewHosts |
| 54 // communicate through the two process objects. | 54 // communicate through the two process objects. |
| 55 class BrowserRenderProcessHost : public RenderProcessHost, | 55 class BrowserRenderProcessHost : public RenderProcessHost, |
| 56 public NotificationObserver, | 56 public NotificationObserver, |
| 57 public ChildProcessLauncher::Client { | 57 public ChildProcessLauncher::Client { |
| 58 public: | 58 public: |
| 59 explicit BrowserRenderProcessHost(Profile* profile); | 59 explicit BrowserRenderProcessHost(Profile* profile); |
| 60 ~BrowserRenderProcessHost(); | 60 ~BrowserRenderProcessHost(); |
| 61 | 61 |
| 62 // RenderProcessHost implementation (public portion). | 62 // RenderProcessHost implementation (public portion). |
| 63 virtual bool Init(bool is_extensions_process, | 63 virtual bool Init(bool is_extensions_process); |
| 64 URLRequestContextGetter* request_context); | |
| 65 virtual int GetNextRoutingID(); | 64 virtual int GetNextRoutingID(); |
| 66 virtual void CancelResourceRequests(int render_widget_id); | 65 virtual void CancelResourceRequests(int render_widget_id); |
| 67 virtual void CrossSiteClosePageACK(const ViewMsg_ClosePage_Params& params); | 66 virtual void CrossSiteClosePageACK(const ViewMsg_ClosePage_Params& params); |
| 68 virtual bool WaitForUpdateMsg(int render_widget_id, | 67 virtual bool WaitForUpdateMsg(int render_widget_id, |
| 69 const base::TimeDelta& max_delay, | 68 const base::TimeDelta& max_delay, |
| 70 IPC::Message* msg); | 69 IPC::Message* msg); |
| 71 virtual void ReceivedBadMessage(uint32 msg_type); | 70 virtual void ReceivedBadMessage(uint32 msg_type); |
| 72 virtual void WidgetRestored(); | 71 virtual void WidgetRestored(); |
| 73 virtual void WidgetHidden(); | 72 virtual void WidgetHidden(); |
| 74 virtual void ViewCreated(); | 73 virtual void ViewCreated(); |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 // Messages we queue while waiting for the process handle. We queue them here | 206 // Messages we queue while waiting for the process handle. We queue them here |
| 208 // instead of in the channel so that we ensure they're sent after init related | 207 // instead of in the channel so that we ensure they're sent after init related |
| 209 // messages that are sent once the process handle is available. This is | 208 // messages that are sent once the process handle is available. This is |
| 210 // because the queued messages may have dependencies on the init messages. | 209 // because the queued messages may have dependencies on the init messages. |
| 211 std::queue<IPC::Message*> queued_messages_; | 210 std::queue<IPC::Message*> queued_messages_; |
| 212 | 211 |
| 213 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); | 212 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); |
| 214 }; | 213 }; |
| 215 | 214 |
| 216 #endif // CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ | 215 #endif // CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |