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

Side by Side Diff: chrome/browser/download/download_extension_api.h

Issue 8468020: Propagate the SafeBrowsing download protection verdict to the DownloadItem. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Merge Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_EXTENSION_API_H_ 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_EXTENSION_API_H_
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_EXTENSION_API_H_ 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_EXTENSION_API_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 12
13 #include "base/file_path.h" 13 #include "base/file_path.h"
14 #include "base/memory/singleton.h" 14 #include "base/memory/singleton.h"
15 #include "base/string16.h" 15 #include "base/string16.h"
16 #include "chrome/browser/extensions/extension_function.h" 16 #include "chrome/browser/extensions/extension_function.h"
17 #include "content/browser/download/download_item.h" 17 #include "content/browser/download/download_item.h"
18 #include "content/browser/download/download_manager.h" 18 #include "content/browser/download/download_manager.h"
19 #include "content/browser/download/download_state_info.h"
19 20
20 class ResourceDispatcherHost; 21 class ResourceDispatcherHost;
21 22
22 namespace content { 23 namespace content {
23 class ResourceContext; 24 class ResourceContext;
24 } 25 }
25 26
26 // Functions in the chrome.experimental.downloads namespace facilitate 27 // Functions in the chrome.experimental.downloads namespace facilitate
27 // controlling downloads from extensions. See the full API doc at 28 // controlling downloads from extensions. See the full API doc at
28 // http://goo.gl/6hO1n 29 // http://goo.gl/6hO1n
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 typedef base::hash_map<int, DownloadItem*> ItemMap; 266 typedef base::hash_map<int, DownloadItem*> ItemMap;
266 typedef std::set<int> DownloadIdSet; 267 typedef std::set<int> DownloadIdSet;
267 268
268 Profile* profile_; 269 Profile* profile_;
269 DownloadManager* manager_; 270 DownloadManager* manager_;
270 DownloadIdSet downloads_; 271 DownloadIdSet downloads_;
271 272
272 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloadsEventRouter); 273 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloadsEventRouter);
273 }; 274 };
274 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_EXTENSION_API_H_ 275 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_EXTENSION_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698