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_EXTENSION_HELPER_H_ | 5 #ifndef CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ |
6 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ | 6 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 Dispatcher* dispatcher() const { return dispatcher_; } | 56 Dispatcher* dispatcher() const { return dispatcher_; } |
57 | 57 |
58 private: | 58 private: |
59 // RenderViewObserver implementation. | 59 // RenderViewObserver implementation. |
60 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 60 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
61 virtual void DidFinishDocumentLoad(WebKit::WebFrame* frame) OVERRIDE; | 61 virtual void DidFinishDocumentLoad(WebKit::WebFrame* frame) OVERRIDE; |
62 virtual void DidFinishLoad(WebKit::WebFrame* frame) OVERRIDE; | 62 virtual void DidFinishLoad(WebKit::WebFrame* frame) OVERRIDE; |
63 virtual void DidCreateDocumentElement(WebKit::WebFrame* frame) OVERRIDE; | 63 virtual void DidCreateDocumentElement(WebKit::WebFrame* frame) OVERRIDE; |
64 virtual void DidStartProvisionalLoad(WebKit::WebFrame* frame) OVERRIDE; | 64 virtual void DidStartProvisionalLoad(WebKit::WebFrame* frame) OVERRIDE; |
65 virtual void FrameDetached(WebKit::WebFrame* frame) OVERRIDE; | 65 virtual void FrameDetached(WebKit::WebFrame* frame) OVERRIDE; |
| 66 virtual void DidMatchCSS( |
| 67 WebKit::WebFrame* frame, |
| 68 const WebKit::WebVector<WebKit::WebString>& newly_matching_selectors, |
| 69 const WebKit::WebVector<WebKit::WebString>& stopped_matching_selectors) |
| 70 OVERRIDE; |
66 virtual void DidCreateDataSource(WebKit::WebFrame* frame, | 71 virtual void DidCreateDataSource(WebKit::WebFrame* frame, |
67 WebKit::WebDataSource* ds) OVERRIDE; | 72 WebKit::WebDataSource* ds) OVERRIDE; |
68 virtual void DraggableRegionsChanged(WebKit::WebFrame* frame) OVERRIDE; | 73 virtual void DraggableRegionsChanged(WebKit::WebFrame* frame) OVERRIDE; |
69 | 74 |
70 void OnExtensionResponse(int request_id, bool success, | 75 void OnExtensionResponse(int request_id, bool success, |
71 const base::ListValue& response, | 76 const base::ListValue& response, |
72 const std::string& error); | 77 const std::string& error); |
73 void OnExtensionMessageInvoke(const std::string& extension_id, | 78 void OnExtensionMessageInvoke(const std::string& extension_id, |
74 const std::string& module_name, | 79 const std::string& module_name, |
75 const std::string& function_name, | 80 const std::string& function_name, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 117 |
113 // Id number of browser window which RenderView is attached to. | 118 // Id number of browser window which RenderView is attached to. |
114 int browser_window_id_; | 119 int browser_window_id_; |
115 | 120 |
116 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); | 121 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); |
117 }; | 122 }; |
118 | 123 |
119 } // namespace extensions | 124 } // namespace extensions |
120 | 125 |
121 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ | 126 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ |
OLD | NEW |