Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / signin / mutable_profile_oauth2_token_service.h
index 9deb879..78e6605 100644 (file)
@@ -5,6 +5,7 @@
 #ifndef CHROME_BROWSER_SIGNIN_MUTABLE_PROFILE_OAUTH2_TOKEN_SERVICE_H_
 #define CHROME_BROWSER_SIGNIN_MUTABLE_PROFILE_OAUTH2_TOKEN_SERVICE_H_
 
+#include "base/memory/scoped_vector.h"
 #include "chrome/browser/signin/profile_oauth2_token_service.h"
 #include "components/webdata/common/web_data_service_base.h"
 #include "components/webdata/common/web_data_service_consumer.h"
@@ -60,7 +61,7 @@ class MutableProfileOAuth2TokenService : public ProfileOAuth2TokenService,
   // to information about the account.
   typedef std::map<std::string, linked_ptr<AccountInfo> > AccountInfoMap;
 
-  friend class ProfileOAuth2TokenServiceFactory;
+  friend class ProfileOAuth2TokenServiceWrapperImpl;
 
   MutableProfileOAuth2TokenService();
   virtual ~MutableProfileOAuth2TokenService();
@@ -72,6 +73,8 @@ class MutableProfileOAuth2TokenService : public ProfileOAuth2TokenService,
   AccountInfoMap& refresh_tokens() { return refresh_tokens_; }
 
  private:
+  class RevokeServerRefreshToken;
+
   FRIEND_TEST_ALL_PREFIXES(MutableProfileOAuth2TokenServiceTest,
                            TokenServiceUpdateClearsCache);
   FRIEND_TEST_ALL_PREFIXES(MutableProfileOAuth2TokenServiceTest,
@@ -119,6 +122,8 @@ class MutableProfileOAuth2TokenService : public ProfileOAuth2TokenService,
   // credentials.  This member is empty otherwise.
   std::string loading_primary_account_id_;
 
+  ScopedVector<RevokeServerRefreshToken> server_revokes_;
+
   DISALLOW_COPY_AND_ASSIGN(MutableProfileOAuth2TokenService);
 };