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

Side by Side Diff: chrome/browser/signin/ubertoken_fetcher.h

Issue 10928017: Moving google_apis and GaiaClient to src/google_apis. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 8 years, 3 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 | Annotate | Revision Log
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 #ifndef CHROME_BROWSER_SIGNIN_UBERTOKEN_FETCHER_H_ 5 #ifndef CHROME_BROWSER_SIGNIN_UBERTOKEN_FETCHER_H_
6 #define CHROME_BROWSER_SIGNIN_UBERTOKEN_FETCHER_H_ 6 #define CHROME_BROWSER_SIGNIN_UBERTOKEN_FETCHER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/common/net/gaia/gaia_auth_consumer.h"
10 #include "chrome/common/net/gaia/gaia_auth_fetcher.h"
11 #include "chrome/common/net/gaia/gaia_oauth_client.h"
12 #include "content/public/browser/notification_details.h" 9 #include "content/public/browser/notification_details.h"
13 #include "content/public/browser/notification_observer.h" 10 #include "content/public/browser/notification_observer.h"
14 #include "content/public/browser/notification_registrar.h" 11 #include "content/public/browser/notification_registrar.h"
15 #include "content/public/browser/notification_source.h" 12 #include "content/public/browser/notification_source.h"
13 #include "google_apis/gaia/gaia_auth_consumer.h"
14 #include "google_apis/gaia/gaia_auth_fetcher.h"
15 #include "google_apis/gaia/gaia_oauth_client.h"
16 16
17 // Allow to retrieves an uber-auth token for the user. This class uses the 17 // Allow to retrieves an uber-auth token for the user. This class uses the
18 // |TokenService| and considers that the user is already logged in. It will then 18 // |TokenService| and considers that the user is already logged in. It will then
19 // retrieve the OAuth2 refresh token, use it to generate an OAuth2 access token 19 // retrieve the OAuth2 refresh token, use it to generate an OAuth2 access token
20 // and finally use this access token to generate the uber-auth token. 20 // and finally use this access token to generate the uber-auth token.
21 // 21 //
22 // This class should be used on a single thread, but it can be whichever thread 22 // This class should be used on a single thread, but it can be whichever thread
23 // that you like. 23 // that you like.
24 // 24 //
25 // This class can handle one request at a time. 25 // This class can handle one request at a time.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 Profile* profile_; 72 Profile* profile_;
73 UbertokenConsumer* consumer_; 73 UbertokenConsumer* consumer_;
74 content::NotificationRegistrar registrar_; 74 content::NotificationRegistrar registrar_;
75 scoped_ptr<gaia::GaiaOAuthClient> gaia_oauth_client_; 75 scoped_ptr<gaia::GaiaOAuthClient> gaia_oauth_client_;
76 scoped_ptr<GaiaAuthFetcher> gaia_auth_fetcher_; 76 scoped_ptr<GaiaAuthFetcher> gaia_auth_fetcher_;
77 77
78 DISALLOW_COPY_AND_ASSIGN(UbertokenFetcher); 78 DISALLOW_COPY_AND_ASSIGN(UbertokenFetcher);
79 }; 79 };
80 80
81 #endif // CHROME_BROWSER_SIGNIN_UBERTOKEN_FETCHER_H_ 81 #endif // CHROME_BROWSER_SIGNIN_UBERTOKEN_FETCHER_H_
OLDNEW
« no previous file with comments | « chrome/browser/signin/token_service_unittest.cc ('k') | chrome/browser/signin/ubertoken_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698