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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 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& module_name, |
74 const std::string& function_name, | 75 const std::string& function_name, |
75 const base::ListValue& args, | 76 const base::ListValue& args, |
76 bool user_gesture); | 77 bool user_gesture); |
77 void OnExtensionDispatchOnConnect( | 78 void OnExtensionDispatchOnConnect( |
78 int target_port_id, | 79 int target_port_id, |
79 const std::string& channel_name, | 80 const std::string& channel_name, |
80 const base::DictionaryValue& source_tab, | 81 const base::DictionaryValue& source_tab, |
81 const ExtensionMsg_ExternalConnectionInfo& info); | 82 const ExtensionMsg_ExternalConnectionInfo& info); |
82 void OnExtensionDeliverMessage(int target_port_id, | 83 void OnExtensionDeliverMessage(int target_port_id, |
83 const std::string& message); | 84 const base::ListValue& message); |
84 void OnExtensionDispatchOnDisconnect(int port_id, | 85 void OnExtensionDispatchOnDisconnect(int port_id, |
85 const std::string& error_message); | 86 const std::string& error_message); |
86 void OnExecuteCode(const ExtensionMsg_ExecuteCode_Params& params); | 87 void OnExecuteCode(const ExtensionMsg_ExecuteCode_Params& params); |
87 void OnGetApplicationInfo(int page_id); | 88 void OnGetApplicationInfo(int page_id); |
88 void OnNotifyRendererViewType(ViewType view_type); | 89 void OnNotifyRendererViewType(ViewType view_type); |
89 void OnSetTabId(int tab_id); | 90 void OnSetTabId(int tab_id); |
90 void OnUpdateBrowserWindowId(int window_id); | 91 void OnUpdateBrowserWindowId(int window_id); |
91 void OnAddMessageToConsole(content::ConsoleMessageLevel level, | 92 void OnAddMessageToConsole(content::ConsoleMessageLevel level, |
92 const std::string& message); | 93 const std::string& message); |
93 void OnAppWindowClosed(); | 94 void OnAppWindowClosed(); |
(...skipping 17 matching lines...) Expand all Loading... |
111 | 112 |
112 // Id number of browser window which RenderView is attached to. | 113 // Id number of browser window which RenderView is attached to. |
113 int browser_window_id_; | 114 int browser_window_id_; |
114 | 115 |
115 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); | 116 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); |
116 }; | 117 }; |
117 | 118 |
118 } // namespace extensions | 119 } // namespace extensions |
119 | 120 |
120 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ | 121 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_HELPER_H_ |
OLD | NEW |