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

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

Issue 630603003: Replacing the OVERRIDE with override in chrome/renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased the patch Created 6 years, 2 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 CHROME_RENDERER_EXTENSIONS_TAB_FINDER_H_ 5 #ifndef CHROME_RENDERER_EXTENSIONS_TAB_FINDER_H_
6 #define CHROME_RENDERER_EXTENSIONS_TAB_FINDER_H_ 6 #define CHROME_RENDERER_EXTENSIONS_TAB_FINDER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "content/public/renderer/render_view_visitor.h" 10 #include "content/public/renderer/render_view_visitor.h"
11 11
12 namespace content { 12 namespace content {
13 class RenderView; 13 class RenderView;
14 } 14 }
15 15
16 namespace extensions { 16 namespace extensions {
17 17
18 // Finds the top RenderView associated with a tab ID. 18 // Finds the top RenderView associated with a tab ID.
19 class TabFinder : public content::RenderViewVisitor { 19 class TabFinder : public content::RenderViewVisitor {
20 public: 20 public:
21 // Returns the top RenderView with |tab_id|, or NULL if none is found. 21 // Returns the top RenderView with |tab_id|, or NULL if none is found.
22 static content::RenderView* Find(int tab_id); 22 static content::RenderView* Find(int tab_id);
23 23
24 private: 24 private:
25 explicit TabFinder(int tab_id); 25 explicit TabFinder(int tab_id);
26 virtual ~TabFinder(); 26 virtual ~TabFinder();
27 27
28 // content::RenderViewVisitor implementation. 28 // content::RenderViewVisitor implementation.
29 virtual bool Visit(content::RenderView* render_view) OVERRIDE; 29 virtual bool Visit(content::RenderView* render_view) override;
30 30
31 int tab_id_; 31 int tab_id_;
32 content::RenderView* view_; 32 content::RenderView* view_;
33 33
34 DISALLOW_COPY_AND_ASSIGN(TabFinder); 34 DISALLOW_COPY_AND_ASSIGN(TabFinder);
35 }; 35 };
36 36
37 } // namespace extensions 37 } // namespace extensions
38 38
39 #endif // CHROME_RENDERER_EXTENSIONS_TAB_FINDER_H_ 39 #endif // CHROME_RENDERER_EXTENSIONS_TAB_FINDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698