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

Side by Side Diff: chromecast/shell/browser/cast_download_manager_delegate.h

Issue 602593004: Chromecast: disables downloads from the Chromecast shell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROMECAST_SHELL_BROWSER_CAST_DOWNLOAD_MANAGER_DELEGATE_H_
6 #define CHROMECAST_SHELL_BROWSER_CAST_DOWNLOAD_MANAGER_DELEGATE_H_
7
8 #include "base/macros.h"
9 #include "content/public/browser/download_manager_delegate.h"
10
11 namespace chromecast {
12 namespace shell {
13
14 class CastDownloadManagerDelegate : public content::DownloadManagerDelegate {
15 public:
16 CastDownloadManagerDelegate();
17 virtual ~CastDownloadManagerDelegate();
18
19 virtual void GetNextId(
lcwu1 2014/09/24 23:57:27 Add the comment "// content::DownloadManagerDelega
gunsch 2014/09/25 00:12:38 Done.
20 const content::DownloadIdCallback& callback) OVERRIDE;
21
22 virtual bool DetermineDownloadTarget(
23 content::DownloadItem* item,
24 const content::DownloadTargetCallback& callback) OVERRIDE;
25
26 virtual bool ShouldOpenFileBasedOnExtension(
27 const base::FilePath& path) OVERRIDE;
28
29 virtual bool ShouldCompleteDownload(
30 content::DownloadItem* item,
31 const base::Closure& complete_callback) OVERRIDE;
32
33 virtual bool ShouldOpenDownload(
34 content::DownloadItem* item,
35 const content::DownloadOpenDelayedCallback& callback) OVERRIDE;
36
37 private:
38 DISALLOW_COPY_AND_ASSIGN(CastDownloadManagerDelegate);
39 };
40
41 } // namespace shell
42 } // namespace chromecast
43
44 #endif // CHROMECAST_SHELL_BROWSER_CAST_DOWNLOAD_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « chromecast/shell/browser/cast_browser_context.cc ('k') | chromecast/shell/browser/cast_download_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698