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); |
96 | 97 |
97 Dispatcher* dispatcher_; | 98 Dispatcher* dispatcher_; |
98 | 99 |
99 // Type of view attached with RenderView. | 100 // Type of view attached with RenderView. |
100 ViewType view_type_; | 101 ViewType view_type_; |
101 | 102 |
102 // Id of the tab which the RenderView is attached to. | 103 // Id of the tab which the RenderView is attached to. |
103 int tab_id_; | 104 int tab_id_; |
104 | 105 |
105 // Id number of browser window which RenderView is attached to. | 106 // Id number of browser window which RenderView is attached to. |
106 int browser_window_id_; | 107 int browser_window_id_; |
107 | 108 |
108 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); | 109 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); |
109 }; | 110 }; |
110 | 111 |
111 } // namespace extensions | 112 } // namespace extensions |
112 | 113 |
113 #endif // EXTENSIONS_RENDERER_EXTENSION_HELPER_H_ | 114 #endif // EXTENSIONS_RENDERER_EXTENSION_HELPER_H_ |
OLD | NEW |