| 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_RENDERER_RENDER_THREAD_H_ | 5 #ifndef CHROME_RENDERER_RENDER_THREAD_H_ |
| 6 #define CHROME_RENDERER_RENDER_THREAD_H_ | 6 #define CHROME_RENDERER_RENDER_THREAD_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 // Do DNS prefetch resolution of a hostname. | 96 // Do DNS prefetch resolution of a hostname. |
| 97 void Resolve(const char* name, size_t length); | 97 void Resolve(const char* name, size_t length); |
| 98 | 98 |
| 99 // Send all the Histogram data to browser. | 99 // Send all the Histogram data to browser. |
| 100 void SendHistograms(int sequence_number); | 100 void SendHistograms(int sequence_number); |
| 101 | 101 |
| 102 // Invokes InformHostOfCacheStats after a short delay. Used to move this | 102 // Invokes InformHostOfCacheStats after a short delay. Used to move this |
| 103 // bookkeeping operation off the critical latency path. | 103 // bookkeeping operation off the critical latency path. |
| 104 void InformHostOfCacheStatsLater(); | 104 void InformHostOfCacheStatsLater(); |
| 105 | 105 |
| 106 // Sends a message to the browser to close all idle connections. |
| 107 void CloseIdleConnections(); |
| 108 |
| 109 // Sends a message to the browser to enable or disable the disk cache. |
| 110 void SetCacheMode(bool enabled); |
| 111 |
| 106 private: | 112 private: |
| 107 virtual void OnControlMessageReceived(const IPC::Message& msg); | 113 virtual void OnControlMessageReceived(const IPC::Message& msg); |
| 108 | 114 |
| 109 // Called by the thread base class | 115 // Called by the thread base class |
| 110 virtual void Init(); | 116 virtual void Init(); |
| 111 virtual void CleanUp(); | 117 virtual void CleanUp(); |
| 112 | 118 |
| 113 void OnUpdateVisitedLinks(base::SharedMemoryHandle table); | 119 void OnUpdateVisitedLinks(base::SharedMemoryHandle table); |
| 114 void OnUpdateUserScripts(base::SharedMemoryHandle table); | 120 void OnUpdateUserScripts(base::SharedMemoryHandle table); |
| 115 void OnSetExtensionFunctionNames(const std::vector<std::string>& names); | 121 void OnSetExtensionFunctionNames(const std::vector<std::string>& names); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 suicide_on_channel_error_filter_; | 171 suicide_on_channel_error_filter_; |
| 166 #endif | 172 #endif |
| 167 | 173 |
| 168 // If true, then a GetPlugins call is allowed to rescan the disk. | 174 // If true, then a GetPlugins call is allowed to rescan the disk. |
| 169 bool plugin_refresh_allowed_; | 175 bool plugin_refresh_allowed_; |
| 170 | 176 |
| 171 DISALLOW_COPY_AND_ASSIGN(RenderThread); | 177 DISALLOW_COPY_AND_ASSIGN(RenderThread); |
| 172 }; | 178 }; |
| 173 | 179 |
| 174 #endif // CHROME_RENDERER_RENDER_THREAD_H_ | 180 #endif // CHROME_RENDERER_RENDER_THREAD_H_ |
| OLD | NEW |