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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2014803002: Move DownloadControllerAndroid from content/ to chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moved download delegate interface to native Created 4 years, 6 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 #include "content/browser/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <utility> 10 #include <utility>
(...skipping 4806 matching lines...) Expand 10 before | Expand all | Expand 10 after
4817 void WebContentsImpl::RequestFindMatchRects(int current_version) { 4817 void WebContentsImpl::RequestFindMatchRects(int current_version) {
4818 GetOrCreateFindRequestManager()->RequestFindMatchRects(current_version); 4818 GetOrCreateFindRequestManager()->RequestFindMatchRects(current_version);
4819 } 4819 }
4820 4820
4821 bool WebContentsImpl::CreateRenderViewForInitialEmptyDocument() { 4821 bool WebContentsImpl::CreateRenderViewForInitialEmptyDocument() {
4822 return CreateRenderViewForRenderManager( 4822 return CreateRenderViewForRenderManager(
4823 GetRenderViewHost(), MSG_ROUTING_NONE, MSG_ROUTING_NONE, 4823 GetRenderViewHost(), MSG_ROUTING_NONE, MSG_ROUTING_NONE,
4824 frame_tree_.root()->current_replication_state()); 4824 frame_tree_.root()->current_replication_state());
4825 } 4825 }
4826 4826
4827
4828 void WebContentsImpl::SetDownloadDelegate(DownloadDelegate* delegate) {
4829 GetWebContentsAndroid()->SetDownloadDelegate(delegate);
4830 }
4831
4832 DownloadDelegate* WebContentsImpl::GetDownloadDelegate() {
4833 return GetWebContentsAndroid()->GetDownloadDelegate();
4834 }
4835
4827 #elif defined(OS_MACOSX) 4836 #elif defined(OS_MACOSX)
4828 4837
4829 void WebContentsImpl::SetAllowOtherViews(bool allow) { 4838 void WebContentsImpl::SetAllowOtherViews(bool allow) {
4830 view_->SetAllowOtherViews(allow); 4839 view_->SetAllowOtherViews(allow);
4831 } 4840 }
4832 4841
4833 bool WebContentsImpl::GetAllowOtherViews() { 4842 bool WebContentsImpl::GetAllowOtherViews() {
4834 return view_->GetAllowOtherViews(); 4843 return view_->GetAllowOtherViews();
4835 } 4844 }
4836 4845
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
5059 for (RenderViewHost* render_view_host : render_view_host_set) 5068 for (RenderViewHost* render_view_host : render_view_host_set)
5060 render_view_host->OnWebkitPreferencesChanged(); 5069 render_view_host->OnWebkitPreferencesChanged();
5061 } 5070 }
5062 5071
5063 void WebContentsImpl::SetJavaScriptDialogManagerForTesting( 5072 void WebContentsImpl::SetJavaScriptDialogManagerForTesting(
5064 JavaScriptDialogManager* dialog_manager) { 5073 JavaScriptDialogManager* dialog_manager) {
5065 dialog_manager_ = dialog_manager; 5074 dialog_manager_ = dialog_manager;
5066 } 5075 }
5067 5076
5068 } // namespace content 5077 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698