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

Side by Side Diff: chrome/browser/chromeos/login/ownership_service.h

Issue 8342048: Make NotificationService an interface in the content namespace, and switch callers to use it. Mov... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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_CHROMEOS_LOGIN_OWNERSHIP_SERVICE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_OWNERSHIP_SERVICE_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OWNERSHIP_SERVICE_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OWNERSHIP_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/synchronization/lock.h" 13 #include "base/synchronization/lock.h"
14 #include "chrome/browser/chromeos/login/owner_key_utils.h" 14 #include "chrome/browser/chromeos/login/owner_key_utils.h"
15 #include "chrome/browser/chromeos/login/owner_manager.h" 15 #include "chrome/browser/chromeos/login/owner_manager.h"
16 #include "chrome/browser/policy/proto/device_management_backend.pb.h" 16 #include "chrome/browser/policy/proto/device_management_backend.pb.h"
17 #include "content/browser/browser_thread.h" 17 #include "content/browser/browser_thread.h"
18 #include "content/public/browser/notification_observer.h" 18 #include "content/public/browser/notification_observer.h"
19 #include "content/public/browser/notification_registrar.h" 19 #include "content/public/browser/notification_registrar.h"
20 #include "content/common/notification_service.h"
21 20
22 namespace base { 21 namespace base {
23 template <typename T> struct DefaultLazyInstanceTraits; 22 template <typename T> struct DefaultLazyInstanceTraits;
24 } 23 }
25 24
26 namespace em = enterprise_management; 25 namespace em = enterprise_management;
27 namespace chromeos { 26 namespace chromeos {
28 27
29 class OwnershipService : public content::NotificationObserver { 28 class OwnershipService : public content::NotificationObserver {
30 public: 29 public:
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 scoped_refptr<OwnerKeyUtils> utils_; 138 scoped_refptr<OwnerKeyUtils> utils_;
140 scoped_ptr<em::PolicyData> policy_; 139 scoped_ptr<em::PolicyData> policy_;
141 content::NotificationRegistrar notification_registrar_; 140 content::NotificationRegistrar notification_registrar_;
142 volatile Status ownership_status_; 141 volatile Status ownership_status_;
143 base::Lock ownership_status_lock_; 142 base::Lock ownership_status_lock_;
144 }; 143 };
145 144
146 } // namespace chromeos 145 } // namespace chromeos
147 146
148 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OWNERSHIP_SERVICE_H_ 147 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OWNERSHIP_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/owner_manager_unittest.cc ('k') | chrome/browser/chromeos/login/ownership_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698