OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "chrome/browser/chromeos/extensions/external_cache.h" | 5 #include "chrome/browser/chromeos/extensions/external_cache.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/files/file_enumerator.h" | 11 #include "base/files/file_enumerator.h" |
12 #include "base/location.h" | 12 #include "base/location.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
15 #include "base/values.h" | 15 #include "base/values.h" |
16 #include "base/version.h" | 16 #include "base/version.h" |
17 #include "chrome/browser/chrome_notification_types.h" | 17 #include "chrome/browser/chrome_notification_types.h" |
18 #include "chrome/browser/extensions/crx_installer.h" | 18 #include "chrome/browser/extensions/crx_installer.h" |
19 #include "chrome/browser/extensions/external_provider_impl.h" | 19 #include "chrome/browser/extensions/external_provider_impl.h" |
20 #include "chrome/browser/extensions/updater/extension_downloader.h" | 20 #include "chrome/browser/extensions/updater/extension_downloader.h" |
21 #include "chrome/common/extensions/extension.h" | |
22 #include "chrome/common/extensions/extension_constants.h" | 21 #include "chrome/common/extensions/extension_constants.h" |
23 #include "content/public/browser/browser_thread.h" | 22 #include "content/public/browser/browser_thread.h" |
24 #include "content/public/browser/notification_details.h" | 23 #include "content/public/browser/notification_details.h" |
25 #include "content/public/browser/notification_service.h" | 24 #include "content/public/browser/notification_service.h" |
26 #include "content/public/browser/notification_source.h" | 25 #include "content/public/browser/notification_source.h" |
| 26 #include "extensions/common/extension.h" |
27 | 27 |
28 namespace chromeos { | 28 namespace chromeos { |
29 | 29 |
30 namespace { | 30 namespace { |
31 | 31 |
32 // File name extension for CRX files (not case sensitive). | 32 // File name extension for CRX files (not case sensitive). |
33 const char kCRXFileExtension[] = ".crx"; | 33 const char kCRXFileExtension[] = ".crx"; |
34 | 34 |
35 // Delay between checks for flag file presence when waiting for the cache to | 35 // Delay between checks for flag file presence when waiting for the cache to |
36 // become ready. | 36 // become ready. |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 FROM_HERE, | 554 FROM_HERE, |
555 callback); | 555 callback); |
556 } | 556 } |
557 | 557 |
558 std::string ExternalCache::Delegate::GetInstalledExtensionVersion( | 558 std::string ExternalCache::Delegate::GetInstalledExtensionVersion( |
559 const std::string& id) { | 559 const std::string& id) { |
560 return std::string(); | 560 return std::string(); |
561 } | 561 } |
562 | 562 |
563 } // namespace chromeos | 563 } // namespace chromeos |
OLD | NEW |