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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 virtual void ResetVisitedLinks(); | 78 virtual void ResetVisitedLinks(); |
79 virtual bool FastShutdownIfPossible(); | 79 virtual bool FastShutdownIfPossible(); |
80 virtual bool SendWithTimeout(IPC::Message* msg, int timeout_ms); | 80 virtual bool SendWithTimeout(IPC::Message* msg, int timeout_ms); |
81 virtual base::ProcessHandle GetHandle(); | 81 virtual base::ProcessHandle GetHandle(); |
82 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id); | 82 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id); |
83 | 83 |
84 // IPC::Channel::Sender via RenderProcessHost. | 84 // IPC::Channel::Sender via RenderProcessHost. |
85 virtual bool Send(IPC::Message* msg); | 85 virtual bool Send(IPC::Message* msg); |
86 | 86 |
87 // IPC::Channel::Listener via RenderProcessHost. | 87 // IPC::Channel::Listener via RenderProcessHost. |
88 virtual void OnMessageReceived(const IPC::Message& msg); | 88 virtual bool OnMessageReceived(const IPC::Message& msg); |
89 virtual void OnChannelConnected(int32 peer_pid); | 89 virtual void OnChannelConnected(int32 peer_pid); |
90 virtual void OnChannelError(); | 90 virtual void OnChannelError(); |
91 | 91 |
92 // NotificationObserver implementation. | 92 // NotificationObserver implementation. |
93 virtual void Observe(NotificationType type, | 93 virtual void Observe(NotificationType type, |
94 const NotificationSource& source, | 94 const NotificationSource& source, |
95 const NotificationDetails& details); | 95 const NotificationDetails& details); |
96 | 96 |
97 // ChildProcessLauncher::Client implementation. | 97 // ChildProcessLauncher::Client implementation. |
98 virtual void OnProcessLaunched(); | 98 virtual void OnProcessLaunched(); |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 // messages that are sent once the process handle is available. This is | 224 // messages that are sent once the process handle is available. This is |
225 // because the queued messages may have dependencies on the init messages. | 225 // because the queued messages may have dependencies on the init messages. |
226 std::queue<IPC::Message*> queued_messages_; | 226 std::queue<IPC::Message*> queued_messages_; |
227 | 227 |
228 base::ScopedCallbackFactory<BrowserRenderProcessHost> callback_factory_; | 228 base::ScopedCallbackFactory<BrowserRenderProcessHost> callback_factory_; |
229 | 229 |
230 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); | 230 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); |
231 }; | 231 }; |
232 | 232 |
233 #endif // CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ | 233 #endif // CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ |
OLD | NEW |