| Index: chrome/browser/component_updater/pnacl/pnacl_updater_observer.h
|
| diff --git a/chrome/browser/component_updater/pnacl/pnacl_updater_observer.h b/chrome/browser/component_updater/pnacl/pnacl_updater_observer.h
|
| index 48a6f0d9c81cbceb527da5478be4d0220ec1638f..0a7225cba2d9a40fae3f51f24b4c1aa284031722 100644
|
| --- a/chrome/browser/component_updater/pnacl/pnacl_updater_observer.h
|
| +++ b/chrome/browser/component_updater/pnacl/pnacl_updater_observer.h
|
| @@ -18,12 +18,18 @@ class PnaclUpdaterObserver : public content::NotificationObserver {
|
| explicit PnaclUpdaterObserver(PnaclComponentInstaller* installer);
|
| virtual ~PnaclUpdaterObserver();
|
|
|
| - virtual void Observe(
|
| - int type,
|
| - const content::NotificationSource& source,
|
| - const content::NotificationDetails& details) OVERRIDE;
|
| + // Make sure that this has registered to observe relevant notifications.
|
| + void EnsureObserving();
|
| +
|
| + // Unregister for observing notifcations.
|
| + void StopObserving();
|
| +
|
| + virtual void Observe(int type,
|
| + const content::NotificationSource& source,
|
| + const content::NotificationDetails& details) OVERRIDE;
|
|
|
| private:
|
| + bool is_observing_;
|
| content::NotificationRegistrar registrar_;
|
| PnaclComponentInstaller* pnacl_installer_;
|
| DISALLOW_COPY_AND_ASSIGN(PnaclUpdaterObserver);
|
|
|