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_RENDERER_RENDER_THREAD_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_H_ |
6 #define CONTENT_RENDERER_RENDER_THREAD_H_ | 6 #define CONTENT_RENDERER_RENDER_THREAD_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 | 183 |
184 bool plugin_refresh_allowed() const { return plugin_refresh_allowed_; } | 184 bool plugin_refresh_allowed() const { return plugin_refresh_allowed_; } |
185 | 185 |
186 double idle_notification_delay_in_s() const { | 186 double idle_notification_delay_in_s() const { |
187 return idle_notification_delay_in_s_; | 187 return idle_notification_delay_in_s_; |
188 } | 188 } |
189 void set_idle_notification_delay_in_s(double idle_notification_delay_in_s) { | 189 void set_idle_notification_delay_in_s(double idle_notification_delay_in_s) { |
190 idle_notification_delay_in_s_ = idle_notification_delay_in_s; | 190 idle_notification_delay_in_s_ = idle_notification_delay_in_s; |
191 } | 191 } |
192 | 192 |
193 // Sends a message to the browser to close all connections. | |
194 void CloseCurrentConnections(); | |
195 | |
196 // Sends a message to the browser to enable or disable the disk cache. | |
197 void SetCacheMode(bool enabled); | |
198 | |
199 // Sends a message to the browser to clear the disk cache. | |
200 // |preserve_ssl_host_info| is a flag indicating if the cache should purge | |
201 // entries related to cached SSL information. | |
202 void ClearCache(bool preserve_ssl_host_info); | |
203 | |
204 // Sends a message to the browser to clear thed host cache. | |
205 void ClearHostResolverCache(); | |
206 | |
207 // Sends a message to the browser to clear the predictor cache. | |
208 void ClearPredictorCache(); | |
209 | |
210 // Sends a message to the browser to enable/disable spdy. | |
211 void EnableSpdy(bool enable); | |
212 | |
213 // Synchronously establish a channel to the GPU plugin if not previously | 193 // Synchronously establish a channel to the GPU plugin if not previously |
214 // established or if it has been lost (for example if the GPU plugin crashed). | 194 // established or if it has been lost (for example if the GPU plugin crashed). |
215 // If there is a pending asynchronous request, it will be completed by the | 195 // If there is a pending asynchronous request, it will be completed by the |
216 // time this routine returns. | 196 // time this routine returns. |
217 GpuChannelHost* EstablishGpuChannelSync(content::CauseForGpuLaunch); | 197 GpuChannelHost* EstablishGpuChannelSync(content::CauseForGpuLaunch); |
218 | 198 |
219 // Get the GPU channel. Returns NULL if the channel is not established or | 199 // Get the GPU channel. Returns NULL if the channel is not established or |
220 // has been lost. | 200 // has been lost. |
221 GpuChannelHost* GetGpuChannel(); | 201 GpuChannelHost* GetGpuChannel(); |
222 | 202 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 | 280 |
301 // Map of registered v8 extensions. The key is the extension name. | 281 // Map of registered v8 extensions. The key is the extension name. |
302 std::set<std::string> v8_extensions_; | 282 std::set<std::string> v8_extensions_; |
303 | 283 |
304 ObserverList<RenderProcessObserver> observers_; | 284 ObserverList<RenderProcessObserver> observers_; |
305 | 285 |
306 DISALLOW_COPY_AND_ASSIGN(RenderThread); | 286 DISALLOW_COPY_AND_ASSIGN(RenderThread); |
307 }; | 287 }; |
308 | 288 |
309 #endif // CONTENT_RENDERER_RENDER_THREAD_H_ | 289 #endif // CONTENT_RENDERER_RENDER_THREAD_H_ |
OLD | NEW |