Chromium Code Reviews| Index: chrome/browser/policy/device_token_fetcher.h |
| diff --git a/chrome/browser/policy/device_token_fetcher.h b/chrome/browser/policy/device_token_fetcher.h |
| index 066e300ce22620e7c38c5488f5a2254c5169735b..687056009025d1d534a254af55ce04b36b903abf 100644 |
| --- a/chrome/browser/policy/device_token_fetcher.h |
| +++ b/chrome/browser/policy/device_token_fetcher.h |
| @@ -15,6 +15,8 @@ |
| #include "chrome/common/notification_observer.h" |
| #include "chrome/common/notification_registrar.h" |
| +class TokenService; |
| + |
| namespace policy { |
| namespace em = enterprise_management; |
| @@ -35,6 +37,7 @@ class DeviceTokenFetcher |
| // the device token once it's retrieved from the server. Should only be called |
| // by unit tests. |
| DeviceTokenFetcher(DeviceManagementBackend* backend, |
| + TokenService* token_service, |
|
markusheintz_
2010/11/19 11:00:46
Please add an explaination for this parameter to t
Mattias Nissler (ping if slow)
2010/11/19 11:40:02
Done.
|
| const FilePath& token_path); |
| virtual ~DeviceTokenFetcher() {} |
| @@ -52,6 +55,10 @@ class DeviceTokenFetcher |
| // will need the token in the future. Must be called on the UI thread. |
| void StartFetching(); |
| + // Instructs the fetcher to shut down, before the backend and token service |
| + // references become stale. |
| + void Shutdown(); |
| + |
| // Returns true if there is a pending token request to the device management |
| // server. |
| bool IsTokenPending(); |
| @@ -121,6 +128,7 @@ class DeviceTokenFetcher |
| FilePath token_path_; |
| DeviceManagementBackend* backend_; // weak |
| + TokenService* token_service_; |
| FetcherState state_; |
| std::string device_token_; |
| std::string device_id_; |