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

Side by Side Diff: content/public/browser/web_contents_delegate.cc

Issue 286543002: Cleanup CanDownload WebContentsDelegate API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Android build hopefully Created 6 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
« no previous file with comments | « content/public/browser/web_contents_delegate.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "content/public/browser/web_contents_delegate.h" 5 #include "content/public/browser/web_contents_delegate.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "content/public/browser/render_view_host.h" 10 #include "content/public/browser/render_view_host.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 bool WebContentsDelegate::TakeFocus(WebContents* source, bool reverse) { 66 bool WebContentsDelegate::TakeFocus(WebContents* source, bool reverse) {
67 return false; 67 return false;
68 } 68 }
69 69
70 int WebContentsDelegate::GetExtraRenderViewHeight() const { 70 int WebContentsDelegate::GetExtraRenderViewHeight() const {
71 return 0; 71 return 0;
72 } 72 }
73 73
74 void WebContentsDelegate::CanDownload( 74 void WebContentsDelegate::CanDownload(
75 RenderViewHost* render_view_host, 75 RenderViewHost* render_view_host,
76 int request_id, 76 const GURL& url,
77 const std::string& request_method, 77 const std::string& request_method,
78 const base::Callback<void(bool)>& callback) { 78 const base::Callback<void(bool)>& callback) {
79 callback.Run(true); 79 callback.Run(true);
80 } 80 }
81 81
82 bool WebContentsDelegate::HandleContextMenu( 82 bool WebContentsDelegate::HandleContextMenu(
83 const content::ContextMenuParams& params) { 83 const content::ContextMenuParams& params) {
84 return false; 84 return false;
85 } 85 }
86 86
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 gfx::Size WebContentsDelegate::GetSizeForNewRenderView( 198 gfx::Size WebContentsDelegate::GetSizeForNewRenderView(
199 WebContents* web_contents) const { 199 WebContents* web_contents) const {
200 return gfx::Size(); 200 return gfx::Size();
201 } 201 }
202 202
203 bool WebContentsDelegate::IsNeverVisible(WebContents* web_contents) { 203 bool WebContentsDelegate::IsNeverVisible(WebContents* web_contents) {
204 return false; 204 return false;
205 } 205 }
206 206
207 } // namespace content 207 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/web_contents_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698