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 #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> |
11 #include <stack> | 11 #include <stack> |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "base/callback_forward.h" | 14 #include "base/callback_forward.h" |
15 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
16 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
17 #include "base/gtest_prod_util.h" | 17 #include "base/gtest_prod_util.h" |
18 #include "base/memory/scoped_ptr.h" | 18 #include "base/memory/scoped_ptr.h" |
19 #include "base/memory/weak_ptr.h" | 19 #include "base/memory/weak_ptr.h" |
20 #include "base/time/time.h" | 20 #include "base/time/time.h" |
21 #include "base/timer/timer.h" | 21 #include "base/timer/timer.h" |
22 #include "chrome/browser/extensions/updater/extension_downloader_delegate.h" | 22 #include "chrome/browser/extensions/updater/extension_downloader_delegate.h" |
23 #include "chrome/browser/extensions/updater/manifest_fetch_data.h" | 23 #include "chrome/browser/extensions/updater/manifest_fetch_data.h" |
24 #include "content/public/browser/notification_observer.h" | 24 #include "content/public/browser/notification_observer.h" |
25 #include "content/public/browser/notification_registrar.h" | 25 #include "content/public/browser/notification_registrar.h" |
26 #include "url/gurl.h" | 26 #include "url/gurl.h" |
27 | 27 |
28 class ExtensionServiceInterface; | 28 class ExtensionServiceInterface; |
29 class ExtensionSet; | |
30 class PrefService; | 29 class PrefService; |
31 class Profile; | 30 class Profile; |
32 | 31 |
33 namespace extensions { | 32 namespace extensions { |
34 | 33 |
35 class ExtensionDownloader; | 34 class ExtensionDownloader; |
36 class ExtensionPrefs; | 35 class ExtensionPrefs; |
| 36 class ExtensionSet; |
37 class ExtensionUpdaterTest; | 37 class ExtensionUpdaterTest; |
38 | 38 |
39 // A class for doing auto-updates of installed Extensions. Used like this: | 39 // A class for doing auto-updates of installed Extensions. Used like this: |
40 // | 40 // |
41 // ExtensionUpdater* updater = new ExtensionUpdater(my_extensions_service, | 41 // ExtensionUpdater* updater = new ExtensionUpdater(my_extensions_service, |
42 // extension_prefs, | 42 // extension_prefs, |
43 // pref_service, | 43 // pref_service, |
44 // profile, | 44 // profile, |
45 // update_frequency_secs); | 45 // update_frequency_secs); |
46 // updater->Start(); | 46 // updater->Start(); |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 // Keeps track of when an extension tried to update itself, so we can throttle | 249 // Keeps track of when an extension tried to update itself, so we can throttle |
250 // checks to prevent too many requests from being made. | 250 // checks to prevent too many requests from being made. |
251 std::map<std::string, ThrottleInfo> throttle_info_; | 251 std::map<std::string, ThrottleInfo> throttle_info_; |
252 | 252 |
253 DISALLOW_COPY_AND_ASSIGN(ExtensionUpdater); | 253 DISALLOW_COPY_AND_ASSIGN(ExtensionUpdater); |
254 }; | 254 }; |
255 | 255 |
256 } // namespace extensions | 256 } // namespace extensions |
257 | 257 |
258 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_UPDATER_H_ | 258 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_UPDATER_H_ |
OLD | NEW |