Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(567)

Side by Side Diff: chrome/browser/extensions/api/identity/identity_api.h

Issue 2661913002: Identity extension API impl: Split constants into their own file (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_EXTENSIONS_API_IDENTITY_IDENTITY_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_IDENTITY_IDENTITY_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_IDENTITY_IDENTITY_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_IDENTITY_IDENTITY_API_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 24 matching lines...) Expand all
35 35
36 namespace content { 36 namespace content {
37 class BrowserContext; 37 class BrowserContext;
38 } 38 }
39 39
40 namespace extensions { 40 namespace extensions {
41 41
42 class GetAuthTokenFunctionTest; 42 class GetAuthTokenFunctionTest;
43 class MockGetAuthTokenFunction; 43 class MockGetAuthTokenFunction;
44 44
45 namespace identity_constants {
46 extern const char kInvalidClientId[];
47 extern const char kInvalidScopes[];
48 extern const char kAuthFailure[];
49 extern const char kNoGrant[];
50 extern const char kUserRejected[];
51 extern const char kUserNotSignedIn[];
52 extern const char kInteractionRequired[];
53 extern const char kInvalidRedirect[];
54 extern const char kOffTheRecord[];
55 extern const char kPageLoadFailure[];
56 extern const char kCanceled[];
57 } // namespace identity_constants
58
59 class IdentityTokenCacheValue { 45 class IdentityTokenCacheValue {
60 public: 46 public:
61 IdentityTokenCacheValue(); 47 IdentityTokenCacheValue();
62 explicit IdentityTokenCacheValue(const IssueAdviceInfo& issue_advice); 48 explicit IdentityTokenCacheValue(const IssueAdviceInfo& issue_advice);
63 IdentityTokenCacheValue(const std::string& token, 49 IdentityTokenCacheValue(const std::string& token,
64 base::TimeDelta time_to_live); 50 base::TimeDelta time_to_live);
65 IdentityTokenCacheValue(const IdentityTokenCacheValue& other); 51 IdentityTokenCacheValue(const IdentityTokenCacheValue& other);
66 ~IdentityTokenCacheValue(); 52 ~IdentityTokenCacheValue();
67 53
68 // Order of these entries is used to determine whether or not new 54 // Order of these entries is used to determine whether or not new
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 private: 302 private:
317 ~IdentityGetProfileUserInfoFunction() override; 303 ~IdentityGetProfileUserInfoFunction() override;
318 304
319 // UIThreadExtensionFunction implementation. 305 // UIThreadExtensionFunction implementation.
320 ExtensionFunction::ResponseAction Run() override; 306 ExtensionFunction::ResponseAction Run() override;
321 }; 307 };
322 308
323 } // namespace extensions 309 } // namespace extensions
324 310
325 #endif // CHROME_BROWSER_EXTENSIONS_API_IDENTITY_IDENTITY_API_H_ 311 #endif // CHROME_BROWSER_EXTENSIONS_API_IDENTITY_IDENTITY_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/BUILD.gn ('k') | chrome/browser/extensions/api/identity/identity_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698