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

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: Fix issues based on feedback 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
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
42
Andrew T Wilson (Slow) 2013/05/31 12:57:28 nit: remove extra line.
pavely 2013/06/04 00:49:59 Done.
35 // Service for LSO endpoint of Google that exposes OAuth APIs. 43 // Service for LSO endpoint of Google that exposes OAuth APIs.
36 const char kLSOService[] = "lso"; 44 const char kLSOService[] = "lso";
37 45
38 // Used to mint uber auth tokens when needed. 46 // Used to mint uber auth tokens when needed.
39 const char kGaiaSid[] = "sid"; 47 const char kGaiaSid[] = "sid";
40 const char kGaiaLsid[] = "lsid"; 48 const char kGaiaLsid[] = "lsid";
41 const char kGaiaOAuthToken[] = "oauthToken"; 49 const char kGaiaOAuthToken[] = "oauthToken";
42 const char kGaiaOAuthSecret[] = "oauthSecret"; 50 const char kGaiaOAuthSecret[] = "oauthSecret";
43 const char kGaiaOAuthDuration[] = "3600"; 51 const char kGaiaOAuthDuration[] = "3600";
44 const char kGaiaOAuth2LoginRefreshToken[] = "oauth2LoginRefreshToken"; 52 const char kGaiaOAuth2LoginRefreshToken[] = "oauth2LoginRefreshToken";
45 53
46 // Used to construct a channel ID for push messaging. 54 // Used to construct a channel ID for push messaging.
47 const char kObfuscatedGaiaId[] = "obfuscatedGaiaId"; 55 const char kObfuscatedGaiaId[] = "obfuscatedGaiaId";
48 56
49 // Used to build ClientOAuth requests. These are the names of keys used when 57 // 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 58 // building base::DictionaryValue that represent the json data that makes up
51 // the ClientOAuth endpoint protocol. The comment above each constant explains 59 // the ClientOAuth endpoint protocol. The comment above each constant explains
52 // what value is associated with that key. 60 // what value is associated with that key.
53 61
54 // Canonical email of the account to sign in. 62 // Canonical email of the account to sign in.
55 const char kClientOAuthEmailKey[] = "email"; 63 const char kClientOAuthEmailKey[] = "email";
56 64
57 } // namespace GaiaConstants 65 } // namespace GaiaConstants
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698