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

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

Issue 2831473002: Add a callback parameter to UpdateClient::SendUninstallPing. (Closed)
Patch Set: Created 3 years, 8 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
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 <memory> 8 #include <memory>
9 #include <queue> 9 #include <queue>
10 #include <set> 10 #include <set>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 const Callback& callback) override; 42 const Callback& callback) override;
43 void Update(const std::vector<std::string>& ids, 43 void Update(const std::vector<std::string>& ids,
44 const CrxDataCallback& crx_data_callback, 44 const CrxDataCallback& crx_data_callback,
45 const Callback& callback) override; 45 const Callback& callback) override;
46 bool GetCrxUpdateState(const std::string& id, 46 bool GetCrxUpdateState(const std::string& id,
47 CrxUpdateItem* update_item) const override; 47 CrxUpdateItem* update_item) const override;
48 bool IsUpdating(const std::string& id) const override; 48 bool IsUpdating(const std::string& id) const override;
49 void Stop() override; 49 void Stop() override;
50 void SendUninstallPing(const std::string& id, 50 void SendUninstallPing(const std::string& id,
51 const base::Version& version, 51 const base::Version& version,
52 int reason) override; 52 int reason,
53 const Callback& callback) override;
53 54
54 private: 55 private:
55 ~UpdateClientImpl() override; 56 ~UpdateClientImpl() override;
56 57
57 void RunTask(std::unique_ptr<Task> task); 58 void RunTask(std::unique_ptr<Task> task);
58 void OnTaskComplete(const Callback& callback, Task* task, Error error); 59 void OnTaskComplete(const Callback& callback, Task* task, Error error);
59 60
60 void NotifyObservers(Observer::Events event, const std::string& id); 61 void NotifyObservers(Observer::Events event, const std::string& id);
61 62
62 base::ThreadChecker thread_checker_; 63 base::ThreadChecker thread_checker_;
(...skipping 21 matching lines...) Expand all
84 std::unique_ptr<UpdateEngine> update_engine_; 85 std::unique_ptr<UpdateEngine> update_engine_;
85 86
86 base::ObserverList<Observer> observer_list_; 87 base::ObserverList<Observer> observer_list_;
87 88
88 DISALLOW_COPY_AND_ASSIGN(UpdateClientImpl); 89 DISALLOW_COPY_AND_ASSIGN(UpdateClientImpl);
89 }; 90 };
90 91
91 } // namespace update_client 92 } // namespace update_client
92 93
93 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_INTERNAL_H_ 94 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_INTERNAL_H_
OLDNEW
« no previous file with comments | « components/update_client/update_client.cc ('k') | components/update_client/update_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698