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

Side by Side Diff: content/public/browser/render_view_host.h

Issue 671663002: Standardize usage of virtual/override/final in content/ (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
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 CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 class CONTENT_EXPORT RenderViewHost : virtual public RenderWidgetHost { 60 class CONTENT_EXPORT RenderViewHost : virtual public RenderWidgetHost {
61 public: 61 public:
62 // Returns the RenderViewHost given its ID and the ID of its render process. 62 // Returns the RenderViewHost given its ID and the ID of its render process.
63 // Returns NULL if the IDs do not correspond to a live RenderViewHost. 63 // Returns NULL if the IDs do not correspond to a live RenderViewHost.
64 static RenderViewHost* FromID(int render_process_id, int render_view_id); 64 static RenderViewHost* FromID(int render_process_id, int render_view_id);
65 65
66 // Downcasts from a RenderWidgetHost to a RenderViewHost. Required 66 // Downcasts from a RenderWidgetHost to a RenderViewHost. Required
67 // because RenderWidgetHost is a virtual base class. 67 // because RenderWidgetHost is a virtual base class.
68 static RenderViewHost* From(RenderWidgetHost* rwh); 68 static RenderViewHost* From(RenderWidgetHost* rwh);
69 69
70 virtual ~RenderViewHost() {} 70 ~RenderViewHost() override {}
71 71
72 // Returns the main frame for this render view. 72 // Returns the main frame for this render view.
73 virtual RenderFrameHost* GetMainFrame() = 0; 73 virtual RenderFrameHost* GetMainFrame() = 0;
74 74
75 // Tell the render view to enable a set of javascript bindings. The argument 75 // Tell the render view to enable a set of javascript bindings. The argument
76 // should be a combination of values from BindingsPolicy. 76 // should be a combination of values from BindingsPolicy.
77 virtual void AllowBindings(int binding_flags) = 0; 77 virtual void AllowBindings(int binding_flags) = 0;
78 78
79 // Tells the renderer to clear the focused element (if any). 79 // Tells the renderer to clear the focused element (if any).
80 virtual void ClearFocusedElement() = 0; 80 virtual void ClearFocusedElement() = 0;
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 226
227 private: 227 private:
228 // This interface should only be implemented inside content. 228 // This interface should only be implemented inside content.
229 friend class RenderViewHostImpl; 229 friend class RenderViewHostImpl;
230 RenderViewHost() {} 230 RenderViewHost() {}
231 }; 231 };
232 232
233 } // namespace content 233 } // namespace content
234 234
235 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 235 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_process_host.h ('k') | content/public/browser/render_widget_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698