OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_DEVICE_TOKEN_FETCHER_H_ | 5 #ifndef CHROME_BROWSER_POLICY_DEVICE_TOKEN_FETCHER_H_ |
6 #define CHROME_BROWSER_POLICY_DEVICE_TOKEN_FETCHER_H_ | 6 #define CHROME_BROWSER_POLICY_DEVICE_TOKEN_FETCHER_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/file_path.h" | 12 #include "base/file_path.h" |
13 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
14 #include "base/ref_counted.h" | 14 #include "base/ref_counted.h" |
15 #include "base/waitable_event.h" | 15 #include "base/synchronization/waitable_event.h" |
16 #include "chrome/browser/policy/device_management_backend.h" | 16 #include "chrome/browser/policy/device_management_backend.h" |
17 #include "chrome/common/notification_observer.h" | 17 #include "chrome/common/notification_observer.h" |
18 #include "chrome/common/notification_registrar.h" | 18 #include "chrome/common/notification_registrar.h" |
19 | 19 |
20 class Profile; | 20 class Profile; |
21 | 21 |
22 namespace policy { | 22 namespace policy { |
23 | 23 |
24 namespace em = enterprise_management; | 24 namespace em = enterprise_management; |
25 | 25 |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 // or it has been determined that there was an error during fetching. | 195 // or it has been determined that there was an error during fetching. |
196 base::WaitableEvent device_token_load_complete_event_; | 196 base::WaitableEvent device_token_load_complete_event_; |
197 | 197 |
198 // Registers the fetcher for notification of successful Gaia logins. | 198 // Registers the fetcher for notification of successful Gaia logins. |
199 NotificationRegistrar registrar_; | 199 NotificationRegistrar registrar_; |
200 }; | 200 }; |
201 | 201 |
202 } // namespace policy | 202 } // namespace policy |
203 | 203 |
204 #endif // CHROME_BROWSER_POLICY_DEVICE_TOKEN_FETCHER_H_ | 204 #endif // CHROME_BROWSER_POLICY_DEVICE_TOKEN_FETCHER_H_ |
OLD | NEW |