OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 25 matching lines...) Expand all Loading... |
36 class RendererNetPredictor; | 36 class RendererNetPredictor; |
37 class RendererWebKitClientImpl; | 37 class RendererWebKitClientImpl; |
38 class SpellCheck; | 38 class SpellCheck; |
39 class SkBitmap; | 39 class SkBitmap; |
40 class UserScriptSlave; | 40 class UserScriptSlave; |
41 class URLPattern; | 41 class URLPattern; |
42 class WebDatabaseObserverImpl; | 42 class WebDatabaseObserverImpl; |
43 | 43 |
44 struct ContentSettings; | 44 struct ContentSettings; |
45 struct RendererPreferences; | 45 struct RendererPreferences; |
46 struct ViewMsg_DOMStorageEvent_Params; | 46 struct DOMStorageMsg_Event_Params; |
47 struct ViewMsg_ExtensionsUpdated_Params; | 47 struct ViewMsg_ExtensionsUpdated_Params; |
48 struct ViewMsg_New_Params; | 48 struct ViewMsg_New_Params; |
49 struct WebPreferences; | 49 struct WebPreferences; |
50 | 50 |
51 namespace base { | 51 namespace base { |
52 class MessageLoopProxy; | 52 class MessageLoopProxy; |
53 template<class T> class ScopedCallbackFactory; | 53 template<class T> class ScopedCallbackFactory; |
54 class Thread; | 54 class Thread; |
55 } | 55 } |
56 | 56 |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 void OnResetVisitedLinks(); | 264 void OnResetVisitedLinks(); |
265 void OnSetZoomLevelForCurrentURL(const GURL& url, double zoom_level); | 265 void OnSetZoomLevelForCurrentURL(const GURL& url, double zoom_level); |
266 void OnSetContentSettingsForCurrentURL( | 266 void OnSetContentSettingsForCurrentURL( |
267 const GURL& url, const ContentSettings& content_settings); | 267 const GURL& url, const ContentSettings& content_settings); |
268 void OnUpdateUserScripts(base::SharedMemoryHandle table); | 268 void OnUpdateUserScripts(base::SharedMemoryHandle table); |
269 void OnSetExtensionFunctionNames(const std::vector<std::string>& names); | 269 void OnSetExtensionFunctionNames(const std::vector<std::string>& names); |
270 void OnExtensionsUpdated( | 270 void OnExtensionsUpdated( |
271 const ViewMsg_ExtensionsUpdated_Params& params); | 271 const ViewMsg_ExtensionsUpdated_Params& params); |
272 void OnPageActionsUpdated(const std::string& extension_id, | 272 void OnPageActionsUpdated(const std::string& extension_id, |
273 const std::vector<std::string>& page_actions); | 273 const std::vector<std::string>& page_actions); |
274 void OnDOMStorageEvent(const ViewMsg_DOMStorageEvent_Params& params); | 274 void OnDOMStorageEvent(const DOMStorageMsg_Event_Params& params); |
275 void OnExtensionSetAPIPermissions( | 275 void OnExtensionSetAPIPermissions( |
276 const std::string& extension_id, | 276 const std::string& extension_id, |
277 const std::set<std::string>& permissions); | 277 const std::set<std::string>& permissions); |
278 void OnExtensionSetHostPermissions( | 278 void OnExtensionSetHostPermissions( |
279 const GURL& extension_url, | 279 const GURL& extension_url, |
280 const std::vector<URLPattern>& permissions); | 280 const std::vector<URLPattern>& permissions); |
281 void OnSetNextPageID(int32 next_page_id); | 281 void OnSetNextPageID(int32 next_page_id); |
282 void OnSetIsIncognitoProcess(bool is_incognito_process); | 282 void OnSetIsIncognitoProcess(bool is_incognito_process); |
283 void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors); | 283 void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors); |
284 void OnCreateNewView(const ViewMsg_New_Params& params); | 284 void OnCreateNewView(const ViewMsg_New_Params& params); |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 | 408 |
409 // Map of registered v8 extensions. The key is the extension name. The value | 409 // Map of registered v8 extensions. The key is the extension name. The value |
410 // is true if the extension should be restricted to extension-related | 410 // is true if the extension should be restricted to extension-related |
411 // contexts. | 411 // contexts. |
412 std::map<std::string, bool> v8_extensions_; | 412 std::map<std::string, bool> v8_extensions_; |
413 | 413 |
414 DISALLOW_COPY_AND_ASSIGN(RenderThread); | 414 DISALLOW_COPY_AND_ASSIGN(RenderThread); |
415 }; | 415 }; |
416 | 416 |
417 #endif // CHROME_RENDERER_RENDER_THREAD_H_ | 417 #endif // CHROME_RENDERER_RENDER_THREAD_H_ |
OLD | NEW |