OLD | NEW |
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> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/memory/shared_memory.h" | 13 #include "base/memory/shared_memory.h" |
14 #include "base/timer/timer.h" | 14 #include "base/timer/timer.h" |
15 #include "chrome/common/extensions/extension_set.h" | 15 #include "chrome/common/extensions/extension_set.h" |
16 #include "chrome/renderer/extensions/chrome_v8_context.h" | 16 #include "chrome/renderer/extensions/chrome_v8_context.h" |
17 #include "chrome/renderer/extensions/chrome_v8_context_set.h" | 17 #include "chrome/renderer/extensions/chrome_v8_context_set.h" |
18 #include "chrome/renderer/extensions/v8_schema_registry.h" | 18 #include "chrome/renderer/extensions/v8_schema_registry.h" |
19 #include "chrome/renderer/resource_bundle_source_map.h" | 19 #include "chrome/renderer/resource_bundle_source_map.h" |
20 #include "content/public/renderer/render_process_observer.h" | 20 #include "content/public/renderer/render_process_observer.h" |
21 #include "extensions/common/event_filter.h" | 21 #include "extensions/common/event_filter.h" |
22 #include "extensions/common/features/feature.h" | 22 #include "extensions/common/features/feature.h" |
| 23 #include "third_party/WebKit/public/platform/WebString.h" |
| 24 #include "third_party/WebKit/public/platform/WebVector.h" |
23 #include "v8/include/v8.h" | 25 #include "v8/include/v8.h" |
24 | 26 |
25 class ChromeRenderViewTest; | 27 class ChromeRenderViewTest; |
26 class GURL; | 28 class GURL; |
27 class ModuleSystem; | 29 class ModuleSystem; |
28 class URLPattern; | 30 class URLPattern; |
29 struct ExtensionMsg_ExternalConnectionInfo; | 31 struct ExtensionMsg_ExternalConnectionInfo; |
30 struct ExtensionMsg_Loaded_Params; | 32 struct ExtensionMsg_Loaded_Params; |
31 | 33 |
32 namespace WebKit { | 34 namespace WebKit { |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 void DidCreateScriptContext(WebKit::WebFrame* frame, | 92 void DidCreateScriptContext(WebKit::WebFrame* frame, |
91 v8::Handle<v8::Context> context, | 93 v8::Handle<v8::Context> context, |
92 int extension_group, | 94 int extension_group, |
93 int world_id); | 95 int world_id); |
94 void WillReleaseScriptContext(WebKit::WebFrame* frame, | 96 void WillReleaseScriptContext(WebKit::WebFrame* frame, |
95 v8::Handle<v8::Context> context, | 97 v8::Handle<v8::Context> context, |
96 int world_id); | 98 int world_id); |
97 | 99 |
98 void DidCreateDocumentElement(WebKit::WebFrame* frame); | 100 void DidCreateDocumentElement(WebKit::WebFrame* frame); |
99 | 101 |
| 102 void DidMatchCSS( |
| 103 WebKit::WebFrame* frame, |
| 104 const WebKit::WebVector<WebKit::WebString>& newly_matching_selectors, |
| 105 const WebKit::WebVector<WebKit::WebString>& stopped_matching_selectors); |
| 106 |
100 // TODO(mpcomplete): remove. http://crbug.com/100411 | 107 // TODO(mpcomplete): remove. http://crbug.com/100411 |
101 bool IsAdblockWithWebRequestInstalled() const { | 108 bool IsAdblockWithWebRequestInstalled() const { |
102 return webrequest_adblock_; | 109 return webrequest_adblock_; |
103 } | 110 } |
104 bool IsAdblockPlusWithWebRequestInstalled() const { | 111 bool IsAdblockPlusWithWebRequestInstalled() const { |
105 return webrequest_adblock_plus_; | 112 return webrequest_adblock_plus_; |
106 } | 113 } |
107 bool IsOtherExtensionWithWebRequestInstalled() const { | 114 bool IsOtherExtensionWithWebRequestInstalled() const { |
108 return webrequest_other_; | 115 return webrequest_other_; |
109 } | 116 } |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 // The platforms system font family and size; | 306 // The platforms system font family and size; |
300 std::string system_font_family_; | 307 std::string system_font_family_; |
301 std::string system_font_size_; | 308 std::string system_font_size_; |
302 | 309 |
303 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 310 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
304 }; | 311 }; |
305 | 312 |
306 } // namespace extensions | 313 } // namespace extensions |
307 | 314 |
308 #endif // CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ | 315 #endif // CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ |
OLD | NEW |