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

Side by Side Diff: chrome/browser/extensions/updater/extension_downloader_delegate.h

Issue 23591050: Delete the omahaproxy-backed extension blacklist and clear its entries from the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix memory leak in blacklist test Created 7 years, 3 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 #ifndef CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_DELEGATE_H_
6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_DELEGATE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_DELEGATE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // successfully downloaded to |path|. Ownership of that file is transferred 82 // successfully downloaded to |path|. Ownership of that file is transferred
83 // to the delegate. 83 // to the delegate.
84 virtual void OnExtensionDownloadFinished( 84 virtual void OnExtensionDownloadFinished(
85 const std::string& id, 85 const std::string& id,
86 const base::FilePath& path, 86 const base::FilePath& path,
87 const GURL& download_url, 87 const GURL& download_url,
88 const std::string& version, 88 const std::string& version,
89 const PingResult& ping_result, 89 const PingResult& ping_result,
90 const std::set<int>& request_ids) = 0; 90 const std::set<int>& request_ids) = 0;
91 91
92 // Same as OnExtensionDownloadFinished() but only for the kBlacklistAppID
93 // extension, which passes different data to the delegate.
94 virtual void OnBlacklistDownloadFinished(
95 const std::string& data,
96 const std::string& package_hash,
97 const std::string& version,
98 const PingResult& ping_result,
99 const std::set<int>& request_ids) = 0;
100
101 // The remaining methods are used by the ExtensionDownloader to retrieve 92 // The remaining methods are used by the ExtensionDownloader to retrieve
102 // information about extensions from the delegate. 93 // information about extensions from the delegate.
103 94
104 // Invoked to fill the PingData for the given extension id. Returns false 95 // Invoked to fill the PingData for the given extension id. Returns false
105 // if PingData should not be included for this extension's update check 96 // if PingData should not be included for this extension's update check
106 // (this is the default). 97 // (this is the default).
107 virtual bool GetPingDataForExtension(const std::string& id, 98 virtual bool GetPingDataForExtension(const std::string& id,
108 ManifestFetchData::PingData* ping); 99 ManifestFetchData::PingData* ping);
109 100
110 // Invoked to get the update url data for this extension's update url, if 101 // Invoked to get the update url data for this extension's update url, if
111 // there is any. The default implementation returns an empty string. 102 // there is any. The default implementation returns an empty string.
112 virtual std::string GetUpdateUrlData(const std::string& id); 103 virtual std::string GetUpdateUrlData(const std::string& id);
113 104
114 // Invoked to determine whether extension |id| is currently 105 // Invoked to determine whether extension |id| is currently
115 // pending installation. 106 // pending installation.
116 virtual bool IsExtensionPending(const std::string& id) = 0; 107 virtual bool IsExtensionPending(const std::string& id) = 0;
117 108
118 // Invoked to get the current version of extension |id|. Returns false if 109 // Invoked to get the current version of extension |id|. Returns false if
119 // that extension is not installed. 110 // that extension is not installed.
120 virtual bool GetExtensionExistingVersion(const std::string& id, 111 virtual bool GetExtensionExistingVersion(const std::string& id,
121 std::string* version) = 0; 112 std::string* version) = 0;
122 }; 113 };
123 114
124 } // namespace extensions 115 } // namespace extensions
125 116
126 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_DELEGATE_H_ 117 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/updater/extension_downloader.cc ('k') | chrome/browser/extensions/updater/extension_updater.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698