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