Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package


// 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.


#include "chrome/common/net/gaia/gaia_auth_consumer.h"

class TokenService {
  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.

  GaiaAuthConsumer::ClientLoginResult credentials_;


Generated by  Doxygen 1.6.0   Back to index