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

Side by Side Diff: content/browser/web_contents/web_contents_impl.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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 const GURL& GetLastCommittedURL() const override; 228 const GURL& GetLastCommittedURL() const override;
229 RenderProcessHost* GetRenderProcessHost() const override; 229 RenderProcessHost* GetRenderProcessHost() const override;
230 RenderFrameHostImpl* GetMainFrame() override; 230 RenderFrameHostImpl* GetMainFrame() override;
231 RenderFrameHost* GetFocusedFrame() override; 231 RenderFrameHost* GetFocusedFrame() override;
232 void ForEachFrame( 232 void ForEachFrame(
233 const base::Callback<void(RenderFrameHost*)>& on_frame) override; 233 const base::Callback<void(RenderFrameHost*)>& on_frame) override;
234 void SendToAllFrames(IPC::Message* message) override; 234 void SendToAllFrames(IPC::Message* message) override;
235 RenderViewHost* GetRenderViewHost() const override; 235 RenderViewHost* GetRenderViewHost() const override;
236 int GetRoutingID() const override; 236 int GetRoutingID() const override;
237 RenderWidgetHostView* GetRenderWidgetHostView() const override; 237 RenderWidgetHostView* GetRenderWidgetHostView() const override;
238 void ClosePage() override;
238 RenderWidgetHostView* GetFullscreenRenderWidgetHostView() const override; 239 RenderWidgetHostView* GetFullscreenRenderWidgetHostView() const override;
239 SkColor GetThemeColor() const override; 240 SkColor GetThemeColor() const override;
240 WebUI* CreateWebUI(const GURL& url) override; 241 WebUI* CreateWebUI(const GURL& url) override;
241 WebUI* GetWebUI() const override; 242 WebUI* GetWebUI() const override;
242 WebUI* GetCommittedWebUI() const override; 243 WebUI* GetCommittedWebUI() const override;
243 void SetUserAgentOverride(const std::string& override) override; 244 void SetUserAgentOverride(const std::string& override) override;
244 const std::string& GetUserAgentOverride() const override; 245 const std::string& GetUserAgentOverride() const override;
245 void EnableTreeOnlyAccessibilityMode() override; 246 void EnableTreeOnlyAccessibilityMode() override;
246 bool IsTreeOnlyAccessibilityModeForTesting() const override; 247 bool IsTreeOnlyAccessibilityModeForTesting() const override;
247 bool IsFullAccessibilityModeForTesting() const override; 248 bool IsFullAccessibilityModeForTesting() const override;
(...skipping 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after
1288 // Adds/removes a callback called on creation of each new WebContents. 1289 // Adds/removes a callback called on creation of each new WebContents.
1289 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1290 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1290 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1291 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1291 1292
1292 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1293 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1293 }; 1294 };
1294 1295
1295 } // namespace content 1296 } // namespace content
1296 1297
1297 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1298 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698