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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <list> | 9 #include <list> |
10 #include <stack> | 10 #include <stack> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/file_path.h" | 14 #include "base/file_path.h" |
15 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
18 #include "base/time.h" | 18 #include "base/time.h" |
19 #include "base/timer.h" | 19 #include "base/timer.h" |
20 #include "chrome/browser/extensions/updater/extension_downloader_delegate.h" | 20 #include "chrome/browser/extensions/updater/extension_downloader_delegate.h" |
21 #include "chrome/browser/extensions/updater/manifest_fetch_data.h" | 21 #include "chrome/browser/extensions/updater/manifest_fetch_data.h" |
22 #include "content/public/browser/notification_observer.h" | 22 #include "content/public/browser/notification_observer.h" |
23 #include "content/public/browser/notification_registrar.h" | 23 #include "content/public/browser/notification_registrar.h" |
24 #include "googleurl/src/gurl.h" | 24 #include "googleurl/src/gurl.h" |
25 | 25 |
26 class ExtensionPrefs; | |
27 class ExtensionServiceInterface; | 26 class ExtensionServiceInterface; |
28 class ExtensionSet; | 27 class ExtensionSet; |
29 class PrefService; | 28 class PrefService; |
30 class Profile; | 29 class Profile; |
31 | 30 |
32 namespace extensions { | 31 namespace extensions { |
33 | 32 |
34 class ExtensionDownloader; | 33 class ExtensionDownloader; |
| 34 class ExtensionPrefs; |
35 class ExtensionUpdaterTest; | 35 class ExtensionUpdaterTest; |
36 | 36 |
37 // A class for doing auto-updates of installed Extensions. Used like this: | 37 // A class for doing auto-updates of installed Extensions. Used like this: |
38 // | 38 // |
39 // ExtensionUpdater* updater = new ExtensionUpdater(my_extensions_service, | 39 // ExtensionUpdater* updater = new ExtensionUpdater(my_extensions_service, |
40 // extension_prefs, | 40 // extension_prefs, |
41 // pref_service, | 41 // pref_service, |
42 // profile, | 42 // profile, |
43 // update_frequency_secs); | 43 // update_frequency_secs); |
44 // updater->Start(); | 44 // updater->Start(); |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 | 195 |
196 // Fetched CRX files waiting to be installed. | 196 // Fetched CRX files waiting to be installed. |
197 std::stack<FetchedCRXFile> fetched_crx_files_; | 197 std::stack<FetchedCRXFile> fetched_crx_files_; |
198 | 198 |
199 DISALLOW_COPY_AND_ASSIGN(ExtensionUpdater); | 199 DISALLOW_COPY_AND_ASSIGN(ExtensionUpdater); |
200 }; | 200 }; |
201 | 201 |
202 } // namespace extensions | 202 } // namespace extensions |
203 | 203 |
204 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_UPDATER_H_ | 204 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_UPDATER_H_ |
OLD | NEW |