Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: components/update_client/update_client_internal.h

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/undo/undo_manager.h ('k') | components/user_manager/user_manager_base.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/undo/undo_manager.h ('k') | components/user_manager/user_manager_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698