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

Side by Side Diff: content/public/browser/render_frame_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
« no previous file with comments | « content/public/browser/download_manager.h ('k') | content/public/browser/render_process_host.h » ('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 CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 15 matching lines...) Expand all
26 class SiteInstance; 26 class SiteInstance;
27 27
28 // The interface provides a communication conduit with a frame in the renderer. 28 // The interface provides a communication conduit with a frame in the renderer.
29 class CONTENT_EXPORT RenderFrameHost : public IPC::Listener, 29 class CONTENT_EXPORT RenderFrameHost : public IPC::Listener,
30 public IPC::Sender { 30 public IPC::Sender {
31 public: 31 public:
32 // Returns the RenderFrameHost given its ID and the ID of its render process. 32 // Returns the RenderFrameHost given its ID and the ID of its render process.
33 // Returns NULL if the IDs do not correspond to a live RenderFrameHost. 33 // Returns NULL if the IDs do not correspond to a live RenderFrameHost.
34 static RenderFrameHost* FromID(int render_process_id, int render_frame_id); 34 static RenderFrameHost* FromID(int render_process_id, int render_frame_id);
35 35
36 virtual ~RenderFrameHost() {} 36 ~RenderFrameHost() override {}
37 37
38 // Returns the route id for this frame. 38 // Returns the route id for this frame.
39 virtual int GetRoutingID() = 0; 39 virtual int GetRoutingID() = 0;
40 40
41 // Returns the SiteInstance grouping all RenderFrameHosts that have script 41 // Returns the SiteInstance grouping all RenderFrameHosts that have script
42 // access to this RenderFrameHost, and must therefore live in the same 42 // access to this RenderFrameHost, and must therefore live in the same
43 // process. 43 // process.
44 virtual SiteInstance* GetSiteInstance() = 0; 44 virtual SiteInstance* GetSiteInstance() = 0;
45 45
46 // Returns the process for this frame. 46 // Returns the process for this frame.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 private: 94 private:
95 // This interface should only be implemented inside content. 95 // This interface should only be implemented inside content.
96 friend class RenderFrameHostImpl; 96 friend class RenderFrameHostImpl;
97 RenderFrameHost() {} 97 RenderFrameHost() {}
98 }; 98 };
99 99
100 } // namespace content 100 } // namespace content
101 101
102 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 102 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
OLDNEW
« no previous file with comments | « content/public/browser/download_manager.h ('k') | content/public/browser/render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698