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

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: Fix chromecast android compile failure. Created 5 years, 7 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 RenderFrameHostImpl* GetFocusedFrame() override; 231 RenderFrameHostImpl* 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 RenderViewHostImpl* GetRenderViewHost() const override; 235 RenderViewHostImpl* 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 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after
1282 // Adds/removes a callback called on creation of each new WebContents. 1283 // Adds/removes a callback called on creation of each new WebContents.
1283 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1284 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1284 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1285 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1285 1286
1286 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1287 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1287 }; 1288 };
1288 1289
1289 } // namespace content 1290 } // namespace content
1290 1291
1291 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1292 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_unittest.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698