| 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 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 103 |
| 104 private: | 104 private: |
| 105 friend class VisitRelayingRenderProcessHost; | 105 friend class VisitRelayingRenderProcessHost; |
| 106 | 106 |
| 107 // Control message handlers. | 107 // Control message handlers. |
| 108 void OnUpdatedCacheStats(const WebKit::WebCache::UsageStats& stats); | 108 void OnUpdatedCacheStats(const WebKit::WebCache::UsageStats& stats); |
| 109 void SuddenTerminationChanged(bool enabled); | 109 void SuddenTerminationChanged(bool enabled); |
| 110 void OnExtensionAddListener(const std::string& event_name); | 110 void OnExtensionAddListener(const std::string& event_name); |
| 111 void OnExtensionRemoveListener(const std::string& event_name); | 111 void OnExtensionRemoveListener(const std::string& event_name); |
| 112 void OnExtensionCloseChannel(int port_id); | 112 void OnExtensionCloseChannel(int port_id); |
| 113 // Renderer process is requesting that the browser process establish a GPU | |
| 114 // channel. | |
| 115 void OnMsgEstablishGpuChannel(); | |
| 116 // Renderer process is requesting that outstanding asynchronous GPU-related | |
| 117 // messages are processed. | |
| 118 void OnMsgSynchronizeGpu(IPC::Message* reply); | |
| 119 | 113 |
| 120 // Initialize support for visited links. Send the renderer process its initial | 114 // Initialize support for visited links. Send the renderer process its initial |
| 121 // set of visited links. | 115 // set of visited links. |
| 122 void InitVisitedLinks(); | 116 void InitVisitedLinks(); |
| 123 | 117 |
| 124 // Initialize support for user scripts. Send the renderer process its initial | 118 // Initialize support for user scripts. Send the renderer process its initial |
| 125 // set of scripts and listen for updates to scripts. | 119 // set of scripts and listen for updates to scripts. |
| 126 void InitUserScripts(); | 120 void InitUserScripts(); |
| 127 | 121 |
| 128 // Initialize support for extension APIs. Send the list of registered API | 122 // Initialize support for extension APIs. Send the list of registered API |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 // Messages we queue while waiting for the process handle. We queue them here | 203 // Messages we queue while waiting for the process handle. We queue them here |
| 210 // instead of in the channel so that we ensure they're sent after init related | 204 // instead of in the channel so that we ensure they're sent after init related |
| 211 // messages that are sent once the process handle is available. This is | 205 // messages that are sent once the process handle is available. This is |
| 212 // because the queued messages may have dependencies on the init messages. | 206 // because the queued messages may have dependencies on the init messages. |
| 213 std::queue<IPC::Message*> queued_messages_; | 207 std::queue<IPC::Message*> queued_messages_; |
| 214 | 208 |
| 215 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); | 209 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); |
| 216 }; | 210 }; |
| 217 | 211 |
| 218 #endif // CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ | 212 #endif // CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |