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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/shared_memory.h" | 12 #include "base/shared_memory.h" |
13 #include "base/timer.h" | 13 #include "base/timer.h" |
14 #include "content/public/renderer/render_process_observer.h" | 14 #include "content/public/renderer/render_process_observer.h" |
15 #include "chrome/common/extensions/extension_set.h" | 15 #include "chrome/common/extensions/extension_set.h" |
16 #include "chrome/common/extensions/features/feature.h" | 16 #include "chrome/common/extensions/features/feature.h" |
17 #include "chrome/renderer/extensions/chrome_v8_context.h" | 17 #include "chrome/renderer/extensions/chrome_v8_context.h" |
18 #include "chrome/renderer/extensions/chrome_v8_context_set.h" | 18 #include "chrome/renderer/extensions/chrome_v8_context_set.h" |
19 #include "chrome/renderer/extensions/v8_schema_registry.h" | 19 #include "chrome/renderer/extensions/v8_schema_registry.h" |
20 #include "chrome/renderer/resource_bundle_source_map.h" | 20 #include "chrome/renderer/resource_bundle_source_map.h" |
21 #include "extensions/common/event_filter.h" | 21 #include "extensions/common/event_filter.h" |
| 22 #include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h" |
22 #include "v8/include/v8.h" | 23 #include "v8/include/v8.h" |
23 | 24 |
24 class GURL; | 25 class GURL; |
25 class ModuleSystem; | 26 class ModuleSystem; |
26 class URLPattern; | 27 class URLPattern; |
27 struct ExtensionMsg_Loaded_Params; | 28 struct ExtensionMsg_Loaded_Params; |
28 | 29 |
29 namespace WebKit { | 30 namespace WebKit { |
30 class WebFrame; | 31 class WebFrame; |
31 } | 32 } |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 void DidCreateScriptContext(WebKit::WebFrame* frame, | 95 void DidCreateScriptContext(WebKit::WebFrame* frame, |
95 v8::Handle<v8::Context> context, | 96 v8::Handle<v8::Context> context, |
96 int extension_group, | 97 int extension_group, |
97 int world_id); | 98 int world_id); |
98 void WillReleaseScriptContext(WebKit::WebFrame* frame, | 99 void WillReleaseScriptContext(WebKit::WebFrame* frame, |
99 v8::Handle<v8::Context> context, | 100 v8::Handle<v8::Context> context, |
100 int world_id); | 101 int world_id); |
101 | 102 |
102 void DidCreateDocumentElement(WebKit::WebFrame* frame); | 103 void DidCreateDocumentElement(WebKit::WebFrame* frame); |
103 | 104 |
| 105 void CssMatches( |
| 106 WebKit::WebFrame* frame, |
| 107 const WebKit::WebVector<WebKit::WebString>& newlyMatchingSelectors, |
| 108 const WebKit::WebVector<WebKit::WebString>& stoppedMatchingSelectors); |
| 109 |
104 // TODO(mpcomplete): remove. http://crbug.com/100411 | 110 // TODO(mpcomplete): remove. http://crbug.com/100411 |
105 bool IsAdblockWithWebRequestInstalled() const { | 111 bool IsAdblockWithWebRequestInstalled() const { |
106 return webrequest_adblock_; | 112 return webrequest_adblock_; |
107 } | 113 } |
108 bool IsAdblockPlusWithWebRequestInstalled() const { | 114 bool IsAdblockPlusWithWebRequestInstalled() const { |
109 return webrequest_adblock_plus_; | 115 return webrequest_adblock_plus_; |
110 } | 116 } |
111 bool IsOtherExtensionWithWebRequestInstalled() const { | 117 bool IsOtherExtensionWithWebRequestInstalled() const { |
112 return webrequest_other_; | 118 return webrequest_other_; |
113 } | 119 } |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 | 263 |
258 // Sends API requests to the extension host. | 264 // Sends API requests to the extension host. |
259 scoped_ptr<RequestSender> request_sender_; | 265 scoped_ptr<RequestSender> request_sender_; |
260 | 266 |
261 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 267 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
262 }; | 268 }; |
263 | 269 |
264 } // namespace extensions | 270 } // namespace extensions |
265 | 271 |
266 #endif // CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ | 272 #endif // CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ |
OLD | NEW |