| 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_SIGNIN_INTERNALS_UTIL_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_SIGNIN_INTERNALS_UTIL_H_ |
| 6 #define CHROME_BROWSER_SIGNIN_SIGNIN_INTERNALS_UTIL_H_ | 6 #define CHROME_BROWSER_SIGNIN_SIGNIN_INTERNALS_UTIL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 // "token_info" : | 118 // "token_info" : |
| 119 // [ List of {"name": "foo-name", "token" : "foo-token", | 119 // [ List of {"name": "foo-name", "token" : "foo-token", |
| 120 // "status": "foo_stat", "time" : "foo_time"} elems] | 120 // "status": "foo_stat", "time" : "foo_time"} elems] |
| 121 // } | 121 // } |
| 122 scoped_ptr<DictionaryValue> ToValue(); | 122 scoped_ptr<DictionaryValue> ToValue(); |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 // An Observer class for authentication and token diagnostic information. | 125 // An Observer class for authentication and token diagnostic information. |
| 126 class SigninDiagnosticsObserver { | 126 class SigninDiagnosticsObserver { |
| 127 public: | 127 public: |
| 128 virtual ~SigninDiagnosticsObserver() {} |
| 129 |
| 128 // Credentials and signin related changes. | 130 // Credentials and signin related changes. |
| 129 virtual void NotifySigninValueChanged(const UntimedSigninStatusField& field, | 131 virtual void NotifySigninValueChanged(const UntimedSigninStatusField& field, |
| 130 const std::string& value) {} | 132 const std::string& value) {} |
| 131 virtual void NotifySigninValueChanged(const TimedSigninStatusField& field, | 133 virtual void NotifySigninValueChanged(const TimedSigninStatusField& field, |
| 132 const std::string& value) {} | 134 const std::string& value) {} |
| 133 | 135 |
| 134 // Tokens and service related changes. | 136 // Tokens and service related changes. |
| 135 virtual void NotifyTokenReceivedSuccess(const std::string& token_name, | 137 virtual void NotifyTokenReceivedSuccess(const std::string& token_name, |
| 136 const std::string& token, | 138 const std::string& token, |
| 137 bool update_time) {} | 139 bool update_time) {} |
| 138 virtual void NotifyTokenReceivedFailure(const std::string& token_name, | 140 virtual void NotifyTokenReceivedFailure(const std::string& token_name, |
| 139 const std::string& error) {} | 141 const std::string& error) {} |
| 140 virtual void NotifyClearStoredToken(const std::string& token_name) {} | 142 virtual void NotifyClearStoredToken(const std::string& token_name) {} |
| 141 | |
| 142 }; | 143 }; |
| 143 | 144 |
| 144 } // namespace | 145 } // namespace |
| 145 | 146 |
| 146 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_INTERNALS_UTIL_H_ | 147 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_INTERNALS_UTIL_H_ |
| OLD | NEW |