| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/component_updater/update_checker.h" | 5 #include "components/component_updater/update_checker.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/location.h" | 13 #include "base/location.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/macros.h" |
| 15 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/strings/stringprintf.h" | 17 #include "base/strings/stringprintf.h" |
| 17 #include "base/threading/thread_checker.h" | 18 #include "base/threading/thread_checker.h" |
| 18 #include "components/component_updater/component_updater_configurator.h" | 19 #include "components/component_updater/component_updater_configurator.h" |
| 19 #include "components/component_updater/component_updater_utils.h" | 20 #include "components/component_updater/component_updater_utils.h" |
| 20 #include "components/component_updater/crx_update_item.h" | 21 #include "components/component_updater/crx_update_item.h" |
| 21 #include "components/component_updater/request_sender.h" | 22 #include "components/component_updater/request_sender.h" |
| 22 #include "net/url_request/url_fetcher.h" | 23 #include "net/url_request/url_fetcher.h" |
| 23 #include "url/gurl.h" | 24 #include "url/gurl.h" |
| 24 | 25 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 original_url, error, error_message, update_response.results()); | 158 original_url, error, error_message, update_response.results()); |
| 158 } | 159 } |
| 159 | 160 |
| 160 } // namespace | 161 } // namespace |
| 161 | 162 |
| 162 scoped_ptr<UpdateChecker> UpdateChecker::Create(const Configurator& config) { | 163 scoped_ptr<UpdateChecker> UpdateChecker::Create(const Configurator& config) { |
| 163 return scoped_ptr<UpdateChecker>(new UpdateCheckerImpl(config)); | 164 return scoped_ptr<UpdateChecker>(new UpdateCheckerImpl(config)); |
| 164 } | 165 } |
| 165 | 166 |
| 166 } // namespace component_updater | 167 } // namespace component_updater |
| OLD | NEW |