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

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

Issue 12093036: Move Extension Location and Type enums to Manifest, and move InstallWarning to its own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | 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_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_H_
6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 std::string id; 128 std::string id;
129 GURL url; 129 GURL url;
130 std::string package_hash; 130 std::string package_hash;
131 std::string version; 131 std::string version;
132 std::set<int> request_ids; 132 std::set<int> request_ids;
133 }; 133 };
134 134
135 // Helper for AddExtension() and AddPendingExtension(). 135 // Helper for AddExtension() and AddPendingExtension().
136 bool AddExtensionData(const std::string& id, 136 bool AddExtensionData(const std::string& id,
137 const Version& version, 137 const Version& version,
138 Extension::Type extension_type, 138 Manifest::Type extension_type,
139 const GURL& extension_update_url, 139 const GURL& extension_update_url,
140 const std::string& update_url_data, 140 const std::string& update_url_data,
141 int request_id); 141 int request_id);
142 142
143 // Adds all recorded stats taken so far to histogram counts. 143 // Adds all recorded stats taken so far to histogram counts.
144 void ReportStats() const; 144 void ReportStats() const;
145 145
146 // Begins an update check. 146 // Begins an update check.
147 void StartUpdateCheck(scoped_ptr<ManifestFetchData> fetch_data); 147 void StartUpdateCheck(scoped_ptr<ManifestFetchData> fetch_data);
148 148
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 225
226 // Maps an extension-id to its PingResult data. 226 // Maps an extension-id to its PingResult data.
227 std::map<std::string, ExtensionDownloaderDelegate::PingResult> ping_results_; 227 std::map<std::string, ExtensionDownloaderDelegate::PingResult> ping_results_;
228 228
229 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloader); 229 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloader);
230 }; 230 };
231 231
232 } // namespace extensions 232 } // namespace extensions
233 233
234 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_H_ 234 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/unpacked_installer.cc ('k') | chrome/browser/extensions/updater/extension_downloader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698