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

Side by Side Diff: chrome/common/net/gaia/gaia_constants.cc

Issue 10928017: Moving google_apis and GaiaClient to src/google_apis. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/net/gaia/gaia_constants.h ('k') | chrome/common/net/gaia/gaia_oauth_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4 //
5 // Constants definitions
6
7 #include "chrome/common/net/gaia/gaia_constants.h"
8
9 namespace GaiaConstants {
10
11 // Gaia uses this for accounting where login is coming from.
12 const char kChromeOSSource[] = "chromeos";
13 const char kChromeSource[] = "ChromiumBrowser";
14
15 // Service name for Gaia. Used to convert to cookie auth.
16 const char kGaiaService[] = "gaia";
17 // Service name for Picasa API. API is used to get user's image.
18 const char kPicasaService[] = "lh2";
19
20 // Service/scope names for sync.
21 const char kSyncService[] = "chromiumsync";
22
23 // Service name for remoting.
24 const char kRemotingService[] = "chromoting";
25 // Service name for cloud print.
26 const char kCloudPrintService[] = "cloudprint";
27
28 // Service/scope names for device management (cloud-based policy) server.
29 const char kDeviceManagementService[] = "mobilesync";
30 const char kDeviceManagementServiceOAuth[] =
31 "https://www.googleapis.com/auth/chromeosdevicemanagement";
32
33 // OAuth scopes for chrome web store.
34 const char kCWSNotificationScope[] =
35 "https://www.googleapis.com/auth/chromewebstore.notification";
36
37 // Service for LSO endpoint of Google that exposes OAuth APIs.
38 const char kLSOService[] = "lso";
39
40 // Used to mint uber auth tokens when needed.
41 const char kGaiaSid[] = "sid";
42 const char kGaiaLsid[] = "lsid";
43 const char kGaiaOAuthToken[] = "oauthToken";
44 const char kGaiaOAuthSecret[] = "oauthSecret";
45 const char kGaiaOAuthDuration[] = "3600";
46 const char kGaiaOAuth2LoginRefreshToken[] = "oauth2LoginRefreshToken";
47 const char kGaiaOAuth2LoginAccessToken[] = "oauth2LoginAccessToken";
48
49
50 // Used to build ClientOAuth requests. These are the names of keys used when
51 // building base::DictionaryValue that represent the json data that makes up
52 // the ClientOAuth endpoint protocol. The comment above each constant explains
53 // what value is associated with that key.
54
55 // Canonical email and password of the account to sign in.
56 const char kClientOAuthEmailKey[] = "email";
57 const char kClientOAuthPasswordKey[] = "password";
58
59 // Scopes required for the returned oauth2 token. For GaiaAuthFetcher, the
60 // value is the OAuthLogin scope.
61 const char kClientOAuthScopesKey[] = "scopes";
62
63 // Chrome's client id from the API console.
64 const char kClientOAuthOAuth2ClientIdKey[] = "oauth2_client_id";
65
66 // A friendly name to describe this instance of chrome to the user.
67 const char kClientOAuthFriendlyDeviceNameKey[] = "friendly_device_name";
68
69 // A list of challenge types that chrome accepts. At a minimum this must
70 // include Captcha. To support OTPs should also include TwoFactor.
71 const char kClientOAuthAcceptsChallengesKey[] = "accepts_challenges";
72
73 // The locale of the browser, so that ClientOAuth can return localized error
74 // messages.
75 const char kClientOAuthLocaleKey[] = "locale";
76
77 // The name of the web-based fallback method to use if ClientOAuth decides it
78 // cannot continue otherwise. Note that this name has a dot because its in
79 // sub dictionary.
80 const char kClientOAuthFallbackNameKey[] = "fallback.name";
81
82 // The following three key names are used with ClientOAuth challenge responses.
83
84 // The type of response. Must match the name given in the response to the
85 // original ClientOAuth request and is a subset of the challenge types listed
86 // in kClientOAuthAcceptsChallengesKey from that original request.
87 const char kClientOAuthNameKey[] = "name";
88
89 // The challenge token received in the original ClientOAuth request.
90 const char kClientOAuthChallengeTokenKey[] = "challenge_token";
91
92 // The dictionary that contains the challenge response.
93 const char kClientOAuthchallengeReplyKey[] = "challenge_reply";
94
95 } // namespace GaiaConstants
OLDNEW
« no previous file with comments | « chrome/common/net/gaia/gaia_constants.h ('k') | chrome/common/net/gaia/gaia_oauth_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698