| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SIGNIN_CHROME_SIGNIN_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_ |
| 6 #define CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_ | 6 #define CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "components/signin/core/browser/signin_client.h" | 10 #include "components/signin/core/browser/signin_client.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 // Returns a string describing the chrome version environment. Version format: | 53 // Returns a string describing the chrome version environment. Version format: |
| 54 // <Build Info> <OS> <Version number> (<Last change>)<channel or "-devel"> | 54 // <Build Info> <OS> <Version number> (<Last change>)<channel or "-devel"> |
| 55 // If version information is unavailable, returns "invalid." | 55 // If version information is unavailable, returns "invalid." |
| 56 std::string GetProductVersion() override; | 56 std::string GetProductVersion() override; |
| 57 scoped_ptr<CookieChangedSubscription> AddCookieChangedCallback( | 57 scoped_ptr<CookieChangedSubscription> AddCookieChangedCallback( |
| 58 const GURL& url, | 58 const GURL& url, |
| 59 const std::string& name, | 59 const std::string& name, |
| 60 const net::CookieStore::CookieChangedCallback& callback) override; | 60 const net::CookieStore::CookieChangedCallback& callback) override; |
| 61 void OnSignedIn(const std::string& account_id, | 61 void OnSignedIn(const std::string& account_id, |
| 62 const std::string& gaia_id, |
| 62 const std::string& username, | 63 const std::string& username, |
| 63 const std::string& password) override; | 64 const std::string& password) override; |
| 64 void PostSignedIn(const std::string& account_id, | 65 void PostSignedIn(const std::string& account_id, |
| 65 const std::string& username, | 66 const std::string& username, |
| 66 const std::string& password) override; | 67 const std::string& password) override; |
| 67 bool UpdateAccountInfo( | 68 bool UpdateAccountInfo( |
| 68 AccountTrackerService::AccountInfo* out_account_info) override; | 69 AccountTrackerService::AccountInfo* out_account_info) override; |
| 69 | 70 |
| 70 // SigninErrorController::Observer implementation. | 71 // SigninErrorController::Observer implementation. |
| 71 void OnErrorChanged() override; | 72 void OnErrorChanged() override; |
| 72 | 73 |
| 73 #if !defined(OS_CHROMEOS) | 74 #if !defined(OS_CHROMEOS) |
| 74 // net::NetworkChangeController::NetworkChangeObserver implementation. | 75 // net::NetworkChangeController::NetworkChangeObserver implementation. |
| 75 void OnNetworkChanged(net::NetworkChangeNotifier::ConnectionType type) | 76 void OnNetworkChanged(net::NetworkChangeNotifier::ConnectionType type) |
| 76 override; | 77 override; |
| 77 #endif | 78 #endif |
| 78 | 79 |
| 79 private: | 80 private: |
| 80 Profile* profile_; | 81 Profile* profile_; |
| 81 | 82 |
| 82 SigninErrorController* signin_error_controller_; | 83 SigninErrorController* signin_error_controller_; |
| 83 #if !defined(OS_CHROMEOS) | 84 #if !defined(OS_CHROMEOS) |
| 84 std::list<base::Closure> delayed_callbacks_; | 85 std::list<base::Closure> delayed_callbacks_; |
| 85 #endif | 86 #endif |
| 86 | 87 |
| 87 DISALLOW_COPY_AND_ASSIGN(ChromeSigninClient); | 88 DISALLOW_COPY_AND_ASSIGN(ChromeSigninClient); |
| 88 }; | 89 }; |
| 89 | 90 |
| 90 #endif // CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_ | 91 #endif // CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_ |
| OLD | NEW |