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 void OnMsgEstablishGpuChannel(); |
113 | 114 |
114 // Initialize support for visited links. Send the renderer process its initial | 115 // Initialize support for visited links. Send the renderer process its initial |
115 // set of visited links. | 116 // set of visited links. |
116 void InitVisitedLinks(); | 117 void InitVisitedLinks(); |
117 | 118 |
118 // Initialize support for user scripts. Send the renderer process its initial | 119 // Initialize support for user scripts. Send the renderer process its initial |
119 // set of scripts and listen for updates to scripts. | 120 // set of scripts and listen for updates to scripts. |
120 void InitUserScripts(); | 121 void InitUserScripts(); |
121 | 122 |
122 // Initialize support for extension APIs. Send the list of registered API | 123 // Initialize support for extension APIs. Send the list of registered API |
(...skipping 80 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 | 204 // 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 | 205 // 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 | 206 // messages that are sent once the process handle is available. This is |
206 // because the queued messages may have dependencies on the init messages. | 207 // because the queued messages may have dependencies on the init messages. |
207 std::queue<IPC::Message*> queued_messages_; | 208 std::queue<IPC::Message*> queued_messages_; |
208 | 209 |
209 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); | 210 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); |
210 }; | 211 }; |
211 | 212 |
212 #endif // CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ | 213 #endif // CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ |
OLD | NEW |