summaryrefslogtreecommitdiffstats
path: root/chrome/service/cloud_print/cloud_print_helpers.h
diff options
context:
space:
mode:
authorsanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-06 23:22:21 +0000
committersanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-06 23:22:21 +0000
commitbb0733862079a1bdca18bedfbd5a17dc1ce700db (patch)
treed83668c995c5b11e1a6c7125eedc544b3bbed35f /chrome/service/cloud_print/cloud_print_helpers.h
parentfa9c732ee03201e331df4c2d04f21740ec09f565 (diff)
downloadchromium_src-bb0733862079a1bdca18bedfbd5a17dc1ce700db.zip
chromium_src-bb0733862079a1bdca18bedfbd5a17dc1ce700db.tar.gz
chromium_src-bb0733862079a1bdca18bedfbd5a17dc1ce700db.tar.bz2
Changed the cloud print connector logic to request the OAuth2 credentials of a robot account and use those credentials for all cloud print and Talk authentication. The OAuth2 tokens are also periodically refreshed.
BUG=None TEST=Unit-tests, Cloud Print connector. R=scottbyer@chromium.org Review URL: http://codereview.chromium.org/6705013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84525 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/service/cloud_print/cloud_print_helpers.h')
-rw-r--r--chrome/service/cloud_print/cloud_print_helpers.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/service/cloud_print/cloud_print_helpers.h b/chrome/service/cloud_print/cloud_print_helpers.h
index 7ee1ded..6f2034f 100644
--- a/chrome/service/cloud_print/cloud_print_helpers.h
+++ b/chrome/service/cloud_print/cloud_print_helpers.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -37,6 +37,10 @@ class CloudPrintHelpers {
const cloud_print::PrintJobDetails& details);
static GURL GetUrlForUserMessage(const GURL& cloud_print_server_url,
const std::string& message_id);
+ static GURL GetUrlForGetAuthCode(const GURL& cloud_print_server_url,
+ const std::string& oauth_client_id,
+ const std::string& proxy_id);
+
// Parses the response data for any cloud print server request. The method
// returns false if there was an error in parsing the JSON. The succeeded