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

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

Issue 664933004: Standardize usage of virtual/override/final in extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « extensions/renderer/event_bindings.h ('k') | extensions/renderer/extension_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 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 "content/public/common/console_message_level.h" 10 #include "content/public/common/console_message_level.h"
(...skipping 25 matching lines...) Expand all
36 static std::vector<content::RenderView*> GetExtensionViews( 36 static std::vector<content::RenderView*> GetExtensionViews(
37 const std::string& extension_id, 37 const std::string& extension_id,
38 int browser_window_id, 38 int browser_window_id,
39 ViewType view_type); 39 ViewType view_type);
40 40
41 // Returns the given extension's background page, or NULL if none. 41 // Returns the given extension's background page, or NULL if none.
42 static content::RenderView* GetBackgroundPage( 42 static content::RenderView* GetBackgroundPage(
43 const std::string& extension_id); 43 const std::string& extension_id);
44 44
45 ExtensionHelper(content::RenderView* render_view, Dispatcher* dispatcher); 45 ExtensionHelper(content::RenderView* render_view, Dispatcher* dispatcher);
46 virtual ~ExtensionHelper(); 46 ~ExtensionHelper() override;
47 47
48 int tab_id() const { return tab_id_; } 48 int tab_id() const { return tab_id_; }
49 int browser_window_id() const { return browser_window_id_; } 49 int browser_window_id() const { return browser_window_id_; }
50 ViewType view_type() const { return view_type_; } 50 ViewType view_type() const { return view_type_; }
51 Dispatcher* dispatcher() const { return dispatcher_; } 51 Dispatcher* dispatcher() const { return dispatcher_; }
52 52
53 private: 53 private:
54 // RenderViewObserver implementation. 54 // RenderViewObserver implementation.
55 virtual bool OnMessageReceived(const IPC::Message& message) override; 55 bool OnMessageReceived(const IPC::Message& message) override;
56 virtual void DidCreateDocumentElement(blink::WebLocalFrame* frame) override; 56 void DidCreateDocumentElement(blink::WebLocalFrame* frame) override;
57 virtual void DidMatchCSS( 57 void DidMatchCSS(
58 blink::WebLocalFrame* frame, 58 blink::WebLocalFrame* frame,
59 const blink::WebVector<blink::WebString>& newly_matching_selectors, 59 const blink::WebVector<blink::WebString>& newly_matching_selectors,
60 const blink::WebVector<blink::WebString>& stopped_matching_selectors) 60 const blink::WebVector<blink::WebString>& stopped_matching_selectors)
61 override; 61 override;
62 virtual void DraggableRegionsChanged(blink::WebFrame* frame) override; 62 void DraggableRegionsChanged(blink::WebFrame* frame) override;
63 63
64 void OnExtensionResponse(int request_id, bool success, 64 void OnExtensionResponse(int request_id, bool success,
65 const base::ListValue& response, 65 const base::ListValue& response,
66 const std::string& error); 66 const std::string& error);
67 void OnExtensionMessageInvoke(const std::string& extension_id, 67 void OnExtensionMessageInvoke(const std::string& extension_id,
68 const std::string& module_name, 68 const std::string& module_name,
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 OnExtensionDispatchOnConnect( 72 void OnExtensionDispatchOnConnect(
(...skipping 24 matching lines...) Expand all
97 97
98 // Id number of browser window which RenderView is attached to. 98 // Id number of browser window which RenderView is attached to.
99 int browser_window_id_; 99 int browser_window_id_;
100 100
101 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper); 101 DISALLOW_COPY_AND_ASSIGN(ExtensionHelper);
102 }; 102 };
103 103
104 } // namespace extensions 104 } // namespace extensions
105 105
106 #endif // EXTENSIONS_RENDERER_EXTENSION_HELPER_H_ 106 #endif // EXTENSIONS_RENDERER_EXTENSION_HELPER_H_
OLDNEW
« no previous file with comments | « extensions/renderer/event_bindings.h ('k') | extensions/renderer/extension_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698