| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_COMPONENT_H_ | 5 #ifndef COMPONENTS_UPDATE_CLIENT_COMPONENT_H_ |
| 6 #define COMPONENTS_UPDATE_CLIENT_COMPONENT_H_ | 6 #define COMPONENTS_UPDATE_CLIENT_COMPONENT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <utility> | 11 #include <utility> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/callback.h" | 14 #include "base/callback.h" |
| 15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
| 16 #include "base/gtest_prod_util.h" | 16 #include "base/gtest_prod_util.h" |
| 17 #include "base/macros.h" | 17 #include "base/macros.h" |
| 18 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
| 19 #include "base/threading/thread_checker.h" | 19 #include "base/threading/thread_checker.h" |
| 20 #include "base/time/time.h" | 20 #include "base/time/time.h" |
| 21 #include "base/version.h" | 21 #include "base/version.h" |
| 22 #include "components/update_client/component_unpacker.h" | |
| 23 #include "components/update_client/crx_downloader.h" | 22 #include "components/update_client/crx_downloader.h" |
| 24 #include "components/update_client/update_client.h" | 23 #include "components/update_client/update_client.h" |
| 25 #include "components/update_client/update_response.h" | 24 #include "components/update_client/update_response.h" |
| 26 #include "url/gurl.h" | 25 #include "url/gurl.h" |
| 27 | 26 |
| 28 namespace base { | 27 namespace base { |
| 29 class SingleThreadTaskRunner; | 28 class SingleThreadTaskRunner; |
| 30 } | 29 } |
| 31 | 30 |
| 32 namespace update_client { | 31 namespace update_client { |
| 33 | 32 |
| 34 struct CrxUpdateItem; | 33 struct CrxUpdateItem; |
| 34 class ComponentUnpacker; |
| 35 struct UpdateContext; | 35 struct UpdateContext; |
| 36 | 36 |
| 37 // Describes a CRX component managed by the UpdateEngine. Each |Component| is | 37 // Describes a CRX component managed by the UpdateEngine. Each |Component| is |
| 38 // associated with an UpdateContext. | 38 // associated with an UpdateContext. |
| 39 class Component { | 39 class Component { |
| 40 public: | 40 public: |
| 41 using Events = UpdateClient::Observer::Events; | 41 using Events = UpdateClient::Observer::Events; |
| 42 | 42 |
| 43 using CallbackHandleComplete = base::Callback<void()>; | 43 using CallbackHandleComplete = base::Callback<void()>; |
| 44 | 44 |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 base::Closure update_check_complete_; | 432 base::Closure update_check_complete_; |
| 433 | 433 |
| 434 DISALLOW_COPY_AND_ASSIGN(Component); | 434 DISALLOW_COPY_AND_ASSIGN(Component); |
| 435 }; | 435 }; |
| 436 | 436 |
| 437 using IdToComponentPtrMap = std::map<std::string, std::unique_ptr<Component>>; | 437 using IdToComponentPtrMap = std::map<std::string, std::unique_ptr<Component>>; |
| 438 | 438 |
| 439 } // namespace update_client | 439 } // namespace update_client |
| 440 | 440 |
| 441 #endif // COMPONENTS_UPDATE_CLIENT_COMPONENT_H_ | 441 #endif // COMPONENTS_UPDATE_CLIENT_COMPONENT_H_ |
| OLD | NEW |