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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 blink::WebFrame* frame, | 68 blink::WebFrame* frame, |
69 const blink::WebVector<blink::WebString>& newly_matching_selectors, | 69 const blink::WebVector<blink::WebString>& newly_matching_selectors, |
70 const blink::WebVector<blink::WebString>& stopped_matching_selectors) | 70 const blink::WebVector<blink::WebString>& stopped_matching_selectors) |
71 OVERRIDE; | 71 OVERRIDE; |
72 virtual void DidCreateDataSource(blink::WebFrame* frame, | 72 virtual void DidCreateDataSource(blink::WebFrame* frame, |
73 blink::WebDataSource* ds) OVERRIDE; | 73 blink::WebDataSource* ds) OVERRIDE; |
74 virtual void DraggableRegionsChanged(blink::WebFrame* frame) OVERRIDE; | 74 virtual void DraggableRegionsChanged(blink::WebFrame* frame) OVERRIDE; |
75 | 75 |
76 void OnExtensionResponse(int request_id, bool success, | 76 void OnExtensionResponse(int request_id, bool success, |
77 const base::ListValue& response, | 77 const base::ListValue& response, |
78 const std::string& error); | 78 const std::string& error, |
| 79 const bool user_gesture); |
79 void OnExtensionMessageInvoke(const std::string& extension_id, | 80 void OnExtensionMessageInvoke(const std::string& extension_id, |
80 const std::string& module_name, | 81 const std::string& module_name, |
81 const std::string& function_name, | 82 const std::string& function_name, |
82 const base::ListValue& args, | 83 const base::ListValue& args, |
83 bool user_gesture); | 84 bool user_gesture); |
84 void OnExtensionDispatchOnConnect( | 85 void OnExtensionDispatchOnConnect( |
85 int target_port_id, | 86 int target_port_id, |
86 const std::string& channel_name, | 87 const std::string& channel_name, |
87 const base::DictionaryValue& source_tab, | 88 const base::DictionaryValue& source_tab, |
88 const ExtensionMsg_ExternalConnectionInfo& info, | 89 const ExtensionMsg_ExternalConnectionInfo& info, |
(...skipping 30 matching lines...) Expand all Loading... |
119 | 120 |
120 // Id number of browser window which RenderView is attached to. | 121 // Id number of browser window which RenderView is attached to. |
121 int browser_window_id_; | 122 int browser_window_id_; |
122 | 123 |
123 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); | 124 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); |
124 }; | 125 }; |
125 | 126 |
126 } // namespace extensions | 127 } // namespace extensions |
127 | 128 |
128 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ | 129 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ |
OLD | NEW |