| 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_RENDER_PROCESS_HOST_H_ | 5 #ifndef CHROME_BROWSER_RENDER_PROCESS_HOST_H_ |
| 6 #define CHROME_BROWSER_RENDER_PROCESS_HOST_H_ | 6 #define CHROME_BROWSER_RENDER_PROCESS_HOST_H_ |
| 7 | 7 |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 void OnClipboardIsFormatAvailable(unsigned int format, bool* result); | 198 void OnClipboardIsFormatAvailable(unsigned int format, bool* result); |
| 199 void OnClipboardReadText(std::wstring* result); | 199 void OnClipboardReadText(std::wstring* result); |
| 200 void OnClipboardReadAsciiText(std::string* result); | 200 void OnClipboardReadAsciiText(std::string* result); |
| 201 void OnClipboardReadHTML(std::wstring* markup, GURL* src_url); | 201 void OnClipboardReadHTML(std::wstring* markup, GURL* src_url); |
| 202 void OnUpdatedCacheStats(const CacheManager::UsageStats& stats); | 202 void OnUpdatedCacheStats(const CacheManager::UsageStats& stats); |
| 203 | 203 |
| 204 // Initialize support for visited links. Send the renderer process its initial | 204 // Initialize support for visited links. Send the renderer process its initial |
| 205 // set of visited links. | 205 // set of visited links. |
| 206 void InitVisitedLinks(); | 206 void InitVisitedLinks(); |
| 207 | 207 |
| 208 // Initialize support for Greasemonkey scripts. Send the renderer process its | 208 // Initialize support for user scripts. Send the renderer process its initial |
| 209 // initial set of scripts and listen for updates to scripts. | 209 // set of scripts and listen for updates to scripts. |
| 210 void InitGreasemonkeyScripts(); | 210 void InitUserScripts(); |
| 211 | 211 |
| 212 // Sends the renderer process a new set of Greasemonkey scripts. | 212 // Sends the renderer process a new set of user scripts. |
| 213 void SendGreasemonkeyScriptsUpdate(base::SharedMemory* shared_memory); | 213 void SendUserScriptsUpdate(base::SharedMemory* shared_memory); |
| 214 | 214 |
| 215 // Gets a handle to the renderer process, normalizing the case where we were | 215 // Gets a handle to the renderer process, normalizing the case where we were |
| 216 // started with --single-process. | 216 // started with --single-process. |
| 217 base::ProcessHandle GetRendererProcessHandle(); | 217 base::ProcessHandle GetRendererProcessHandle(); |
| 218 | 218 |
| 219 // Callers can reduce the RenderProcess' priority. | 219 // Callers can reduce the RenderProcess' priority. |
| 220 // Returns true if the priority is backgrounded; false otherwise. | 220 // Returns true if the priority is backgrounded; false otherwise. |
| 221 void SetBackgrounded(bool boost); | 221 void SetBackgrounded(bool boost); |
| 222 | 222 |
| 223 // Unregister this object from all globals that reference it. | 223 // Unregister this object from all globals that reference it. |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 // process can't cause denial of service by causing future named pipe creation | 282 // process can't cause denial of service by causing future named pipe creation |
| 283 // to fail. | 283 // to fail. |
| 284 return StringPrintf(L"%d.%x.%d", | 284 return StringPrintf(L"%d.%x.%d", |
| 285 GetCurrentProcessId(), instance, | 285 GetCurrentProcessId(), instance, |
| 286 base::RandInt(0, std::numeric_limits<int>::max())); | 286 base::RandInt(0, std::numeric_limits<int>::max())); |
| 287 } | 287 } |
| 288 | 288 |
| 289 | 289 |
| 290 #endif // CHROME_BROWSER_RENDER_PROCESS_HOST_H_ | 290 #endif // CHROME_BROWSER_RENDER_PROCESS_HOST_H_ |
| 291 | 291 |
| OLD | NEW |