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

Side by Side Diff: content/browser/frame_host/render_frame_proxy_host.h

Issue 667943003: Standardize usage of virtual/override/final in content/browser/ (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 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 CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/browser/frame_host/render_frame_host_impl.h" 9 #include "content/browser/frame_host/render_frame_host_impl.h"
10 #include "content/browser/site_instance_impl.h" 10 #include "content/browser/site_instance_impl.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // handler and is kept alive for the duration. Once the event handling is 52 // handler and is kept alive for the duration. Once the event handling is
53 // complete, the RenderFrameHost is deleted. 53 // complete, the RenderFrameHost is deleted.
54 class RenderFrameProxyHost 54 class RenderFrameProxyHost
55 : public IPC::Listener, 55 : public IPC::Listener,
56 public IPC::Sender { 56 public IPC::Sender {
57 public: 57 public:
58 static RenderFrameProxyHost* FromID(int process_id, int routing_id); 58 static RenderFrameProxyHost* FromID(int process_id, int routing_id);
59 59
60 RenderFrameProxyHost(SiteInstance* site_instance, 60 RenderFrameProxyHost(SiteInstance* site_instance,
61 FrameTreeNode* frame_tree_node); 61 FrameTreeNode* frame_tree_node);
62 virtual ~RenderFrameProxyHost(); 62 ~RenderFrameProxyHost() override;
63 63
64 RenderProcessHost* GetProcess() { 64 RenderProcessHost* GetProcess() {
65 return site_instance_->GetProcess(); 65 return site_instance_->GetProcess();
66 } 66 }
67 67
68 // Initializes the object and creates the RenderFrameProxy in the process 68 // Initializes the object and creates the RenderFrameProxy in the process
69 // for the SiteInstance. 69 // for the SiteInstance.
70 bool InitRenderFrameProxy(); 70 bool InitRenderFrameProxy();
71 71
72 int GetRoutingID() { 72 int GetRoutingID() {
(...skipping 13 matching lines...) Expand all
86 RenderFrameHostImpl* render_frame_host() { 86 RenderFrameHostImpl* render_frame_host() {
87 return render_frame_host_.get(); 87 return render_frame_host_.get();
88 } 88 }
89 RenderViewHostImpl* GetRenderViewHost(); 89 RenderViewHostImpl* GetRenderViewHost();
90 90
91 void TakeFrameHostOwnership( 91 void TakeFrameHostOwnership(
92 scoped_ptr<RenderFrameHostImpl> render_frame_host); 92 scoped_ptr<RenderFrameHostImpl> render_frame_host);
93 scoped_ptr<RenderFrameHostImpl> PassFrameHostOwnership(); 93 scoped_ptr<RenderFrameHostImpl> PassFrameHostOwnership();
94 94
95 // IPC::Sender 95 // IPC::Sender
96 virtual bool Send(IPC::Message* msg) override; 96 bool Send(IPC::Message* msg) override;
97 97
98 // IPC::Listener 98 // IPC::Listener
99 virtual bool OnMessageReceived(const IPC::Message& msg) override; 99 bool OnMessageReceived(const IPC::Message& msg) override;
100 100
101 CrossProcessFrameConnector* cross_process_frame_connector() { 101 CrossProcessFrameConnector* cross_process_frame_connector() {
102 return cross_process_frame_connector_.get(); 102 return cross_process_frame_connector_.get();
103 } 103 }
104 104
105 // Set the frame's opener to null in the renderer process in response to an 105 // Set the frame's opener to null in the renderer process in response to an
106 // action in another renderer process. 106 // action in another renderer process.
107 void DisownOpener(); 107 void DisownOpener();
108 108
109 private: 109 private:
(...skipping 18 matching lines...) Expand all
128 // TODO(nasko): This can be removed once we don't have a swapped out state on 128 // TODO(nasko): This can be removed once we don't have a swapped out state on
129 // RenderFrameHosts. See https://crbug.com/357747. 129 // RenderFrameHosts. See https://crbug.com/357747.
130 scoped_ptr<RenderFrameHostImpl> render_frame_host_; 130 scoped_ptr<RenderFrameHostImpl> render_frame_host_;
131 131
132 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxyHost); 132 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxyHost);
133 }; 133 };
134 134
135 } // namespace 135 } // namespace
136 136
137 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ 137 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698