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

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

Issue 226023003: Create CrxInstaller directly in WebstoreInstaller (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android compilation fix (again). Created 6 years, 8 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_UPDATER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_UPDATER_H_
6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_UPDATER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_UPDATER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 friend class ExtensionUpdaterTest; 119 friend class ExtensionUpdaterTest;
120 friend class ExtensionUpdaterFileHandler; 120 friend class ExtensionUpdaterFileHandler;
121 121
122 // FetchedCRXFile holds information about a CRX file we fetched to disk, 122 // FetchedCRXFile holds information about a CRX file we fetched to disk,
123 // but have not yet installed. 123 // but have not yet installed.
124 struct FetchedCRXFile { 124 struct FetchedCRXFile {
125 FetchedCRXFile(); 125 FetchedCRXFile();
126 FetchedCRXFile(const std::string& id, 126 FetchedCRXFile(const std::string& id,
127 const base::FilePath& path, 127 const base::FilePath& path,
128 bool file_ownership_passed, 128 bool file_ownership_passed,
129 const GURL& download_url,
130 const std::set<int>& request_ids); 129 const std::set<int>& request_ids);
131 ~FetchedCRXFile(); 130 ~FetchedCRXFile();
132 131
133 std::string extension_id; 132 std::string extension_id;
134 base::FilePath path; 133 base::FilePath path;
135 bool file_ownership_passed; 134 bool file_ownership_passed;
136 GURL download_url;
137 std::set<int> request_ids; 135 std::set<int> request_ids;
138 }; 136 };
139 137
140 struct InProgressCheck { 138 struct InProgressCheck {
141 InProgressCheck(); 139 InProgressCheck();
142 ~InProgressCheck(); 140 ~InProgressCheck();
143 141
144 bool install_immediately; 142 bool install_immediately;
145 FinishedCallback callback; 143 FinishedCallback callback;
146 // The ids of extensions that have in-progress update checks. 144 // The ids of extensions that have in-progress update checks.
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 // Keeps track of when an extension tried to update itself, so we can throttle 254 // Keeps track of when an extension tried to update itself, so we can throttle
257 // checks to prevent too many requests from being made. 255 // checks to prevent too many requests from being made.
258 std::map<std::string, ThrottleInfo> throttle_info_; 256 std::map<std::string, ThrottleInfo> throttle_info_;
259 257
260 DISALLOW_COPY_AND_ASSIGN(ExtensionUpdater); 258 DISALLOW_COPY_AND_ASSIGN(ExtensionUpdater);
261 }; 259 };
262 260
263 } // namespace extensions 261 } // namespace extensions
264 262
265 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_UPDATER_H_ 263 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_UPDATER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/test_extension_service.cc ('k') | chrome/browser/extensions/updater/extension_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698