Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / component_updater / pnacl / pnacl_profile_observer.h
blob2b377b67fd4eec2b65db98e66d756b4300e54fdf
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.
5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_PROFILE_OBSERVER_H_
6 #define CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_PROFILE_OBSERVER_H_
8 #include "base/compiler_specific.h"
9 #include "content/public/browser/notification_observer.h"
10 #include "content/public/browser/notification_registrar.h"
12 namespace component_updater {
14 class PnaclComponentInstaller;
16 // Monitors profile switching for ChromeOS to check the per-user
17 // version of PNaCl.
18 class PnaclProfileObserver : public content::NotificationObserver {
19 public:
20 explicit PnaclProfileObserver(PnaclComponentInstaller* installer);
21 virtual ~PnaclProfileObserver();
23 virtual void Observe(
24 int type,
25 const content::NotificationSource& source,
26 const content::NotificationDetails& details) OVERRIDE;
28 private:
29 content::NotificationRegistrar registrar_;
30 PnaclComponentInstaller* pnacl_installer_;
31 DISALLOW_COPY_AND_ASSIGN(PnaclProfileObserver);
34 } // namespace component_updater
36 #endif // CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_PROFILE_OBSERVER_H_