| 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_UPDATE_CLIENT_UPDATE_CHECKER_H_ | 5 #ifndef COMPONENTS_UPDATE_CLIENT_UPDATE_CHECKER_H_ |
| 6 #define COMPONENTS_UPDATE_CLIENT_UPDATE_CHECKER_H_ | 6 #define COMPONENTS_UPDATE_CLIENT_UPDATE_CHECKER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "components/update_client/crx_update_item.h" | 15 #include "components/update_client/crx_update_item.h" |
| 16 #include "components/update_client/update_response.h" | 16 #include "components/update_client/update_response.h" |
| 17 #include "url/gurl.h" | 17 #include "url/gurl.h" |
| 18 | 18 |
| 19 class GURL; | |
| 20 | |
| 21 namespace update_client { | 19 namespace update_client { |
| 22 | 20 |
| 23 class PersistedData; | 21 class PersistedData; |
| 24 class Configurator; | 22 class Configurator; |
| 25 | 23 |
| 26 class UpdateChecker { | 24 class UpdateChecker { |
| 27 public: | 25 public: |
| 28 using UpdateCheckCallback = | 26 using UpdateCheckCallback = |
| 29 base::Callback<void(int error, | 27 base::Callback<void(int error, |
| 30 const UpdateResponse::Results& results, | 28 const UpdateResponse::Results& results, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 52 protected: | 50 protected: |
| 53 UpdateChecker() {} | 51 UpdateChecker() {} |
| 54 | 52 |
| 55 private: | 53 private: |
| 56 DISALLOW_COPY_AND_ASSIGN(UpdateChecker); | 54 DISALLOW_COPY_AND_ASSIGN(UpdateChecker); |
| 57 }; | 55 }; |
| 58 | 56 |
| 59 } // namespace update_client | 57 } // namespace update_client |
| 60 | 58 |
| 61 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CHECKER_H_ | 59 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CHECKER_H_ |
| OLD | NEW |