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

Side by Side Diff: chrome/browser/policy/managed_prefs_banner_base.h

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_POLICY_MANAGED_PREFS_BANNER_BASE_H_ 5 #ifndef CHROME_BROWSER_POLICY_MANAGED_PREFS_BANNER_BASE_H_
6 #define CHROME_BROWSER_POLICY_MANAGED_PREFS_BANNER_BASE_H_ 6 #define CHROME_BROWSER_POLICY_MANAGED_PREFS_BANNER_BASE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // override this in order to show/hide the banner. 53 // override this in order to show/hide the banner.
54 virtual void OnUpdateVisibility() { } 54 virtual void OnUpdateVisibility() { }
55 55
56 private: 56 private:
57 // Initialization helper, called from the constructors. 57 // Initialization helper, called from the constructors.
58 void Init(PrefService* local_state, 58 void Init(PrefService* local_state,
59 PrefService* user_prefs, 59 PrefService* user_prefs,
60 OptionsPage page); 60 OptionsPage page);
61 61
62 // |NotificationObserver| implementation. 62 // |NotificationObserver| implementation.
63 virtual void Observe(NotificationType type, 63 virtual void Observe(int type,
64 const NotificationSource& source, 64 const NotificationSource& source,
65 const NotificationDetails& details); 65 const NotificationDetails& details);
66 66
67 scoped_ptr<PrefSetObserver> local_state_set_; 67 scoped_ptr<PrefSetObserver> local_state_set_;
68 scoped_ptr<PrefSetObserver> user_pref_set_; 68 scoped_ptr<PrefSetObserver> user_pref_set_;
69 69
70 DISALLOW_COPY_AND_ASSIGN(ManagedPrefsBannerBase); 70 DISALLOW_COPY_AND_ASSIGN(ManagedPrefsBannerBase);
71 }; 71 };
72 72
73 } // namespace policy 73 } // namespace policy
74 74
75 #endif // CHROME_BROWSER_POLICY_MANAGED_PREFS_BANNER_BASE_H_ 75 #endif // CHROME_BROWSER_POLICY_MANAGED_PREFS_BANNER_BASE_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/cloud_policy_subsystem.cc ('k') | chrome/browser/policy/managed_prefs_banner_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698