| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_CLIENT_INTERNAL_H_ | 5 #ifndef COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_INTERNAL_H_ |
| 6 #define COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_INTERNAL_H_ | 6 #define COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_INTERNAL_H_ |
| 7 | 7 |
| 8 #include "components/update_client/update_client.h" | 8 #include "components/update_client/update_client.h" |
| 9 | 9 |
| 10 #include <queue> | 10 #include <queue> |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 // Contains the tasks that are queued up. | 68 // Contains the tasks that are queued up. |
| 69 std::queue<Task*> task_queue_; | 69 std::queue<Task*> task_queue_; |
| 70 | 70 |
| 71 // Contains all tasks in progress. | 71 // Contains all tasks in progress. |
| 72 std::set<Task*> tasks_; | 72 std::set<Task*> tasks_; |
| 73 | 73 |
| 74 // TODO(sorin): try to make the ping manager an observer of the service. | 74 // TODO(sorin): try to make the ping manager an observer of the service. |
| 75 scoped_ptr<PingManager> ping_manager_; | 75 scoped_ptr<PingManager> ping_manager_; |
| 76 scoped_ptr<UpdateEngine> update_engine_; | 76 scoped_ptr<UpdateEngine> update_engine_; |
| 77 | 77 |
| 78 ObserverList<Observer> observer_list_; | 78 base::ObserverList<Observer> observer_list_; |
| 79 | 79 |
| 80 // Used to post responses back to the main thread. | 80 // Used to post responses back to the main thread. |
| 81 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; | 81 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; |
| 82 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; | 82 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; |
| 83 | 83 |
| 84 DISALLOW_COPY_AND_ASSIGN(UpdateClientImpl); | 84 DISALLOW_COPY_AND_ASSIGN(UpdateClientImpl); |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 } // namespace update_client | 87 } // namespace update_client |
| 88 | 88 |
| 89 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_INTERNAL_H_ | 89 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_INTERNAL_H_ |
| OLD | NEW |