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

Side by Side Diff: content/browser/download/download_manager_impl.h

Issue 9651020: Pass content-type resources to web intents. Goes through download, then invokes the p… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move dispatch logic client-side. Created 8 years, 9 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 | Annotate | Revision Log
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 5
6 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ 6 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_
7 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ 7 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_
8 #pragma once 8 #pragma once
9 9
10 #include <map> 10 #include <map>
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 virtual void SavePageDownloadFinished( 91 virtual void SavePageDownloadFinished(
92 content::DownloadItem* download) OVERRIDE; 92 content::DownloadItem* download) OVERRIDE;
93 virtual content::DownloadItem* GetActiveDownloadItem(int id) OVERRIDE; 93 virtual content::DownloadItem* GetActiveDownloadItem(int id) OVERRIDE;
94 virtual bool GenerateFileHash() OVERRIDE; 94 virtual bool GenerateFileHash() OVERRIDE;
95 virtual content::DownloadManagerDelegate* delegate() const OVERRIDE; 95 virtual content::DownloadManagerDelegate* delegate() const OVERRIDE;
96 virtual void SetDownloadManagerDelegate( 96 virtual void SetDownloadManagerDelegate(
97 content::DownloadManagerDelegate* delegate) OVERRIDE; 97 content::DownloadManagerDelegate* delegate) OVERRIDE;
98 98
99 // Overridden from DownloadItemImpl::Delegate 99 // Overridden from DownloadItemImpl::Delegate
100 // (Note that |GetBrowserContext| are present in both interfaces.) 100 // (Note that |GetBrowserContext| are present in both interfaces.)
101 virtual bool ShouldOpenWithWebIntent(content::DownloadItem* item) OVERRIDE;
101 virtual bool ShouldOpenDownload(content::DownloadItem* item) OVERRIDE; 102 virtual bool ShouldOpenDownload(content::DownloadItem* item) OVERRIDE;
102 virtual bool ShouldOpenFileBasedOnExtension( 103 virtual bool ShouldOpenFileBasedOnExtension(
103 const FilePath& path) OVERRIDE; 104 const FilePath& path) OVERRIDE;
104 virtual void CheckForFileRemoval( 105 virtual void CheckForFileRemoval(
105 content::DownloadItem* download_item) OVERRIDE; 106 content::DownloadItem* download_item) OVERRIDE;
106 virtual void MaybeCompleteDownload( 107 virtual void MaybeCompleteDownload(
107 content::DownloadItem* download) OVERRIDE; 108 content::DownloadItem* download) OVERRIDE;
108 virtual void DownloadCancelled( 109 virtual void DownloadCancelled(
109 content::DownloadItem* download) OVERRIDE; 110 content::DownloadItem* download) OVERRIDE;
110 virtual void DownloadCompleted( 111 virtual void DownloadCompleted(
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 // TODO(rdsmith): Remove when http://crbug.com/85408 is fixed. 250 // TODO(rdsmith): Remove when http://crbug.com/85408 is fixed.
250 // For debugging only. 251 // For debugging only.
251 int64 largest_db_handle_in_history_; 252 int64 largest_db_handle_in_history_;
252 253
253 net::NetLog* net_log_; 254 net::NetLog* net_log_;
254 255
255 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); 256 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl);
256 }; 257 };
257 258
258 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ 259 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698