Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(470)

Side by Side Diff: chrome/renderer/extensions/dispatcher.h

Issue 63273002: Rename WebKit namespace to blink (part 4) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_EXTENSIONS_DISPATCHER_H_ 5 #ifndef CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_
6 #define CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ 6 #define CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 14 matching lines...) Expand all
25 #include "third_party/WebKit/public/platform/WebVector.h" 25 #include "third_party/WebKit/public/platform/WebVector.h"
26 #include "v8/include/v8.h" 26 #include "v8/include/v8.h"
27 27
28 class ChromeRenderViewTest; 28 class ChromeRenderViewTest;
29 class GURL; 29 class GURL;
30 class ModuleSystem; 30 class ModuleSystem;
31 class URLPattern; 31 class URLPattern;
32 struct ExtensionMsg_ExternalConnectionInfo; 32 struct ExtensionMsg_ExternalConnectionInfo;
33 struct ExtensionMsg_Loaded_Params; 33 struct ExtensionMsg_Loaded_Params;
34 34
35 namespace WebKit { 35 namespace blink {
36 class WebFrame; 36 class WebFrame;
37 class WebSecurityOrigin; 37 class WebSecurityOrigin;
38 } 38 }
39 39
40 namespace base { 40 namespace base {
41 class DictionaryValue; 41 class DictionaryValue;
42 class ListValue; 42 class ListValue;
43 } 43 }
44 44
45 namespace content { 45 namespace content {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 RequestSender* request_sender() { 82 RequestSender* request_sender() {
83 return request_sender_.get(); 83 return request_sender_.get();
84 } 84 }
85 85
86 bool IsExtensionActive(const std::string& extension_id) const; 86 bool IsExtensionActive(const std::string& extension_id) const;
87 87
88 // Finds the extension ID for the JavaScript context associated with the 88 // Finds the extension ID for the JavaScript context associated with the
89 // specified |frame| and isolated world. If |world_id| is zero, finds the 89 // specified |frame| and isolated world. If |world_id| is zero, finds the
90 // extension ID associated with the main world's JavaScript context. If the 90 // extension ID associated with the main world's JavaScript context. If the
91 // JavaScript context isn't from an extension, returns empty string. 91 // JavaScript context isn't from an extension, returns empty string.
92 std::string GetExtensionID(const WebKit::WebFrame* frame, int world_id); 92 std::string GetExtensionID(const blink::WebFrame* frame, int world_id);
93 93
94 void DidCreateScriptContext(WebKit::WebFrame* frame, 94 void DidCreateScriptContext(blink::WebFrame* frame,
95 v8::Handle<v8::Context> context, 95 v8::Handle<v8::Context> context,
96 int extension_group, 96 int extension_group,
97 int world_id); 97 int world_id);
98 void WillReleaseScriptContext(WebKit::WebFrame* frame, 98 void WillReleaseScriptContext(blink::WebFrame* frame,
99 v8::Handle<v8::Context> context, 99 v8::Handle<v8::Context> context,
100 int world_id); 100 int world_id);
101 101
102 void DidCreateDocumentElement(WebKit::WebFrame* frame); 102 void DidCreateDocumentElement(blink::WebFrame* frame);
103 103
104 void DidMatchCSS( 104 void DidMatchCSS(
105 WebKit::WebFrame* frame, 105 blink::WebFrame* frame,
106 const WebKit::WebVector<WebKit::WebString>& newly_matching_selectors, 106 const blink::WebVector<blink::WebString>& newly_matching_selectors,
107 const WebKit::WebVector<WebKit::WebString>& stopped_matching_selectors); 107 const blink::WebVector<blink::WebString>& stopped_matching_selectors);
108 108
109 // TODO(mpcomplete): remove. http://crbug.com/100411 109 // TODO(mpcomplete): remove. http://crbug.com/100411
110 bool IsAdblockWithWebRequestInstalled() const { 110 bool IsAdblockWithWebRequestInstalled() const {
111 return webrequest_adblock_; 111 return webrequest_adblock_;
112 } 112 }
113 bool IsAdblockPlusWithWebRequestInstalled() const { 113 bool IsAdblockPlusWithWebRequestInstalled() const {
114 return webrequest_adblock_plus_; 114 return webrequest_adblock_plus_;
115 } 115 }
116 bool IsOtherExtensionWithWebRequestInstalled() const { 116 bool IsOtherExtensionWithWebRequestInstalled() const {
117 return webrequest_other_; 117 return webrequest_other_;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 // Returns whether the current renderer hosts a platform app. 241 // Returns whether the current renderer hosts a platform app.
242 bool IsWithinPlatformApp(); 242 bool IsWithinPlatformApp();
243 243
244 bool IsSandboxedPage(const GURL& url) const; 244 bool IsSandboxedPage(const GURL& url) const;
245 245
246 // Returns the Feature::Context type of context for a JavaScript context. 246 // Returns the Feature::Context type of context for a JavaScript context.
247 Feature::Context ClassifyJavaScriptContext( 247 Feature::Context ClassifyJavaScriptContext(
248 const std::string& extension_id, 248 const std::string& extension_id,
249 int extension_group, 249 int extension_group,
250 const GURL& url, 250 const GURL& url,
251 const WebKit::WebSecurityOrigin& origin); 251 const blink::WebSecurityOrigin& origin);
252 252
253 // Gets |field| from |object| or creates it as an empty object if it doesn't 253 // Gets |field| from |object| or creates it as an empty object if it doesn't
254 // exist. 254 // exist.
255 v8::Handle<v8::Object> GetOrCreateObject(v8::Handle<v8::Object> object, 255 v8::Handle<v8::Object> GetOrCreateObject(v8::Handle<v8::Object> object,
256 const std::string& field); 256 const std::string& field);
257 257
258 // True if this renderer is running extensions. 258 // True if this renderer is running extensions.
259 bool is_extension_process_; 259 bool is_extension_process_;
260 260
261 // Contains all loaded extensions. This is essentially the renderer 261 // Contains all loaded extensions. This is essentially the renderer
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 // The platforms system font family and size; 309 // The platforms system font family and size;
310 std::string system_font_family_; 310 std::string system_font_family_;
311 std::string system_font_size_; 311 std::string system_font_size_;
312 312
313 DISALLOW_COPY_AND_ASSIGN(Dispatcher); 313 DISALLOW_COPY_AND_ASSIGN(Dispatcher);
314 }; 314 };
315 315
316 } // namespace extensions 316 } // namespace extensions
317 317
318 #endif // CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ 318 #endif // CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/css_native_handler.cc ('k') | chrome/renderer/extensions/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698