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

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

Issue 6272025: Part 2 of repairing regressions to my old clang check plugins so Nico can (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copyright 2011 Created 9 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_EXTENSION_UPDATER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_UPDATER_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_UPDATER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_UPDATER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
11 #include <set> 11 #include <set>
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 friend class base::RefCountedThreadSafe<ExtensionUpdater>; 171 friend class base::RefCountedThreadSafe<ExtensionUpdater>;
172 friend class ExtensionUpdaterTest; 172 friend class ExtensionUpdaterTest;
173 friend class ExtensionUpdaterFileHandler; 173 friend class ExtensionUpdaterFileHandler;
174 friend class SafeManifestParser; 174 friend class SafeManifestParser;
175 175
176 virtual ~ExtensionUpdater(); 176 virtual ~ExtensionUpdater();
177 177
178 // We need to keep track of some information associated with a url 178 // We need to keep track of some information associated with a url
179 // when doing a fetch. 179 // when doing a fetch.
180 struct ExtensionFetch { 180 struct ExtensionFetch {
181 ExtensionFetch();
182 ExtensionFetch(const std::string& i, const GURL& u,
183 const std::string& h, const std::string& v);
184 ~ExtensionFetch();
185
181 std::string id; 186 std::string id;
182 GURL url; 187 GURL url;
183 std::string package_hash; 188 std::string package_hash;
184 std::string version; 189 std::string version;
185 ExtensionFetch() : id(""), url(), package_hash(""), version("") {}
186 ExtensionFetch(const std::string& i, const GURL& u,
187 const std::string& h, const std::string& v)
188 : id(i), url(u), package_hash(h), version(v) {}
189 }; 190 };
190 191
191 // These are needed for unit testing, to help identify the correct mock 192 // These are needed for unit testing, to help identify the correct mock
192 // URLFetcher objects. 193 // URLFetcher objects.
193 static const int kManifestFetcherId = 1; 194 static const int kManifestFetcherId = 1;
194 static const int kExtensionFetcherId = 2; 195 static const int kExtensionFetcherId = 2;
195 196
196 static const char* kBlacklistAppID; 197 static const char* kBlacklistAppID;
197 198
198 // Does common work from constructors. 199 // Does common work from constructors.
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 scoped_refptr<ExtensionUpdaterFileHandler> file_handler_; 287 scoped_refptr<ExtensionUpdaterFileHandler> file_handler_;
287 bool blacklist_checks_enabled_; 288 bool blacklist_checks_enabled_;
288 289
289 FRIEND_TEST(ExtensionUpdaterTest, TestStartUpdateCheckMemory); 290 FRIEND_TEST(ExtensionUpdaterTest, TestStartUpdateCheckMemory);
290 FRIEND_TEST(ExtensionUpdaterTest, TestAfterStopBehavior); 291 FRIEND_TEST(ExtensionUpdaterTest, TestAfterStopBehavior);
291 292
292 DISALLOW_COPY_AND_ASSIGN(ExtensionUpdater); 293 DISALLOW_COPY_AND_ASSIGN(ExtensionUpdater);
293 }; 294 };
294 295
295 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_UPDATER_H_ 296 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_UPDATER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_pref_value_map.cc ('k') | chrome/browser/extensions/extension_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698