OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/extensions/extension_updater.h" | 5 #include "chrome/browser/extensions/extension_updater.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
12 #include "base/file_version_info.h" | 12 #include "base/file_version_info.h" |
13 #include "base/histogram.h" | 13 #include "base/histogram.h" |
14 #include "base/rand_util.h" | 14 #include "base/rand_util.h" |
15 #include "base/sha2.h" | 15 #include "base/sha2.h" |
16 #include "base/stl_util-inl.h" | 16 #include "base/stl_util-inl.h" |
17 #include "base/string_number_conversions.h" | 17 #include "base/string_number_conversions.h" |
18 #include "base/string_util.h" | 18 #include "base/string_util.h" |
19 #include "base/time.h" | 19 #include "base/time.h" |
20 #include "base/thread.h" | 20 #include "base/thread.h" |
21 #include "base/version.h" | 21 #include "base/version.h" |
22 #include "chrome/browser/browser_process.h" | 22 #include "chrome/browser/browser_process.h" |
23 #include "chrome/browser/extensions/extension_error_reporter.h" | 23 #include "chrome/browser/extensions/extension_error_reporter.h" |
24 #include "chrome/browser/extensions/extensions_service.h" | 24 #include "chrome/browser/extensions/extensions_service.h" |
25 #include "chrome/browser/pref_service.h" | 25 #include "chrome/browser/prefs/pref_service.h" |
26 #include "chrome/browser/profile.h" | 26 #include "chrome/browser/profile.h" |
27 #include "chrome/browser/utility_process_host.h" | 27 #include "chrome/browser/utility_process_host.h" |
28 #include "chrome/common/chrome_switches.h" | 28 #include "chrome/common/chrome_switches.h" |
29 #include "chrome/common/chrome_version_info.h" | 29 #include "chrome/common/chrome_version_info.h" |
30 #include "chrome/common/extensions/extension.h" | 30 #include "chrome/common/extensions/extension.h" |
31 #include "chrome/common/extensions/extension_constants.h" | 31 #include "chrome/common/extensions/extension_constants.h" |
32 #include "chrome/common/pref_names.h" | 32 #include "chrome/common/pref_names.h" |
33 #include "googleurl/src/gurl.h" | 33 #include "googleurl/src/gurl.h" |
34 #include "net/base/escape.h" | 34 #include "net/base/escape.h" |
35 #include "net/base/load_flags.h" | 35 #include "net/base/load_flags.h" |
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
842 extension_fetcher_.reset( | 842 extension_fetcher_.reset( |
843 URLFetcher::Create(kExtensionFetcherId, url, URLFetcher::GET, this)); | 843 URLFetcher::Create(kExtensionFetcherId, url, URLFetcher::GET, this)); |
844 extension_fetcher_->set_request_context( | 844 extension_fetcher_->set_request_context( |
845 Profile::GetDefaultRequestContext()); | 845 Profile::GetDefaultRequestContext()); |
846 extension_fetcher_->set_load_flags(net::LOAD_DO_NOT_SEND_COOKIES | | 846 extension_fetcher_->set_load_flags(net::LOAD_DO_NOT_SEND_COOKIES | |
847 net::LOAD_DO_NOT_SAVE_COOKIES); | 847 net::LOAD_DO_NOT_SAVE_COOKIES); |
848 extension_fetcher_->Start(); | 848 extension_fetcher_->Start(); |
849 current_extension_fetch_ = ExtensionFetch(id, url, hash, version); | 849 current_extension_fetch_ = ExtensionFetch(id, url, hash, version); |
850 } | 850 } |
851 } | 851 } |
OLD | NEW |