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

Side by Side Diff: chrome/renderer/extensions/tab_finder.h

Issue 10443105: Take 2 at implementing activeTab. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: empty -> is_empty Created 8 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_RENDERER_EXTENSIONS_TAB_FINDER_H_
6 #define CHROME_RENDERER_EXTENSIONS_TAB_FINDER_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
11 #include "content/public/renderer/render_view_visitor.h"
12
13 namespace content {
14 class RenderView;
15 }
16
17 namespace extensions {
18
19 // Finds the top RenderView associated with a tab ID.
20 class TabFinder : public content::RenderViewVisitor {
21 public:
22 // Returns the top RenderView with |tab_id|, or NULL if none is found.
23 static content::RenderView* Find(int tab_id);
24
25 private:
26 explicit TabFinder(int tab_id);
27 virtual ~TabFinder();
28
29 // content::RenderViewVisitor implementation.
30 virtual bool Visit(content::RenderView* render_view) OVERRIDE;
31
32 int tab_id_;
33 content::RenderView* view_;
34
35 DISALLOW_COPY_AND_ASSIGN(TabFinder);
36 };
37
38 } // namespace extensions
39
40 #endif // CHROME_RENDERER_EXTENSIONS_TAB_FINDER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/extension_helper.cc ('k') | chrome/renderer/extensions/tab_finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698