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 |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 | 13 |
14 namespace signin_internals_util { | 14 namespace signin_internals_util { |
15 | 15 |
16 // Preference prefixes for signin and token values. | 16 // Preference prefixes for signin and token values. |
17 extern const char kSigninPrefPrefix[]; | 17 extern const char kSigninPrefPrefix[]; |
18 extern const char kTokenPrefPrefix[]; | 18 extern const char kTokenPrefPrefix[]; |
19 | 19 |
20 // The following tokens are not under the purview of TokenService. | 20 // The following tokens are not under the purview of TokenService. |
21 extern const char kChromeToMobileToken[]; | 21 extern const char kChromeToMobileToken[]; |
22 extern const char kAppNotifyChannelSetupToken[]; | |
23 extern const char kOperationsBaseToken[]; | 22 extern const char kOperationsBaseToken[]; |
24 extern const char kUserPolicySigninServiceToken[]; | 23 extern const char kUserPolicySigninServiceToken[]; |
25 extern const char kProfileDownloaderToken[]; | 24 extern const char kProfileDownloaderToken[]; |
26 extern const char kObfuscatedGaiaIdFetcherToken[]; | 25 extern const char kObfuscatedGaiaIdFetcherToken[]; |
27 extern const char kOAuth2MintTokenFlowToken[]; | 26 extern const char kOAuth2MintTokenFlowToken[]; |
28 extern const char* kTokenPrefsArray[]; | 27 extern const char* kTokenPrefsArray[]; |
29 extern const size_t kNumTokenPrefs; | 28 extern const size_t kNumTokenPrefs; |
30 | 29 |
31 // Helper enums to access fields from SigninStatus (declared below). | 30 // Helper enums to access fields from SigninStatus (declared below). |
32 enum { | 31 enum { |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 bool update_time) {} | 136 bool update_time) {} |
138 virtual void NotifyTokenReceivedFailure(const std::string& token_name, | 137 virtual void NotifyTokenReceivedFailure(const std::string& token_name, |
139 const std::string& error) {} | 138 const std::string& error) {} |
140 virtual void NotifyClearStoredToken(const std::string& token_name) {} | 139 virtual void NotifyClearStoredToken(const std::string& token_name) {} |
141 | 140 |
142 }; | 141 }; |
143 | 142 |
144 } // namespace | 143 } // namespace |
145 | 144 |
146 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_INTERNALS_UTIL_H_ | 145 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_INTERNALS_UTIL_H_ |
OLD | NEW |