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

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

Issue 1094153002: Move ClosePage() from RenderViewHost to WebContents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 virtual RenderViewHost* GetRenderViewHost() const = 0; 213 virtual RenderViewHost* GetRenderViewHost() const = 0;
214 214
215 // Gets the current RenderViewHost's routing id. Returns 215 // Gets the current RenderViewHost's routing id. Returns
216 // MSG_ROUTING_NONE when there is no RenderViewHost. 216 // MSG_ROUTING_NONE when there is no RenderViewHost.
217 virtual int GetRoutingID() const = 0; 217 virtual int GetRoutingID() const = 0;
218 218
219 // Returns the currently active RenderWidgetHostView. This may change over 219 // Returns the currently active RenderWidgetHostView. This may change over
220 // time and can be nullptr (during setup and teardown). 220 // time and can be nullptr (during setup and teardown).
221 virtual RenderWidgetHostView* GetRenderWidgetHostView() const = 0; 221 virtual RenderWidgetHostView* GetRenderWidgetHostView() const = 0;
222 222
223 // Causes the renderer to close the current page, including running its
224 // onunload event handler. A ClosePage_ACK message will be sent to the
225 // ResourceDispatcherHost when it is finished.
Charlie Reis 2015/04/21 17:28:09 This last sentence needs updating. I think the AC
nasko 2015/04/29 17:09:27 Done.
226 virtual void ClosePage() = 0;
227
223 // Returns the currently active fullscreen widget. If there is none, returns 228 // Returns the currently active fullscreen widget. If there is none, returns
224 // nullptr. 229 // nullptr.
225 virtual RenderWidgetHostView* GetFullscreenRenderWidgetHostView() const = 0; 230 virtual RenderWidgetHostView* GetFullscreenRenderWidgetHostView() const = 0;
226 231
227 // Returns the theme color for the underlying content as set by the 232 // Returns the theme color for the underlying content as set by the
228 // theme-color meta tag. 233 // theme-color meta tag.
229 virtual SkColor GetThemeColor() const = 0; 234 virtual SkColor GetThemeColor() const = 0;
230 235
231 // Create a WebUI page for the given url. In most cases, this doesn't need to 236 // Create a WebUI page for the given url. In most cases, this doesn't need to
232 // be called by embedders since content will create its own WebUI objects as 237 // be called by embedders since content will create its own WebUI objects as
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 648
644 private: 649 private:
645 // This interface should only be implemented inside content. 650 // This interface should only be implemented inside content.
646 friend class WebContentsImpl; 651 friend class WebContentsImpl;
647 WebContents() {} 652 WebContents() {}
648 }; 653 };
649 654
650 } // namespace content 655 } // namespace content
651 656
652 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 657 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698