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_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 <string> | 10 #include <string> |
11 | 11 |
12 #include "base/process.h" | 12 #include "base/process.h" |
13 #include "base/ref_counted.h" | 13 #include "base/ref_counted.h" |
14 #include "base/scoped_ptr.h" | 14 #include "base/scoped_ptr.h" |
15 #include "base/shared_memory.h" | 15 #include "base/shared_memory.h" |
| 16 #include "base/string16.h" |
16 #include "base/timer.h" | 17 #include "base/timer.h" |
17 #include "chrome/common/transport_dib.h" | 18 #include "chrome/common/transport_dib.h" |
18 #include "chrome/browser/renderer_host/audio_renderer_host.h" | 19 #include "chrome/browser/renderer_host/audio_renderer_host.h" |
19 #include "chrome/browser/renderer_host/render_process_host.h" | 20 #include "chrome/browser/renderer_host/render_process_host.h" |
20 #include "chrome/common/notification_observer.h" | 21 #include "chrome/common/notification_observer.h" |
21 #include "webkit/glue/cache_manager.h" | 22 #include "webkit/glue/cache_manager.h" |
22 | 23 |
23 class CommandLine; | 24 class CommandLine; |
24 class GURL; | 25 class GURL; |
25 class PrefService; | 26 class PrefService; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 virtual void Unregister(); | 93 virtual void Unregister(); |
93 | 94 |
94 // Control message handlers. | 95 // Control message handlers. |
95 void OnPageContents(const GURL& url, int32 page_id, | 96 void OnPageContents(const GURL& url, int32 page_id, |
96 const std::wstring& contents); | 97 const std::wstring& contents); |
97 // Clipboard messages | 98 // Clipboard messages |
98 void OnClipboardWriteHTML(const std::wstring& markup, const GURL& src_url); | 99 void OnClipboardWriteHTML(const std::wstring& markup, const GURL& src_url); |
99 void OnClipboardWriteBookmark(const std::wstring& title, const GURL& url); | 100 void OnClipboardWriteBookmark(const std::wstring& title, const GURL& url); |
100 void OnClipboardWriteBitmap(base::SharedMemoryHandle bitmap, gfx::Size size); | 101 void OnClipboardWriteBitmap(base::SharedMemoryHandle bitmap, gfx::Size size); |
101 void OnClipboardIsFormatAvailable(unsigned int format, bool* result); | 102 void OnClipboardIsFormatAvailable(unsigned int format, bool* result); |
102 void OnClipboardReadText(std::wstring* result); | 103 void OnClipboardReadText(string16* result); |
103 void OnClipboardReadAsciiText(std::string* result); | 104 void OnClipboardReadAsciiText(std::string* result); |
104 void OnClipboardReadHTML(std::wstring* markup, GURL* src_url); | 105 void OnClipboardReadHTML(string16* markup, GURL* src_url); |
105 | 106 |
106 void OnUpdatedCacheStats(const CacheManager::UsageStats& stats); | 107 void OnUpdatedCacheStats(const CacheManager::UsageStats& stats); |
107 | 108 |
108 // Initialize support for visited links. Send the renderer process its initial | 109 // Initialize support for visited links. Send the renderer process its initial |
109 // set of visited links. | 110 // set of visited links. |
110 void InitVisitedLinks(); | 111 void InitVisitedLinks(); |
111 | 112 |
112 // Initialize support for user scripts. Send the renderer process its initial | 113 // Initialize support for user scripts. Send the renderer process its initial |
113 // set of scripts and listen for updates to scripts. | 114 // set of scripts and listen for updates to scripts. |
114 void InitUserScripts(); | 115 void InitUserScripts(); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 TransportDIB* MapTransportDIB(TransportDIB::Id dib_id); | 156 TransportDIB* MapTransportDIB(TransportDIB::Id dib_id); |
156 | 157 |
157 void ClearTransportDIBCache(); | 158 void ClearTransportDIBCache(); |
158 // This is used to clear our cache five seconds after the last use. | 159 // This is used to clear our cache five seconds after the last use. |
159 base::DelayTimer<BrowserRenderProcessHost> cached_dibs_cleaner_; | 160 base::DelayTimer<BrowserRenderProcessHost> cached_dibs_cleaner_; |
160 | 161 |
161 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); | 162 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); |
162 }; | 163 }; |
163 | 164 |
164 #endif // CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ | 165 #endif // CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ |
OLD | NEW |