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

Side by Side Diff: chrome/browser/chromeos/attestation/attestation_policy_observer.h

Issue 12556004: Created AttestationPolicyObserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
(Empty)
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.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_ATTESTATION_ATTESTATION_POLICY_OBSERVER_H_
6 #define CHROME_BROWSER_CHROMEOS_ATTESTATION_ATTESTATION_POLICY_OBSERVER_H_
7
8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/chromeos/settings/cros_settings.h"
11 #include "chromeos/attestation/attestation_flow.h"
12 #include "content/public/browser/notification_observer.h"
13
14 namespace policy {
15 class CloudPolicyManager;
16 }
17
18 namespace chromeos {
19 namespace attestation {
20
21 // A class which observes policy changes and triggers device attestation work if
22 // necessary.
23 class AttestationPolicyObserver : public content::NotificationObserver {
24 public:
25 // This class does not take ownership of |settings| or |policy_manager|. It
26 // does take ownership of |attestation_flow|.
27 AttestationPolicyObserver(
28 CrosSettings* settings,
29 policy::CloudPolicyManager* policy_manager,
30 scoped_ptr<AttestationFlow> attestation_flow);
31 virtual ~AttestationPolicyObserver();
32
33 // content::NotificationObserver:
34 virtual void Observe(int type,
35 const content::NotificationSource& source,
36 const content::NotificationDetails& details);
37
38 private:
39 CrosSettings* settings_;
40 policy::CloudPolicyManager* policy_manager_;
41 scoped_ptr<AttestationFlow> attestation_flow_;
42
43 DISALLOW_COPY_AND_ASSIGN(AttestationPolicyObserver);
44 };
45
46 } // namespace attestation
47 } // namespace chromeos
48
49 #endif // CHROME_BROWSER_CHROMEOS_ATTESTATION_ATTESTATION_POLICY_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698