Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(945)

Side by Side Diff: extensions/renderer/extension_frame_helper.h

Issue 2105033003: tabId support to chrome.extensions.getViews() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor followup to patch 5 Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « extensions/common/constants.h ('k') | extensions/renderer/extension_frame_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 int tab_id,
45 ViewType view_type); 46 ViewType view_type);
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
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « extensions/common/constants.h ('k') | extensions/renderer/extension_frame_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698