Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/common/css_colors.h" | 16 #include "chrome/common/css_colors.h" |
| 17 #include "chrome/renderer/renderer_histogram_snapshots.h" | 17 #include "chrome/renderer/renderer_histogram_snapshots.h" |
| 18 #include "chrome/renderer/visitedlink_slave.h" | 18 #include "chrome/renderer/visitedlink_slave.h" |
| 19 | 19 |
| 20 class AppCacheDispatcher; | 20 class AppCacheDispatcher; |
| 21 class DBMessageFilter; | 21 class DBMessageFilter; |
| 22 class DevToolsAgentFilter; | 22 class DevToolsAgentFilter; |
| 23 class FilePath; | 23 class FilePath; |
| 24 class ListValue; | 24 class ListValue; |
| 25 | |
| 26 class RenderDnsMaster; | 25 class RenderDnsMaster; |
| 27 class RendererHistogram; | 26 class RendererHistogram; |
| 28 class RendererWebKitClientImpl; | 27 class RendererWebKitClientImpl; |
| 29 class SkBitmap; | 28 class SkBitmap; |
| 30 class UserScriptSlave; | 29 class UserScriptSlave; |
| 30 class URLPattern; | |
| 31 | |
| 31 struct ModalDialogEvent; | 32 struct ModalDialogEvent; |
| 32 struct RendererPreferences; | 33 struct RendererPreferences; |
| 33 struct WebPreferences; | 34 struct WebPreferences; |
| 34 | 35 |
| 35 // The RenderThreadBase is the minimal interface that a RenderView/Widget | 36 // The RenderThreadBase is the minimal interface that a RenderView/Widget |
| 36 // expects from a render thread. The interface basically abstracts a way to send | 37 // expects from a render thread. The interface basically abstracts a way to send |
| 37 // and receive messages. | 38 // and receive messages. |
| 38 class RenderThreadBase { | 39 class RenderThreadBase { |
| 39 public: | 40 public: |
| 40 virtual ~RenderThreadBase() {} | 41 virtual ~RenderThreadBase() {} |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 119 void Init(); | 120 void Init(); |
| 120 | 121 |
| 121 void OnUpdateVisitedLinks(base::SharedMemoryHandle table); | 122 void OnUpdateVisitedLinks(base::SharedMemoryHandle table); |
| 122 void OnAddVisitedLinks(const VisitedLinkSlave::Fingerprints& fingerprints); | 123 void OnAddVisitedLinks(const VisitedLinkSlave::Fingerprints& fingerprints); |
| 123 void OnResetVisitedLinks(); | 124 void OnResetVisitedLinks(); |
| 124 | 125 |
| 125 void OnUpdateUserScripts(base::SharedMemoryHandle table); | 126 void OnUpdateUserScripts(base::SharedMemoryHandle table); |
| 126 void OnSetExtensionFunctionNames(const std::vector<std::string>& names); | 127 void OnSetExtensionFunctionNames(const std::vector<std::string>& names); |
| 127 void OnPageActionsUpdated(const std::string& extension_id, | 128 void OnPageActionsUpdated(const std::string& extension_id, |
| 128 const std::vector<std::string>& page_actions); | 129 const std::vector<std::string>& page_actions); |
| 129 void OnExtensionSetPermissions(const std::string& extension_id, | 130 void OnExtensionSetAPIPermissions(const std::string& extension_id, |
| 130 const std::vector<std::string>& permissions); | 131 const std::vector<std::string>& permissions) ; |
|
Matt Perry
2009/08/21 00:30:06
80 chars
| |
| 132 void OnExtensionSetHostPermissions(const GURL& extension_url, | |
| 133 const std::vector<URLPattern>& permissions) ; | |
| 131 void OnSetNextPageID(int32 next_page_id); | 134 void OnSetNextPageID(int32 next_page_id); |
| 132 void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors); | 135 void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors); |
| 133 void OnCreateNewView(gfx::NativeViewId parent_hwnd, | 136 void OnCreateNewView(gfx::NativeViewId parent_hwnd, |
| 134 ModalDialogEvent modal_dialog_event, | 137 ModalDialogEvent modal_dialog_event, |
| 135 const RendererPreferences& renderer_prefs, | 138 const RendererPreferences& renderer_prefs, |
| 136 const WebPreferences& webkit_prefs, | 139 const WebPreferences& webkit_prefs, |
| 137 int32 view_id); | 140 int32 view_id); |
| 138 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); | 141 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); |
| 139 void OnSetCacheCapacities(size_t min_dead_capacity, | 142 void OnSetCacheCapacities(size_t min_dead_capacity, |
| 140 size_t max_dead_capacity, | 143 size_t max_dead_capacity, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 173 suicide_on_channel_error_filter_; | 176 suicide_on_channel_error_filter_; |
| 174 #endif | 177 #endif |
| 175 | 178 |
| 176 // If true, then a GetPlugins call is allowed to rescan the disk. | 179 // If true, then a GetPlugins call is allowed to rescan the disk. |
| 177 bool plugin_refresh_allowed_; | 180 bool plugin_refresh_allowed_; |
| 178 | 181 |
| 179 DISALLOW_COPY_AND_ASSIGN(RenderThread); | 182 DISALLOW_COPY_AND_ASSIGN(RenderThread); |
| 180 }; | 183 }; |
| 181 | 184 |
| 182 #endif // CHROME_RENDERER_RENDER_THREAD_H_ | 185 #endif // CHROME_RENDERER_RENDER_THREAD_H_ |
| OLD | NEW |