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

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

Issue 129873019: Support extension update dwnloads which require auth (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 ExtensionFetch(const std::string& id, const GURL& url, 121 ExtensionFetch(const std::string& id, const GURL& url,
122 const std::string& package_hash, const std::string& version, 122 const std::string& package_hash, const std::string& version,
123 const std::set<int>& request_ids); 123 const std::set<int>& request_ids);
124 ~ExtensionFetch(); 124 ~ExtensionFetch();
125 125
126 std::string id; 126 std::string id;
127 GURL url; 127 GURL url;
128 std::string package_hash; 128 std::string package_hash;
129 std::string version; 129 std::string version;
130 std::set<int> request_ids; 130 std::set<int> request_ids;
131 bool is_protected;
asargent_no_longer_on_chrome 2014/01/23 19:37:52 nit: a comment here would be helpful to readers
Ken Rockot(use gerrit already) 2014/01/31 01:37:09 Done.
131 }; 132 };
132 133
133 // Helper for AddExtension() and AddPendingExtension(). 134 // Helper for AddExtension() and AddPendingExtension().
134 bool AddExtensionData(const std::string& id, 135 bool AddExtensionData(const std::string& id,
135 const base::Version& version, 136 const base::Version& version,
136 Manifest::Type extension_type, 137 Manifest::Type extension_type,
137 const GURL& extension_update_url, 138 const GURL& extension_update_url,
138 const std::string& update_url_data, 139 const std::string& update_url_data,
139 int request_id); 140 int request_id);
140 141
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 224
224 // Maps an extension-id to its PingResult data. 225 // Maps an extension-id to its PingResult data.
225 std::map<std::string, ExtensionDownloaderDelegate::PingResult> ping_results_; 226 std::map<std::string, ExtensionDownloaderDelegate::PingResult> ping_results_;
226 227
227 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloader); 228 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloader);
228 }; 229 };
229 230
230 } // namespace extensions 231 } // namespace extensions
231 232
232 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_H_ 233 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698