OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_FAKE_SIGNIN_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_FAKE_SIGNIN_MANAGER_H_ |
6 #define CHROME_BROWSER_SIGNIN_FAKE_SIGNIN_MANAGER_H_ | 6 #define CHROME_BROWSER_SIGNIN_FAKE_SIGNIN_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 virtual void StartSignInWithRefreshToken( | 56 virtual void StartSignInWithRefreshToken( |
57 const std::string& refresh_token, | 57 const std::string& refresh_token, |
58 const std::string& username, | 58 const std::string& username, |
59 const std::string& password, | 59 const std::string& password, |
60 const OAuthTokenFetchedCallback& oauth_fetched_callback) OVERRIDE; | 60 const OAuthTokenFetchedCallback& oauth_fetched_callback) OVERRIDE; |
61 | 61 |
62 virtual void SignOut() OVERRIDE; | 62 virtual void SignOut() OVERRIDE; |
63 | 63 |
64 virtual void CompletePendingSignin() OVERRIDE; | 64 virtual void CompletePendingSignin() OVERRIDE; |
| 65 |
| 66 virtual void AddMergeSessionObserver( |
| 67 MergeSessionHelper::Observer* observer) OVERRIDE; |
| 68 virtual void RemoveMergeSessionObserver( |
| 69 MergeSessionHelper::Observer* observer) OVERRIDE; |
| 70 |
| 71 void NotifyMergeSessionObservers(const GoogleServiceAuthError& error); |
| 72 |
| 73 private: |
| 74 ObserverList<MergeSessionHelper::Observer, true> merge_session_observer_list_; |
65 }; | 75 }; |
66 | 76 |
67 #endif // !defined (OS_CHROMEOS) | 77 #endif // !defined (OS_CHROMEOS) |
68 | 78 |
69 #if defined(OS_CHROMEOS) | 79 #if defined(OS_CHROMEOS) |
70 typedef FakeSigninManagerBase FakeSigninManagerForTesting; | 80 typedef FakeSigninManagerBase FakeSigninManagerForTesting; |
71 #else | 81 #else |
72 typedef FakeSigninManager FakeSigninManagerForTesting; | 82 typedef FakeSigninManager FakeSigninManagerForTesting; |
73 #endif | 83 #endif |
74 | 84 |
75 #endif // CHROME_BROWSER_SIGNIN_FAKE_SIGNIN_MANAGER_H_ | 85 #endif // CHROME_BROWSER_SIGNIN_FAKE_SIGNIN_MANAGER_H_ |
OLD | NEW |