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

Side by Side Diff: chrome/browser/component_updater/component_updater_service_observer.h

Issue 18516010: Implemented completion pings for component updates. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_SERVICE_OBSERVER_H_
6 #define CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_SERVICE_OBSERVER_H_
7
8 #include "base/basictypes.h"
9 #include "chrome/browser/component_updater/component_updater_service.h"
10
11 struct CrxUpdateItem;
12
13 namespace component_updater {
14
15 enum Events {
16 // The update has completed, with success or with an error.
17 kEventUpdateComplete,
18 };
19
20 // Provides an event sink for the ComponentUpdaterService.
21 class ComponentUpdaterServiceObserver {
22 public:
23 explicit ComponentUpdaterServiceObserver(
24 ComponentUpdateService::Configurator* config);
25 ~ComponentUpdaterServiceObserver();
26
27 void OnEvent(Events event, const CrxUpdateItem* item);
28
29 private:
30 ComponentUpdateService::Configurator* config_;
31
32 DISALLOW_COPY_AND_ASSIGN(ComponentUpdaterServiceObserver);
33 };
34
35 } // namespace component_updater
36
37 #endif // CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_SERVICE_OBSERVER_H _
38
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698