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 |
11 #include "base/gfx/native_widget_types.h" | 11 #include "base/gfx/native_widget_types.h" |
12 #include "base/shared_memory.h" | 12 #include "base/shared_memory.h" |
13 #include "base/task.h" | 13 #include "base/task.h" |
14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
15 #include "chrome/common/child_thread.h" | 15 #include "chrome/common/child_thread.h" |
16 #include "chrome/renderer/renderer_histogram_snapshots.h" | 16 #include "chrome/renderer/renderer_histogram_snapshots.h" |
| 17 #include "chrome/renderer/visitedlink_slave.h" |
17 | 18 |
18 class AppCacheDispatcher; | 19 class AppCacheDispatcher; |
19 class DevToolsAgentFilter; | 20 class DevToolsAgentFilter; |
20 class FilePath; | 21 class FilePath; |
21 class ListValue; | 22 class ListValue; |
22 class NotificationService; | 23 class NotificationService; |
23 class RenderDnsMaster; | 24 class RenderDnsMaster; |
24 class RendererHistogram; | 25 class RendererHistogram; |
25 class RendererWebKitClientImpl; | 26 class RendererWebKitClientImpl; |
26 class SkBitmap; | 27 class SkBitmap; |
27 class UserScriptSlave; | 28 class UserScriptSlave; |
28 class VisitedLinkSlave; | |
29 struct ModalDialogEvent; | 29 struct ModalDialogEvent; |
30 struct RendererPreferences; | 30 struct RendererPreferences; |
31 struct WebPreferences; | 31 struct WebPreferences; |
32 | 32 |
33 // The RenderThreadBase is the minimal interface that a RenderView/Widget | 33 // The RenderThreadBase is the minimal interface that a RenderView/Widget |
34 // expects from a render thread. The interface basically abstracts a way to send | 34 // expects from a render thread. The interface basically abstracts a way to send |
35 // and receive messages. | 35 // and receive messages. |
36 class RenderThreadBase { | 36 class RenderThreadBase { |
37 public: | 37 public: |
38 virtual ~RenderThreadBase() {} | 38 virtual ~RenderThreadBase() {} |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 void SetCacheMode(bool enabled); | 112 void SetCacheMode(bool enabled); |
113 | 113 |
114 private: | 114 private: |
115 virtual void OnControlMessageReceived(const IPC::Message& msg); | 115 virtual void OnControlMessageReceived(const IPC::Message& msg); |
116 | 116 |
117 // Called by the thread base class | 117 // Called by the thread base class |
118 virtual void Init(); | 118 virtual void Init(); |
119 virtual void CleanUp(); | 119 virtual void CleanUp(); |
120 | 120 |
121 void OnUpdateVisitedLinks(base::SharedMemoryHandle table); | 121 void OnUpdateVisitedLinks(base::SharedMemoryHandle table); |
| 122 void OnAddVisitedLinks(const VisitedLinkSlave::Fingerprints& fingerprints); |
| 123 void OnResetVisitedLinks(); |
| 124 |
122 void OnUpdateUserScripts(base::SharedMemoryHandle table); | 125 void OnUpdateUserScripts(base::SharedMemoryHandle table); |
123 void OnSetExtensionFunctionNames(const std::vector<std::string>& names); | 126 void OnSetExtensionFunctionNames(const std::vector<std::string>& names); |
124 void OnSetNextPageID(int32 next_page_id); | 127 void OnSetNextPageID(int32 next_page_id); |
125 void OnCreateNewView(gfx::NativeViewId parent_hwnd, | 128 void OnCreateNewView(gfx::NativeViewId parent_hwnd, |
126 ModalDialogEvent modal_dialog_event, | 129 ModalDialogEvent modal_dialog_event, |
127 const RendererPreferences& renderer_prefs, | 130 const RendererPreferences& renderer_prefs, |
128 const WebPreferences& webkit_prefs, | 131 const WebPreferences& webkit_prefs, |
129 int32 view_id); | 132 int32 view_id); |
130 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); | 133 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); |
131 void OnSetCacheCapacities(size_t min_dead_capacity, | 134 void OnSetCacheCapacities(size_t min_dead_capacity, |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 suicide_on_channel_error_filter_; | 175 suicide_on_channel_error_filter_; |
173 #endif | 176 #endif |
174 | 177 |
175 // If true, then a GetPlugins call is allowed to rescan the disk. | 178 // If true, then a GetPlugins call is allowed to rescan the disk. |
176 bool plugin_refresh_allowed_; | 179 bool plugin_refresh_allowed_; |
177 | 180 |
178 DISALLOW_COPY_AND_ASSIGN(RenderThread); | 181 DISALLOW_COPY_AND_ASSIGN(RenderThread); |
179 }; | 182 }; |
180 | 183 |
181 #endif // CHROME_RENDERER_RENDER_THREAD_H_ | 184 #endif // CHROME_RENDERER_RENDER_THREAD_H_ |
OLD | NEW |