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

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

Issue 2674973003: Adding a DownloadRestrictions group policy. (Closed)
Patch Set: Patch set 5 + rebase Created 3 years, 10 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/public/browser/download_manager_delegate.h" 5 #include "content/public/browser/download_manager_delegate.h"
6 6
7 #include <string>
8
7 #include "content/public/browser/download_item.h" 9 #include "content/public/browser/download_item.h"
8 10
9 namespace content { 11 namespace content {
10 12
11 void DownloadManagerDelegate::GetNextId(const DownloadIdCallback& callback) { 13 void DownloadManagerDelegate::GetNextId(const DownloadIdCallback& callback) {
12 callback.Run(content::DownloadItem::kInvalidId); 14 callback.Run(content::DownloadItem::kInvalidId);
13 } 15 }
14 16
15 bool DownloadManagerDelegate::DetermineDownloadTarget( 17 bool DownloadManagerDelegate::DetermineDownloadTarget(
16 DownloadItem* item, 18 DownloadItem* item,
(...skipping 21 matching lines...) Expand all
38 return false; 40 return false;
39 } 41 }
40 42
41 std::string 43 std::string
42 DownloadManagerDelegate::ApplicationClientIdForFileScanning() const { 44 DownloadManagerDelegate::ApplicationClientIdForFileScanning() const {
43 return std::string(); 45 return std::string();
44 } 46 }
45 47
46 DownloadManagerDelegate::~DownloadManagerDelegate() {} 48 DownloadManagerDelegate::~DownloadManagerDelegate() {}
47 49
50 bool DownloadManagerDelegate::ShouldBlockAllDownloads() const {
asanka 2017/02/09 19:25:01 Let's do all the blocking in //chrome.
MAD 2017/02/14 18:15:48 Can you point me where //chrome could block the do
51 return false;
52 }
53
48 } // namespace content 54 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698