| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 public NotificationObserver, | 48 public NotificationObserver, |
| 49 public ChildProcessLauncher::Client { | 49 public ChildProcessLauncher::Client { |
| 50 public: | 50 public: |
| 51 explicit BrowserRenderProcessHost(Profile* profile); | 51 explicit BrowserRenderProcessHost(Profile* profile); |
| 52 ~BrowserRenderProcessHost(); | 52 ~BrowserRenderProcessHost(); |
| 53 | 53 |
| 54 // RenderProcessHost implementation (public portion). | 54 // RenderProcessHost implementation (public portion). |
| 55 virtual bool Init(bool is_accessibility_enabled, bool is_extensions_process); | 55 virtual bool Init(bool is_accessibility_enabled, bool is_extensions_process); |
| 56 virtual int GetNextRoutingID(); | 56 virtual int GetNextRoutingID(); |
| 57 virtual void CancelResourceRequests(int render_widget_id); | 57 virtual void CancelResourceRequests(int render_widget_id); |
| 58 virtual void CrossSiteClosePageACK(const ViewMsg_ClosePage_Params& params); | 58 virtual void CrossSiteSwapOutACK(const ViewMsg_SwapOut_Params& params); |
| 59 virtual bool WaitForUpdateMsg(int render_widget_id, | 59 virtual bool WaitForUpdateMsg(int render_widget_id, |
| 60 const base::TimeDelta& max_delay, | 60 const base::TimeDelta& max_delay, |
| 61 IPC::Message* msg); | 61 IPC::Message* msg); |
| 62 virtual void ReceivedBadMessage(); | 62 virtual void ReceivedBadMessage(); |
| 63 virtual void WidgetRestored(); | 63 virtual void WidgetRestored(); |
| 64 virtual void WidgetHidden(); | 64 virtual void WidgetHidden(); |
| 65 virtual int VisibleWidgetCount() const; | 65 virtual int VisibleWidgetCount() const; |
| 66 virtual bool FastShutdownIfPossible(); | 66 virtual bool FastShutdownIfPossible(); |
| 67 virtual bool SendWithTimeout(IPC::Message* msg, int timeout_ms); | 67 virtual bool SendWithTimeout(IPC::Message* msg, int timeout_ms); |
| 68 virtual base::ProcessHandle GetHandle(); | 68 virtual base::ProcessHandle GetHandle(); |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 // messages that are sent once the process handle is available. This is | 180 // messages that are sent once the process handle is available. This is |
| 181 // because the queued messages may have dependencies on the init messages. | 181 // because the queued messages may have dependencies on the init messages. |
| 182 std::queue<IPC::Message*> queued_messages_; | 182 std::queue<IPC::Message*> queued_messages_; |
| 183 | 183 |
| 184 base::ScopedCallbackFactory<BrowserRenderProcessHost> callback_factory_; | 184 base::ScopedCallbackFactory<BrowserRenderProcessHost> callback_factory_; |
| 185 | 185 |
| 186 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); | 186 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); |
| 187 }; | 187 }; |
| 188 | 188 |
| 189 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ | 189 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |