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/files/file_enumerator.h" | 10 #include "base/files/file_enumerator.h" |
11 #include "base/files/file_util.h" | 11 #include "base/files/file_util.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/extensions/crx_installer.h" | 17 #include "chrome/browser/extensions/crx_installer.h" |
18 #include "chrome/browser/extensions/external_provider_impl.h" | 18 #include "chrome/browser/extensions/external_provider_impl.h" |
19 #include "chrome/browser/extensions/updater/chrome_extension_downloader_factory.
h" | 19 #include "chrome/browser/extensions/updater/chrome_extension_downloader_factory.
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_constants.h" | |
22 #include "content/public/browser/notification_details.h" | 21 #include "content/public/browser/notification_details.h" |
23 #include "content/public/browser/notification_service.h" | 22 #include "content/public/browser/notification_service.h" |
24 #include "content/public/browser/notification_source.h" | 23 #include "content/public/browser/notification_source.h" |
25 #include "extensions/browser/notification_types.h" | 24 #include "extensions/browser/notification_types.h" |
26 #include "extensions/common/extension.h" | 25 #include "extensions/common/extension.h" |
| 26 #include "extensions/common/extension_urls.h" |
27 #include "net/url_request/url_request_context_getter.h" | 27 #include "net/url_request/url_request_context_getter.h" |
28 | 28 |
29 namespace chromeos { | 29 namespace chromeos { |
30 | 30 |
31 ExternalCache::ExternalCache(const base::FilePath& cache_dir, | 31 ExternalCache::ExternalCache(const base::FilePath& cache_dir, |
32 net::URLRequestContextGetter* request_context, | 32 net::URLRequestContextGetter* request_context, |
33 const scoped_refptr<base::SequencedTaskRunner>& | 33 const scoped_refptr<base::SequencedTaskRunner>& |
34 backend_task_runner, | 34 backend_task_runner, |
35 Delegate* delegate, | 35 Delegate* delegate, |
36 bool always_check_updates, | 36 bool always_check_updates, |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 OnPutExtension(id, file_path, file_ownership_passed); | 345 OnPutExtension(id, file_path, file_ownership_passed); |
346 callback.Run(id, !file_ownership_passed); | 346 callback.Run(id, !file_ownership_passed); |
347 } | 347 } |
348 | 348 |
349 std::string ExternalCache::Delegate::GetInstalledExtensionVersion( | 349 std::string ExternalCache::Delegate::GetInstalledExtensionVersion( |
350 const std::string& id) { | 350 const std::string& id) { |
351 return std::string(); | 351 return std::string(); |
352 } | 352 } |
353 | 353 |
354 } // namespace chromeos | 354 } // namespace chromeos |
OLD | NEW |