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 #ifndef COMPONENTS_COMPONENT_UPDATER_UPDATE_CHECKER_H_ | 5 #ifndef COMPONENTS_UPDATE_CLIENT_UPDATE_CHECKER_H_ |
6 #define COMPONENTS_COMPONENT_UPDATER_UPDATE_CHECKER_H_ | 6 #define COMPONENTS_UPDATE_CLIENT_UPDATE_CHECKER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "components/component_updater/update_response.h" | 14 #include "components/update_client/update_response.h" |
15 #include "url/gurl.h" | 15 #include "url/gurl.h" |
16 | 16 |
17 class GURL; | 17 class GURL; |
18 | 18 |
19 namespace net { | 19 namespace net { |
20 class URLRequestContextGetter; | 20 class URLRequestContextGetter; |
21 } | 21 } |
22 | 22 |
23 namespace component_updater { | 23 namespace update_client { |
24 | 24 |
25 class Configurator; | 25 class Configurator; |
26 struct CrxUpdateItem; | 26 struct CrxUpdateItem; |
27 | 27 |
28 class UpdateChecker { | 28 class UpdateChecker { |
29 public: | 29 public: |
30 typedef base::Callback<void(const GURL& original_url, | 30 typedef base::Callback<void(const GURL& original_url, |
31 int error, | 31 int error, |
32 const std::string& error_message, | 32 const std::string& error_message, |
33 const UpdateResponse::Results& results)> | 33 const UpdateResponse::Results& results)> |
(...skipping 11 matching lines...) Expand all Loading... |
45 | 45 |
46 static scoped_ptr<UpdateChecker> Create(const Configurator& config); | 46 static scoped_ptr<UpdateChecker> Create(const Configurator& config); |
47 | 47 |
48 protected: | 48 protected: |
49 UpdateChecker() {} | 49 UpdateChecker() {} |
50 | 50 |
51 private: | 51 private: |
52 DISALLOW_COPY_AND_ASSIGN(UpdateChecker); | 52 DISALLOW_COPY_AND_ASSIGN(UpdateChecker); |
53 }; | 53 }; |
54 | 54 |
55 } // namespace component_updater | 55 } // namespace update_client |
56 | 56 |
57 #endif // COMPONENTS_COMPONENT_UPDATER_UPDATE_CHECKER_H_ | 57 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CHECKER_H_ |
OLD | NEW |