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

Side by Side Diff: chrome/browser/chromeos/login/ownership_service.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_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>
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // This method can be run either on FILE or UI threads. If |blocking| flag 96 // This method can be run either on FILE or UI threads. If |blocking| flag
97 // is specified then it is guaranteed to return either OWNERSHIP_NONE or 97 // is specified then it is guaranteed to return either OWNERSHIP_NONE or
98 // OWNERSHIP_TAKEN (and not OWNERSHIP_UNKNOWN), however in this case it may 98 // OWNERSHIP_TAKEN (and not OWNERSHIP_UNKNOWN), however in this case it may
99 // occasionally block doing i/o. 99 // occasionally block doing i/o.
100 virtual Status GetStatus(bool blocking); 100 virtual Status GetStatus(bool blocking);
101 101
102 protected: 102 protected:
103 OwnershipService(); 103 OwnershipService();
104 104
105 // NotificationObserver implementation. 105 // NotificationObserver implementation.
106 virtual void Observe(NotificationType type, 106 virtual void Observe(int type,
107 const NotificationSource& source, 107 const NotificationSource& source,
108 const NotificationDetails& details); 108 const NotificationDetails& details);
109 109
110 private: 110 private:
111 friend struct base::DefaultLazyInstanceTraits<OwnershipService>; 111 friend struct base::DefaultLazyInstanceTraits<OwnershipService>;
112 friend class OwnershipServiceTest; 112 friend class OwnershipServiceTest;
113 113
114 // Task posted on FILE thread on startup to prefetch ownership status. 114 // Task posted on FILE thread on startup to prefetch ownership status.
115 void FetchStatus(); 115 void FetchStatus();
116 116
(...skipping 22 matching lines...) Expand all
139 scoped_refptr<OwnerKeyUtils> utils_; 139 scoped_refptr<OwnerKeyUtils> utils_;
140 scoped_ptr<em::PolicyData> policy_; 140 scoped_ptr<em::PolicyData> policy_;
141 NotificationRegistrar notification_registrar_; 141 NotificationRegistrar notification_registrar_;
142 volatile Status ownership_status_; 142 volatile Status ownership_status_;
143 base::Lock ownership_status_lock_; 143 base::Lock ownership_status_lock_;
144 }; 144 };
145 145
146 } // namespace chromeos 146 } // namespace chromeos
147 147
148 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OWNERSHIP_SERVICE_H_ 148 #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