OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_RENDERER_EXTENSION_HELPER_H_ | 5 #ifndef EXTENSIONS_RENDERER_EXTENSION_HELPER_H_ |
6 #define EXTENSIONS_RENDERER_EXTENSION_HELPER_H_ | 6 #define EXTENSIONS_RENDERER_EXTENSION_HELPER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "content/public/common/console_message_level.h" | 10 #include "content/public/common/console_message_level.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 const Message& message); | 86 const Message& message); |
87 void OnExtensionDispatchOnDisconnect(int port_id, | 87 void OnExtensionDispatchOnDisconnect(int port_id, |
88 const std::string& error_message); | 88 const std::string& error_message); |
89 void OnExecuteCode(const ExtensionMsg_ExecuteCode_Params& params); | 89 void OnExecuteCode(const ExtensionMsg_ExecuteCode_Params& params); |
90 void OnNotifyRendererViewType(ViewType view_type); | 90 void OnNotifyRendererViewType(ViewType view_type); |
91 void OnSetTabId(int tab_id); | 91 void OnSetTabId(int tab_id); |
92 void OnUpdateBrowserWindowId(int window_id); | 92 void OnUpdateBrowserWindowId(int window_id); |
93 void OnAddMessageToConsole(content::ConsoleMessageLevel level, | 93 void OnAddMessageToConsole(content::ConsoleMessageLevel level, |
94 const std::string& message); | 94 const std::string& message); |
95 void OnAppWindowClosed(); | 95 void OnAppWindowClosed(); |
96 void OnGrantContentScriptPermission(int request_id); | |
97 | 96 |
98 Dispatcher* dispatcher_; | 97 Dispatcher* dispatcher_; |
99 | 98 |
100 // Type of view attached with RenderView. | 99 // Type of view attached with RenderView. |
101 ViewType view_type_; | 100 ViewType view_type_; |
102 | 101 |
103 // Id of the tab which the RenderView is attached to. | 102 // Id of the tab which the RenderView is attached to. |
104 int tab_id_; | 103 int tab_id_; |
105 | 104 |
106 // Id number of browser window which RenderView is attached to. | 105 // Id number of browser window which RenderView is attached to. |
107 int browser_window_id_; | 106 int browser_window_id_; |
108 | 107 |
109 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); | 108 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); |
110 }; | 109 }; |
111 | 110 |
112 } // namespace extensions | 111 } // namespace extensions |
113 | 112 |
114 #endif // EXTENSIONS_RENDERER_EXTENSION_HELPER_H_ | 113 #endif // EXTENSIONS_RENDERER_EXTENSION_HELPER_H_ |
OLD | NEW |