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

Side by Side Diff: components/component_updater/component_updater_ping_manager.h

Issue 449643002: Componentize component_updater: Move over a bunch of files to the component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove extensions from component_updater.gypi dependencies, due to introducing cycle Created 6 years, 4 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_PING_MANAGER_H_ 5 #ifndef COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_PING_MANAGER_H_
6 #define CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_PING_MANAGER_H_ 6 #define COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_PING_MANAGER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 namespace component_updater { 10 namespace component_updater {
11 11
12 class Configurator; 12 class Configurator;
13 struct CrxUpdateItem; 13 struct CrxUpdateItem;
14 14
15 // Provides an event sink for completion events from ComponentUpdateService 15 // Provides an event sink for completion events from ComponentUpdateService
16 // and sends fire-and-forget pings when handling these events. 16 // and sends fire-and-forget pings when handling these events.
17 class PingManager { 17 class PingManager {
18 public: 18 public:
19 explicit PingManager(const Configurator& config); 19 explicit PingManager(const Configurator& config);
20 ~PingManager(); 20 ~PingManager();
21 21
22 void OnUpdateComplete(const CrxUpdateItem* item); 22 void OnUpdateComplete(const CrxUpdateItem* item);
23 23
24 private: 24 private:
25 const Configurator& config_; 25 const Configurator& config_;
26 26
27 DISALLOW_COPY_AND_ASSIGN(PingManager); 27 DISALLOW_COPY_AND_ASSIGN(PingManager);
28 }; 28 };
29 29
30 } // namespace component_updater 30 } // namespace component_updater
31 31
32 #endif // CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_PING_MANAGER_H_ 32 #endif // COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_PING_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698