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

Side by Side Diff: content/browser/frame_host/render_frame_host_manager.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 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_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 // RenderWidgetHostDelegate are what will be installed into all 180 // RenderWidgetHostDelegate are what will be installed into all
181 // RenderViewHosts that are created. 181 // RenderViewHosts that are created.
182 // 182 //
183 // You must call Init() before using this class. 183 // You must call Init() before using this class.
184 RenderFrameHostManager( 184 RenderFrameHostManager(
185 FrameTreeNode* frame_tree_node, 185 FrameTreeNode* frame_tree_node,
186 RenderFrameHostDelegate* render_frame_delegate, 186 RenderFrameHostDelegate* render_frame_delegate,
187 RenderViewHostDelegate* render_view_delegate, 187 RenderViewHostDelegate* render_view_delegate,
188 RenderWidgetHostDelegate* render_widget_delegate, 188 RenderWidgetHostDelegate* render_widget_delegate,
189 Delegate* delegate); 189 Delegate* delegate);
190 virtual ~RenderFrameHostManager(); 190 ~RenderFrameHostManager() override;
191 191
192 // For arguments, see WebContentsImpl constructor. 192 // For arguments, see WebContentsImpl constructor.
193 void Init(BrowserContext* browser_context, 193 void Init(BrowserContext* browser_context,
194 SiteInstance* site_instance, 194 SiteInstance* site_instance,
195 int view_routing_id, 195 int view_routing_id,
196 int frame_routing_id); 196 int frame_routing_id);
197 197
198 // Returns the currently active RenderFrameHost. 198 // Returns the currently active RenderFrameHost.
199 // 199 //
200 // This will be non-NULL between Init() and Shutdown(). You may want to NULL 200 // This will be non-NULL between Init() and Shutdown(). You may want to NULL
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 void remove_interstitial_page() { 319 void remove_interstitial_page() {
320 DCHECK(interstitial_page_); 320 DCHECK(interstitial_page_);
321 interstitial_page_ = NULL; 321 interstitial_page_ = NULL;
322 } 322 }
323 323
324 // Returns the currently showing interstitial, NULL if no interstitial is 324 // Returns the currently showing interstitial, NULL if no interstitial is
325 // showing. 325 // showing.
326 InterstitialPageImpl* interstitial_page() const { return interstitial_page_; } 326 InterstitialPageImpl* interstitial_page() const { return interstitial_page_; }
327 327
328 // NotificationObserver implementation. 328 // NotificationObserver implementation.
329 virtual void Observe(int type, 329 void Observe(int type,
330 const NotificationSource& source, 330 const NotificationSource& source,
331 const NotificationDetails& details) override; 331 const NotificationDetails& details) override;
332 332
333 // Returns whether the given RenderFrameHost (or its associated 333 // Returns whether the given RenderFrameHost (or its associated
334 // RenderViewHost) is on the list of swapped out RenderFrameHosts. 334 // RenderViewHost) is on the list of swapped out RenderFrameHosts.
335 bool IsRVHOnSwappedOutList(RenderViewHostImpl* rvh) const; 335 bool IsRVHOnSwappedOutList(RenderViewHostImpl* rvh) const;
336 bool IsOnSwappedOutList(RenderFrameHostImpl* rfh) const; 336 bool IsOnSwappedOutList(RenderFrameHostImpl* rfh) const;
337 337
338 // Returns the swapped out RenderViewHost or RenderFrameHost for the given 338 // Returns the swapped out RenderViewHost or RenderFrameHost for the given
339 // SiteInstance, if any. This method is *deprecated* and 339 // SiteInstance, if any. This method is *deprecated* and
340 // GetRenderFrameProxyHost should be used. 340 // GetRenderFrameProxyHost should be used.
341 RenderViewHostImpl* GetSwappedOutRenderViewHost(SiteInstance* instance) const; 341 RenderViewHostImpl* GetSwappedOutRenderViewHost(SiteInstance* instance) const;
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 NotificationRegistrar registrar_; 573 NotificationRegistrar registrar_;
574 574
575 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; 575 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_;
576 576
577 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); 577 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager);
578 }; 578 };
579 579
580 } // namespace content 580 } // namespace content
581 581
582 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ 582 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698