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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 virtual void DidCreateDataSource(WebKit::WebFrame* frame, | 66 virtual void DidCreateDataSource(WebKit::WebFrame* frame, |
67 WebKit::WebDataSource* ds) OVERRIDE; | 67 WebKit::WebDataSource* ds) OVERRIDE; |
68 virtual void DraggableRegionsChanged(WebKit::WebFrame* frame) OVERRIDE; | 68 virtual void DraggableRegionsChanged(WebKit::WebFrame* frame) OVERRIDE; |
69 | 69 |
70 void OnExtensionResponse(int request_id, bool success, | 70 void OnExtensionResponse(int request_id, bool success, |
71 const base::ListValue& response, | 71 const base::ListValue& response, |
72 const std::string& error); | 72 const std::string& error); |
73 void OnExtensionMessageInvoke(const std::string& extension_id, | 73 void OnExtensionMessageInvoke(const std::string& extension_id, |
74 const std::string& function_name, | 74 const std::string& function_name, |
75 const base::ListValue& args, | 75 const base::ListValue& args, |
76 const GURL& event_url, | |
77 bool user_gesture); | 76 bool user_gesture); |
78 void OnExtensionDispatchOnConnect( | 77 void OnExtensionDispatchOnConnect( |
79 int target_port_id, | 78 int target_port_id, |
80 const std::string& channel_name, | 79 const std::string& channel_name, |
81 const base::DictionaryValue& source_tab, | 80 const base::DictionaryValue& source_tab, |
82 const ExtensionMsg_ExternalConnectionInfo& info); | 81 const ExtensionMsg_ExternalConnectionInfo& info); |
83 void OnExtensionDeliverMessage(int target_port_id, | 82 void OnExtensionDeliverMessage(int target_port_id, |
84 const std::string& message); | 83 const std::string& message); |
85 void OnExtensionDispatchOnDisconnect(int port_id, | 84 void OnExtensionDispatchOnDisconnect(int port_id, |
86 const std::string& error_message); | 85 const std::string& error_message); |
(...skipping 25 matching lines...) Expand all Loading... |
112 | 111 |
113 // Id number of browser window which RenderView is attached to. | 112 // Id number of browser window which RenderView is attached to. |
114 int browser_window_id_; | 113 int browser_window_id_; |
115 | 114 |
116 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); | 115 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); |
117 }; | 116 }; |
118 | 117 |
119 } // namespace extensions | 118 } // namespace extensions |
120 | 119 |
121 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ | 120 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ |
OLD | NEW |