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

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

Issue 516293007: Enable forced extension updates on NaCl arch mismatch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean-up per discussed solution Created 6 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
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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // this fetch. 159 // this fetch.
160 int oauth2_attempt_count; 160 int oauth2_attempt_count;
161 }; 161 };
162 162
163 // Helper for AddExtension() and AddPendingExtension(). 163 // Helper for AddExtension() and AddPendingExtension().
164 bool AddExtensionData(const std::string& id, 164 bool AddExtensionData(const std::string& id,
165 const base::Version& version, 165 const base::Version& version,
166 Manifest::Type extension_type, 166 Manifest::Type extension_type,
167 const GURL& extension_update_url, 167 const GURL& extension_update_url,
168 const std::string& update_url_data, 168 const std::string& update_url_data,
169 int request_id); 169 int request_id,
170 bool force_update,
171 const std::string& install_source_override);
Sorin Jianu 2014/09/02 20:06:39 Do we want to have both parameters?
Ken Rockot(use gerrit already) 2014/09/02 20:19:20 Not really, but I didn't like the idea of conflati
170 172
171 // Adds all recorded stats taken so far to histogram counts. 173 // Adds all recorded stats taken so far to histogram counts.
172 void ReportStats() const; 174 void ReportStats() const;
173 175
174 // Begins an update check. 176 // Begins an update check.
175 void StartUpdateCheck(scoped_ptr<ManifestFetchData> fetch_data); 177 void StartUpdateCheck(scoped_ptr<ManifestFetchData> fetch_data);
176 178
177 // Called by RequestQueue when a new manifest fetch request is started. 179 // Called by RequestQueue when a new manifest fetch request is started.
178 void CreateManifestFetcher(); 180 void CreateManifestFetcher();
179 181
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 292
291 // A pending token fetch request. 293 // A pending token fetch request.
292 scoped_ptr<OAuth2TokenService::Request> access_token_request_; 294 scoped_ptr<OAuth2TokenService::Request> access_token_request_;
293 295
294 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloader); 296 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloader);
295 }; 297 };
296 298
297 } // namespace extensions 299 } // namespace extensions
298 300
299 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_H_ 301 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698