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

Side by Side Diff: content/public/browser/web_contents.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_WEB_CONTENTS_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 const CreateParams& params, 137 const CreateParams& params,
138 const SessionStorageNamespaceMap& session_storage_namespace_map); 138 const SessionStorageNamespaceMap& session_storage_namespace_map);
139 139
140 // Returns a WebContents that wraps the RenderViewHost, or NULL if the 140 // Returns a WebContents that wraps the RenderViewHost, or NULL if the
141 // render view host's delegate isn't a WebContents. 141 // render view host's delegate isn't a WebContents.
142 CONTENT_EXPORT static WebContents* FromRenderViewHost( 142 CONTENT_EXPORT static WebContents* FromRenderViewHost(
143 const RenderViewHost* rvh); 143 const RenderViewHost* rvh);
144 144
145 CONTENT_EXPORT static WebContents* FromRenderFrameHost(RenderFrameHost* rfh); 145 CONTENT_EXPORT static WebContents* FromRenderFrameHost(RenderFrameHost* rfh);
146 146
147 virtual ~WebContents() {} 147 ~WebContents() override {}
148 148
149 // Intrinsic tab state ------------------------------------------------------- 149 // Intrinsic tab state -------------------------------------------------------
150 150
151 // Gets/Sets the delegate. 151 // Gets/Sets the delegate.
152 virtual WebContentsDelegate* GetDelegate() = 0; 152 virtual WebContentsDelegate* GetDelegate() = 0;
153 virtual void SetDelegate(WebContentsDelegate* delegate) = 0; 153 virtual void SetDelegate(WebContentsDelegate* delegate) = 0;
154 154
155 // Gets the controller for this WebContents. 155 // Gets the controller for this WebContents.
156 virtual NavigationController& GetController() = 0; 156 virtual NavigationController& GetController() = 0;
157 virtual const NavigationController& GetController() const = 0; 157 virtual const NavigationController& GetController() const = 0;
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 604
605 private: 605 private:
606 // This interface should only be implemented inside content. 606 // This interface should only be implemented inside content.
607 friend class WebContentsImpl; 607 friend class WebContentsImpl;
608 WebContents() {} 608 WebContents() {}
609 }; 609 };
610 610
611 } // namespace content 611 } // namespace content
612 612
613 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 613 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/public/browser/utility_process_host.h ('k') | content/public/browser/web_contents_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698