OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_FRAME_HELPER_H_ | 5 #ifndef EXTENSIONS_RENDERER_EXTENSION_FRAME_HELPER_H_ |
6 #define EXTENSIONS_RENDERER_EXTENSION_FRAME_HELPER_H_ | 6 #define EXTENSIONS_RENDERER_EXTENSION_FRAME_HELPER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 24 matching lines...) Expand all Loading... | |
35 ExtensionFrameHelper(content::RenderFrame* render_frame, | 35 ExtensionFrameHelper(content::RenderFrame* render_frame, |
36 Dispatcher* extension_dispatcher); | 36 Dispatcher* extension_dispatcher); |
37 ~ExtensionFrameHelper() override; | 37 ~ExtensionFrameHelper() override; |
38 | 38 |
39 // Returns a list of extension RenderFrames that match the given filter | 39 // Returns a list of extension RenderFrames that match the given filter |
40 // criteria. A |browser_window_id| of extension_misc::kUnknownWindowId | 40 // criteria. A |browser_window_id| of extension_misc::kUnknownWindowId |
41 // specifies "all", as does a |view_type| of VIEW_TYPE_INVALID. | 41 // specifies "all", as does a |view_type| of VIEW_TYPE_INVALID. |
42 static std::vector<content::RenderFrame*> GetExtensionFrames( | 42 static std::vector<content::RenderFrame*> GetExtensionFrames( |
43 const std::string& extension_id, | 43 const std::string& extension_id, |
44 int browser_window_id, | 44 int browser_window_id, |
45 ViewType view_type); | 45 ViewType view_type, |
46 int tab_id); | |
Devlin
2016/07/11 17:23:45
for my OCD, I'd rather group similar parameter typ
catmullings
2016/07/12 18:13:48
Done.
| |
46 | 47 |
47 // Returns the main frame of the extension's background page, or null if there | 48 // Returns the main frame of the extension's background page, or null if there |
48 // isn't one in this process. | 49 // isn't one in this process. |
49 static content::RenderFrame* GetBackgroundPageFrame( | 50 static content::RenderFrame* GetBackgroundPageFrame( |
50 const std::string& extension_id); | 51 const std::string& extension_id); |
51 | 52 |
52 // Returns true if the given |context| is for any frame in the extension's | 53 // Returns true if the given |context| is for any frame in the extension's |
53 // event page. | 54 // event page. |
54 // TODO(devlin): This isn't really used properly, and should probably be | 55 // TODO(devlin): This isn't really used properly, and should probably be |
55 // deleted. | 56 // deleted. |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
142 std::vector<base::Closure> document_load_finished_callbacks_; | 143 std::vector<base::Closure> document_load_finished_callbacks_; |
143 | 144 |
144 base::WeakPtrFactory<ExtensionFrameHelper> weak_ptr_factory_; | 145 base::WeakPtrFactory<ExtensionFrameHelper> weak_ptr_factory_; |
145 | 146 |
146 DISALLOW_COPY_AND_ASSIGN(ExtensionFrameHelper); | 147 DISALLOW_COPY_AND_ASSIGN(ExtensionFrameHelper); |
147 }; | 148 }; |
148 | 149 |
149 } // namespace extensions | 150 } // namespace extensions |
150 | 151 |
151 #endif // EXTENSIONS_RENDERER_EXTENSION_FRAME_HELPER_H_ | 152 #endif // EXTENSIONS_RENDERER_EXTENSION_FRAME_HELPER_H_ |
OLD | NEW |