OLD | NEW |
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 #include <list> | 5 #include <list> |
6 #include <map> | 6 #include <map> |
7 #include <set> | 7 #include <set> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 #include "chrome/browser/extensions/test_blacklist.h" | 32 #include "chrome/browser/extensions/test_blacklist.h" |
33 #include "chrome/browser/extensions/test_extension_prefs.h" | 33 #include "chrome/browser/extensions/test_extension_prefs.h" |
34 #include "chrome/browser/extensions/test_extension_service.h" | 34 #include "chrome/browser/extensions/test_extension_service.h" |
35 #include "chrome/browser/extensions/test_extension_system.h" | 35 #include "chrome/browser/extensions/test_extension_system.h" |
36 #include "chrome/browser/extensions/updater/extension_downloader.h" | 36 #include "chrome/browser/extensions/updater/extension_downloader.h" |
37 #include "chrome/browser/extensions/updater/extension_downloader_delegate.h" | 37 #include "chrome/browser/extensions/updater/extension_downloader_delegate.h" |
38 #include "chrome/browser/extensions/updater/extension_updater.h" | 38 #include "chrome/browser/extensions/updater/extension_updater.h" |
39 #include "chrome/browser/extensions/updater/manifest_fetch_data.h" | 39 #include "chrome/browser/extensions/updater/manifest_fetch_data.h" |
40 #include "chrome/browser/extensions/updater/request_queue_impl.h" | 40 #include "chrome/browser/extensions/updater/request_queue_impl.h" |
41 #include "chrome/browser/google/google_util.h" | 41 #include "chrome/browser/google/google_util.h" |
42 #include "chrome/browser/prefs/pref_service.h" | 42 #include "chrome/browser/prefs/pref_service_syncable.h" |
43 #include "chrome/common/chrome_notification_types.h" | 43 #include "chrome/common/chrome_notification_types.h" |
44 #include "chrome/common/extensions/extension.h" | 44 #include "chrome/common/extensions/extension.h" |
45 #include "chrome/common/extensions/extension_manifest_constants.h" | 45 #include "chrome/common/extensions/extension_manifest_constants.h" |
46 #include "chrome/common/extensions/manifest_handler.h" | 46 #include "chrome/common/extensions/manifest_handler.h" |
47 #include "chrome/common/extensions/manifest_url_handler.h" | 47 #include "chrome/common/extensions/manifest_url_handler.h" |
48 #include "chrome/common/pref_names.h" | 48 #include "chrome/common/pref_names.h" |
49 #include "chrome/test/base/testing_profile.h" | 49 #include "chrome/test/base/testing_profile.h" |
50 #include "content/public/browser/notification_details.h" | 50 #include "content/public/browser/notification_details.h" |
51 #include "content/public/browser/notification_observer.h" | 51 #include "content/public/browser/notification_observer.h" |
52 #include "content/public/browser/notification_registrar.h" | 52 #include "content/public/browser/notification_registrar.h" |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 } | 217 } |
218 | 218 |
219 Profile* profile() { return &profile_; } | 219 Profile* profile() { return &profile_; } |
220 | 220 |
221 net::URLRequestContextGetter* request_context() { | 221 net::URLRequestContextGetter* request_context() { |
222 return profile_.GetRequestContext(); | 222 return profile_.GetRequestContext(); |
223 } | 223 } |
224 | 224 |
225 ExtensionPrefs* extension_prefs() { return prefs_->prefs(); } | 225 ExtensionPrefs* extension_prefs() { return prefs_->prefs(); } |
226 | 226 |
227 PrefServiceSyncable* pref_service() { return prefs_->pref_service(); } | 227 PrefService* pref_service() { return prefs_->pref_service(); } |
228 | 228 |
229 Blacklist* blacklist() { return &blacklist_; } | 229 Blacklist* blacklist() { return &blacklist_; } |
230 | 230 |
231 // Creates test extensions and inserts them into list. The name and | 231 // Creates test extensions and inserts them into list. The name and |
232 // version are all based on their index. If |update_url| is non-null, it | 232 // version are all based on their index. If |update_url| is non-null, it |
233 // will be used as the update_url for each extension. | 233 // will be used as the update_url for each extension. |
234 // The |id| is used to distinguish extension names and make sure that | 234 // The |id| is used to distinguish extension names and make sure that |
235 // no two extensions share the same name. | 235 // no two extensions share the same name. |
236 void CreateTestExtensions(int id, int count, ExtensionList *list, | 236 void CreateTestExtensions(int id, int count, ExtensionList *list, |
237 const std::string* update_url, | 237 const std::string* update_url, |
(...skipping 1455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1693 // -prodversionmin (shouldn't update if browser version too old) | 1693 // -prodversionmin (shouldn't update if browser version too old) |
1694 // -manifests & updates arriving out of order / interleaved | 1694 // -manifests & updates arriving out of order / interleaved |
1695 // -malformed update url (empty, file://, has query, has a # fragment, etc.) | 1695 // -malformed update url (empty, file://, has query, has a # fragment, etc.) |
1696 // -An extension gets uninstalled while updates are in progress (so it doesn't | 1696 // -An extension gets uninstalled while updates are in progress (so it doesn't |
1697 // "come back from the dead") | 1697 // "come back from the dead") |
1698 // -An extension gets manually updated to v3 while we're downloading v2 (ie | 1698 // -An extension gets manually updated to v3 while we're downloading v2 (ie |
1699 // you don't get downgraded accidentally) | 1699 // you don't get downgraded accidentally) |
1700 // -An update manifest mentions multiple updates | 1700 // -An update manifest mentions multiple updates |
1701 | 1701 |
1702 } // namespace extensions | 1702 } // namespace extensions |
OLD | NEW |