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

Side by Side Diff: chrome/browser/component_updater/pnacl/pnacl_profile_observer.h

Issue 15908002: Differential updates for components. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Sync to LKGR revision 207804. Created 7 years, 6 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 (c) 2013 The Chromium Authors. All rights reserved. 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 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_PNACL_PNACL_PROFILE_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_PROFILE_OBSERVER_H_
6 #define CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_PROFILE_OBSERVER_H_ 6 #define CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_PROFILE_OBSERVER_H_
7 7
8 #include "base/compiler_specific.h"
8 #include "content/public/browser/notification_observer.h" 9 #include "content/public/browser/notification_observer.h"
9 #include "content/public/browser/notification_registrar.h" 10 #include "content/public/browser/notification_registrar.h"
10 11
11 class PnaclComponentInstaller; 12 class PnaclComponentInstaller;
12 13
13 // Monitors profile switching for ChromeOS to check the per-user 14 // Monitors profile switching for ChromeOS to check the per-user
14 // version of PNaCl. 15 // version of PNaCl.
15 class PnaclProfileObserver : public content::NotificationObserver { 16 class PnaclProfileObserver : public content::NotificationObserver {
16 public: 17 public:
17 explicit PnaclProfileObserver(PnaclComponentInstaller* installer); 18 explicit PnaclProfileObserver(PnaclComponentInstaller* installer);
18 virtual ~PnaclProfileObserver(); 19 virtual ~PnaclProfileObserver();
19 20
20 virtual void Observe( 21 virtual void Observe(
21 int type, 22 int type,
22 const content::NotificationSource& source, 23 const content::NotificationSource& source,
23 const content::NotificationDetails& details) OVERRIDE; 24 const content::NotificationDetails& details) OVERRIDE;
24 25
25 private: 26 private:
26 content::NotificationRegistrar registrar_; 27 content::NotificationRegistrar registrar_;
27 PnaclComponentInstaller* pnacl_installer_; 28 PnaclComponentInstaller* pnacl_installer_;
28 DISALLOW_COPY_AND_ASSIGN(PnaclProfileObserver); 29 DISALLOW_COPY_AND_ASSIGN(PnaclProfileObserver);
29 }; 30 };
30 31
31 #endif // CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_PROFILE_OBSERVER_H_ 32 #endif // CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_PROFILE_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698