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

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

Issue 8400020: Revert 107528 - Collect some histograms about signed binary downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
« no previous file with comments | « no previous file | chrome/browser/download/chrome_download_manager_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_
6 #define CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ 6 #define CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/hash_tables.h" 10 #include "base/hash_tables.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/task.h" 13 #include "base/task.h"
14 #include "chrome/browser/safe_browsing/download_protection_service.h"
15 #include "content/public/browser/download_manager_delegate.h" 14 #include "content/public/browser/download_manager_delegate.h"
16 #include "content/public/browser/notification_observer.h" 15 #include "content/public/browser/notification_observer.h"
17 #include "content/public/browser/notification_registrar.h" 16 #include "content/public/browser/notification_registrar.h"
18 17
19 class CrxInstaller; 18 class CrxInstaller;
20 class DownloadHistory; 19 class DownloadHistory;
21 class DownloadItem; 20 class DownloadItem;
22 class DownloadManager; 21 class DownloadManager;
23 class DownloadPrefs; 22 class DownloadPrefs;
24 class Profile; 23 class Profile;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 const DownloadStateInfo& state, 127 const DownloadStateInfo& state,
129 bool visited_referrer_before); 128 bool visited_referrer_before);
130 129
131 // Callback from history system. 130 // Callback from history system.
132 void OnItemAddedToPersistentStore(int32 download_id, int64 db_handle); 131 void OnItemAddedToPersistentStore(int32 download_id, int64 db_handle);
133 132
134 // Callback function after download file hash is checked with safebrowsing 133 // Callback function after download file hash is checked with safebrowsing
135 // service. 134 // service.
136 void CheckDownloadHashDone(int32 download_id, bool is_dangerous_hash); 135 void CheckDownloadHashDone(int32 download_id, bool is_dangerous_hash);
137 136
138 // Callback function after the DownloadProtectionService completes.
139 void CheckClientDownloadDone(
140 int32 download_id,
141 safe_browsing::DownloadProtectionService::DownloadCheckResult result);
142
143 Profile* profile_; 137 Profile* profile_;
144 scoped_ptr<DownloadPrefs> download_prefs_; 138 scoped_ptr<DownloadPrefs> download_prefs_;
145 scoped_ptr<DownloadHistory> download_history_; 139 scoped_ptr<DownloadHistory> download_history_;
146 140
147 // Maps from pending extension installations to DownloadItem IDs. 141 // Maps from pending extension installations to DownloadItem IDs.
148 typedef base::hash_map<CrxInstaller*, int> CrxInstallerMap; 142 typedef base::hash_map<CrxInstaller*, int> CrxInstallerMap;
149 CrxInstallerMap crx_installers_; 143 CrxInstallerMap crx_installers_;
150 144
151 content::NotificationRegistrar registrar_; 145 content::NotificationRegistrar registrar_;
152 146
153 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate); 147 DISALLOW_COPY_AND_ASSIGN(ChromeDownloadManagerDelegate);
154 }; 148 };
155 149
156 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_ 150 #endif // CHROME_BROWSER_DOWNLOAD_CHROME_DOWNLOAD_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/download/chrome_download_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698