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

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

Issue 1578083002: Implements an UpdateClient::SendUninstallPing API for the (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 "components/update_client/update_client.h" 8 #include "components/update_client/update_client.h"
9 9
10 #include <queue> 10 #include <queue>
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 void Install(const std::string& id, 46 void Install(const std::string& id,
47 const CrxDataCallback& crx_data_callback, 47 const CrxDataCallback& crx_data_callback,
48 const CompletionCallback& completion_callback) override; 48 const CompletionCallback& completion_callback) override;
49 void Update(const std::vector<std::string>& ids, 49 void Update(const std::vector<std::string>& ids,
50 const CrxDataCallback& crx_data_callback, 50 const CrxDataCallback& crx_data_callback,
51 const CompletionCallback& completion_callback) override; 51 const CompletionCallback& completion_callback) override;
52 bool GetCrxUpdateState(const std::string& id, 52 bool GetCrxUpdateState(const std::string& id,
53 CrxUpdateItem* update_item) const override; 53 CrxUpdateItem* update_item) const override;
54 bool IsUpdating(const std::string& id) const override; 54 bool IsUpdating(const std::string& id) const override;
55 void Stop() override; 55 void Stop() override;
56 void SendUninstallPing(const std::string& id,
57 const Version& version,
58 int reason) override;
56 59
57 private: 60 private:
58 ~UpdateClientImpl() override; 61 ~UpdateClientImpl() override;
59 62
60 void RunTask(scoped_ptr<Task> task); 63 void RunTask(scoped_ptr<Task> task);
61 void OnTaskComplete(const CompletionCallback& completion_callback, 64 void OnTaskComplete(const CompletionCallback& completion_callback,
62 Task* task, 65 Task* task,
63 int error); 66 int error);
64 67
65 void NotifyObservers(Observer::Events event, const std::string& id); 68 void NotifyObservers(Observer::Events event, const std::string& id);
(...skipping 23 matching lines...) Expand all
89 scoped_ptr<UpdateEngine> update_engine_; 92 scoped_ptr<UpdateEngine> update_engine_;
90 93
91 base::ObserverList<Observer> observer_list_; 94 base::ObserverList<Observer> observer_list_;
92 95
93 DISALLOW_COPY_AND_ASSIGN(UpdateClientImpl); 96 DISALLOW_COPY_AND_ASSIGN(UpdateClientImpl);
94 }; 97 };
95 98
96 } // namespace update_client 99 } // namespace update_client
97 100
98 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_INTERNAL_H_ 101 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CLIENT_INTERNAL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698