| Index: chrome/browser/policy/user_policy_token_cache.h
|
| diff --git a/chrome/browser/policy/user_policy_token_cache.h b/chrome/browser/policy/user_policy_token_cache.h
|
| index d15415a6653c44ff884b42e4f03241becb3f76b3..f71186a928deb6ea042cc4ce4bcf88e5bb894f32 100644
|
| --- a/chrome/browser/policy/user_policy_token_cache.h
|
| +++ b/chrome/browser/policy/user_policy_token_cache.h
|
| @@ -11,7 +11,6 @@
|
| #include "base/file_path.h"
|
| #include "base/memory/ref_counted.h"
|
| #include "base/memory/weak_ptr.h"
|
| -#include "chrome/browser/policy/cloud_policy_data_store.h"
|
|
|
| namespace policy {
|
|
|
| @@ -34,9 +33,6 @@ class UserPolicyTokenLoader
|
| // reported through the delegate.
|
| void Load();
|
|
|
| - // Stores credentials asynchronously to disk.
|
| - void Store(const std::string& token, const std::string& device_id);
|
| -
|
| private:
|
| friend class base::RefCountedThreadSafe<UserPolicyTokenLoader>;
|
| ~UserPolicyTokenLoader();
|
| @@ -44,8 +40,6 @@ class UserPolicyTokenLoader
|
| void LoadOnFileThread();
|
| void NotifyOnUIThread(const std::string& token,
|
| const std::string& device_id);
|
| - void StoreOnFileThread(const std::string& token,
|
| - const std::string& device_id);
|
|
|
| const base::WeakPtr<Delegate> delegate_;
|
| const FilePath cache_file_;
|
| @@ -53,38 +47,6 @@ class UserPolicyTokenLoader
|
| DISALLOW_COPY_AND_ASSIGN(UserPolicyTokenLoader);
|
| };
|
|
|
| -// Responsible for managing the on-disk token cache.
|
| -class UserPolicyTokenCache : public CloudPolicyDataStore::Observer,
|
| - public UserPolicyTokenLoader::Delegate {
|
| - public:
|
| - UserPolicyTokenCache(CloudPolicyDataStore* data_store,
|
| - const FilePath& cache_file);
|
| - virtual ~UserPolicyTokenCache();
|
| -
|
| - // Starts loading the disk cache and installs the token in the data store.
|
| - void Load();
|
| -
|
| - // UserPolicyTokenLoader::Delegate implementation:
|
| - virtual void OnTokenLoaded(const std::string& token,
|
| - const std::string& device_id) OVERRIDE;
|
| -
|
| - // CloudPolicyDataStore::Observer implementation:
|
| - virtual void OnDeviceTokenChanged() OVERRIDE;
|
| - virtual void OnCredentialsChanged() OVERRIDE;
|
| -
|
| - private:
|
| - base::WeakPtrFactory<UserPolicyTokenLoader::Delegate> weak_ptr_factory_;
|
| -
|
| - CloudPolicyDataStore* data_store_;
|
| - scoped_refptr<UserPolicyTokenLoader> loader_;
|
| -
|
| - // The current token in the cache. Upon new token notifications, we compare
|
| - // against this in order to avoid writing the file when there's no change.
|
| - std::string token_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(UserPolicyTokenCache);
|
| -};
|
| -
|
| } // namespace policy
|
|
|
| #endif // CHROME_BROWSER_POLICY_USER_POLICY_TOKEN_CACHE_H_
|
|
|