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 "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 const std::string& function_name, | 69 const std::string& function_name, |
70 const base::ListValue& args, | 70 const base::ListValue& args, |
71 bool user_gesture); | 71 bool user_gesture); |
72 void OnNotifyRendererViewType(ViewType view_type); | 72 void OnNotifyRendererViewType(ViewType view_type); |
73 void OnSetTabId(int tab_id); | 73 void OnSetTabId(int tab_id); |
74 void OnUpdateBrowserWindowId(int window_id); | 74 void OnUpdateBrowserWindowId(int window_id); |
75 void OnAddMessageToConsole(content::ConsoleMessageLevel level, | 75 void OnAddMessageToConsole(content::ConsoleMessageLevel level, |
76 const std::string& message); | 76 const std::string& message); |
77 void OnAppWindowClosed(); | 77 void OnAppWindowClosed(); |
78 void OnSetFrameName(const std::string& name); | 78 void OnSetFrameName(const std::string& name); |
79 void OnUpdateTabSpecificPermissions( | |
80 const GURL& url, | |
81 const std::string& extension_id, | |
82 const URLPatternSet& origin_set); | |
83 void OnClearTabSpecificPermissions( | |
84 const std::vector<std::string>& extension_ids); | |
85 | 79 |
86 Dispatcher* dispatcher_; | 80 Dispatcher* dispatcher_; |
87 | 81 |
88 // Type of view attached with RenderView. | 82 // Type of view attached with RenderView. |
89 ViewType view_type_; | 83 ViewType view_type_; |
90 | 84 |
91 // Id of the tab which the RenderView is attached to. | 85 // Id of the tab which the RenderView is attached to. |
92 int tab_id_; | 86 int tab_id_; |
93 | 87 |
94 // Id number of browser window which RenderView is attached to. | 88 // Id number of browser window which RenderView is attached to. |
95 int browser_window_id_; | 89 int browser_window_id_; |
96 | 90 |
97 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); | 91 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); |
98 }; | 92 }; |
99 | 93 |
100 } // namespace extensions | 94 } // namespace extensions |
101 | 95 |
102 #endif // EXTENSIONS_RENDERER_EXTENSION_HELPER_H_ | 96 #endif // EXTENSIONS_RENDERER_EXTENSION_HELPER_H_ |
OLD | NEW |