| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 const NotificationSource& source, | 97 const NotificationSource& source, |
| 98 const NotificationDetails& details); | 98 const NotificationDetails& details); |
| 99 | 99 |
| 100 // ChildProcessLauncher::Client implementation. | 100 // ChildProcessLauncher::Client implementation. |
| 101 virtual void OnProcessLaunched(); | 101 virtual void OnProcessLaunched(); |
| 102 | 102 |
| 103 private: | 103 private: |
| 104 friend class VisitRelayingRenderProcessHost; | 104 friend class VisitRelayingRenderProcessHost; |
| 105 | 105 |
| 106 // Control message handlers. | 106 // Control message handlers. |
| 107 void OnPageContents(const GURL& url, int32 page_id, |
| 108 const std::wstring& contents); |
| 107 void OnUpdatedCacheStats(const WebKit::WebCache::UsageStats& stats); | 109 void OnUpdatedCacheStats(const WebKit::WebCache::UsageStats& stats); |
| 108 void SuddenTerminationChanged(bool enabled); | 110 void SuddenTerminationChanged(bool enabled); |
| 109 void OnExtensionAddListener(const std::string& event_name); | 111 void OnExtensionAddListener(const std::string& event_name); |
| 110 void OnExtensionRemoveListener(const std::string& event_name); | 112 void OnExtensionRemoveListener(const std::string& event_name); |
| 111 void OnExtensionCloseChannel(int port_id); | 113 void OnExtensionCloseChannel(int port_id); |
| 112 | 114 |
| 113 // Initialize support for visited links. Send the renderer process its initial | 115 // Initialize support for visited links. Send the renderer process its initial |
| 114 // set of visited links. | 116 // set of visited links. |
| 115 void InitVisitedLinks(); | 117 void InitVisitedLinks(); |
| 116 | 118 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 // Messages we queue while waiting for the process handle. We queue them here | 205 // Messages we queue while waiting for the process handle. We queue them here |
| 204 // instead of in the channel so that we ensure they're sent after init related | 206 // instead of in the channel so that we ensure they're sent after init related |
| 205 // messages that are sent once the process handle is available. This is | 207 // messages that are sent once the process handle is available. This is |
| 206 // because the queued messages may have dependencies on the init messages. | 208 // because the queued messages may have dependencies on the init messages. |
| 207 std::queue<IPC::Message*> queued_messages_; | 209 std::queue<IPC::Message*> queued_messages_; |
| 208 | 210 |
| 209 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); | 211 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); |
| 210 }; | 212 }; |
| 211 | 213 |
| 212 #endif // CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ | 214 #endif // CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |