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

Side by Side Diff: google_apis/gaia/gaia_constants.cc

Issue 15421011: Use OAuth2 token for sync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 years, 6 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
« no previous file with comments | « google_apis/gaia/gaia_constants.h ('k') | jingle/notifier/base/notifier_options_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Constants definitions 5 // Constants definitions
6 6
7 #include "google_apis/gaia/gaia_constants.h" 7 #include "google_apis/gaia/gaia_constants.h"
8 8
9 namespace GaiaConstants { 9 namespace GaiaConstants {
10 10
(...skipping 14 matching lines...) Expand all
25 // Service name for cloud print. 25 // Service name for cloud print.
26 const char kCloudPrintService[] = "cloudprint"; 26 const char kCloudPrintService[] = "cloudprint";
27 27
28 // Service/scope names for device management (cloud-based policy) server. 28 // Service/scope names for device management (cloud-based policy) server.
29 const char kDeviceManagementServiceOAuth[] = 29 const char kDeviceManagementServiceOAuth[] =
30 "https://www.googleapis.com/auth/chromeosdevicemanagement"; 30 "https://www.googleapis.com/auth/chromeosdevicemanagement";
31 31
32 // OAuth2 scope for access to all Google APIs. 32 // OAuth2 scope for access to all Google APIs.
33 const char kAnyApiOAuth2Scope[] = "https://www.googleapis.com/auth/any-api"; 33 const char kAnyApiOAuth2Scope[] = "https://www.googleapis.com/auth/any-api";
34 34
35 // OAuth2 scope for access to Chrome sync APIs
36 const char kChromeSyncOAuth2Scope[] =
37 "https://www.googleapis.com/auth/chromesync";
38 // OAuth2 scope for access to Google Talk APIs (XMPP).
39 const char kGoogleTalkOAuth2Scope[] =
40 "https://www.googleapis.com/auth/googletalk";
41
35 // Service for LSO endpoint of Google that exposes OAuth APIs. 42 // Service for LSO endpoint of Google that exposes OAuth APIs.
36 const char kLSOService[] = "lso"; 43 const char kLSOService[] = "lso";
37 44
38 // Used to mint uber auth tokens when needed. 45 // Used to mint uber auth tokens when needed.
39 const char kGaiaSid[] = "sid"; 46 const char kGaiaSid[] = "sid";
40 const char kGaiaLsid[] = "lsid"; 47 const char kGaiaLsid[] = "lsid";
41 const char kGaiaOAuthToken[] = "oauthToken"; 48 const char kGaiaOAuthToken[] = "oauthToken";
42 const char kGaiaOAuthSecret[] = "oauthSecret"; 49 const char kGaiaOAuthSecret[] = "oauthSecret";
43 const char kGaiaOAuthDuration[] = "3600"; 50 const char kGaiaOAuthDuration[] = "3600";
44 const char kGaiaOAuth2LoginRefreshToken[] = "oauth2LoginRefreshToken"; 51 const char kGaiaOAuth2LoginRefreshToken[] = "oauth2LoginRefreshToken";
45 52
46 // Used to construct a channel ID for push messaging. 53 // Used to construct a channel ID for push messaging.
47 const char kObfuscatedGaiaId[] = "obfuscatedGaiaId"; 54 const char kObfuscatedGaiaId[] = "obfuscatedGaiaId";
48 55
49 // Used to build ClientOAuth requests. These are the names of keys used when 56 // Used to build ClientOAuth requests. These are the names of keys used when
50 // building base::DictionaryValue that represent the json data that makes up 57 // building base::DictionaryValue that represent the json data that makes up
51 // the ClientOAuth endpoint protocol. The comment above each constant explains 58 // the ClientOAuth endpoint protocol. The comment above each constant explains
52 // what value is associated with that key. 59 // what value is associated with that key.
53 60
54 // Canonical email of the account to sign in. 61 // Canonical email of the account to sign in.
55 const char kClientOAuthEmailKey[] = "email"; 62 const char kClientOAuthEmailKey[] = "email";
56 63
57 } // namespace GaiaConstants 64 } // namespace GaiaConstants
OLDNEW
« no previous file with comments | « google_apis/gaia/gaia_constants.h ('k') | jingle/notifier/base/notifier_options_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698