Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / components / signin / core / browser / signin_manager_base.h
index dc7b672..a7a0f9b 100644 (file)
@@ -48,11 +48,13 @@ class SigninManagerBase : public KeyedService {
     virtual void GoogleSigninFailed(const GoogleServiceAuthError& error) {}
 
     // Called when a user signs into Google services such as sync.
-    virtual void GoogleSigninSucceeded(const std::string& username,
+    virtual void GoogleSigninSucceeded(const std::string& account_id,
+                                       const std::string& username,
                                        const std::string& password) {}
 
     // Called when the currently signed-in user for a user has been signed out.
-    virtual void GoogleSignedOut(const std::string& username) {}
+    virtual void GoogleSignedOut(const std::string& account_id,
+                                 const std::string& username) {}
 
    protected:
     virtual ~Observer() {}
@@ -100,6 +102,9 @@ class SigninManagerBase : public KeyedService {
   // (by platform / depending on StartBehavior). Bug 88109.
   void SetAuthenticatedUsername(const std::string& username);
 
+  // Returns true if there is an authenticated user.
+  bool IsAuthenticated() const;
+
   // Returns true if there's a signin in progress.
   virtual bool AuthInProgress() const;