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

Unified Diff: chrome/browser/net/gaia/token_service.h

Issue 2872034: Add the TokenService to the chrome profile (Closed)
Patch Set: Fixed oops :) Created 10 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/login/login_utils.cc ('k') | chrome/browser/net/gaia/token_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/gaia/token_service.h
diff --git a/chrome/browser/net/gaia/token_service.h b/chrome/browser/net/gaia/token_service.h
new file mode 100644
index 0000000000000000000000000000000000000000..c8b777820b17c8e1c66d7c44e462a879d5d5d25d
--- /dev/null
+++ b/chrome/browser/net/gaia/token_service.h
@@ -0,0 +1,31 @@
+// Copyright (c) 2010 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.
+//
+// The TokenService will supply authentication tokens for any service that
+// needs it. One such service is Sync.
+// For the time being, the Token Service just supplies the LSID from the
+// ChromiumOS login. In the future, it'll have a bit more logic and supply
+// only AuthTokens from Gaia, and not LSIDs.
+
+#ifndef CHROME_BROWSER_NET_GAIA_TOKEN_SERVICE_H_
+#define CHROME_BROWSER_NET_GAIA_TOKEN_SERVICE_H_
+
+#include "chrome/common/net/gaia/gaia_auth_consumer.h"
+
+class TokenService {
+ public:
+ void SetClientLoginResult(
+ const GaiaAuthConsumer::ClientLoginResult& credentials);
+
+ bool HasLsid();
+ const std::string& GetLsid();
+
+ // TODO(chron): Token broadcast will require removing a lot of auth code
+ // from sync. For the time being we'll start with LSID passing.
+
+ private:
+ GaiaAuthConsumer::ClientLoginResult credentials_;
+};
+
+#endif // CHROME_BROWSER_NET_GAIA_TOKEN_SERVICE_H_
« no previous file with comments | « chrome/browser/chromeos/login/login_utils.cc ('k') | chrome/browser/net/gaia/token_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698