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

Side by Side Diff: chrome/browser/signin/token_service.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 // The TokenService will supply authentication tokens for any service that 5 // The TokenService will supply authentication tokens for any service that
6 // needs it, such as sync. Whenever the user logs in, a controller watching 6 // needs it, such as sync. Whenever the user logs in, a controller watching
7 // the token service is expected either to call ClientLogin to derive a new 7 // the token service is expected either to call ClientLogin to derive a new
8 // SID and LSID, or to use GAIA OAuth requests to derive an OAuth1 access 8 // SID and LSID, or to use GAIA OAuth requests to derive an OAuth1 access
9 // token for the OAuthLogin scope. Whenever such credentials are available, 9 // token for the OAuthLogin scope. Whenever such credentials are available,
10 // the TokenService should be updated with new credentials. The controller 10 // the TokenService should be updated with new credentials. The controller
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 #define CHROME_BROWSER_SIGNIN_TOKEN_SERVICE_H_ 45 #define CHROME_BROWSER_SIGNIN_TOKEN_SERVICE_H_
46 46
47 #include <map> 47 #include <map>
48 #include <string> 48 #include <string>
49 #include <vector> 49 #include <vector>
50 50
51 #include "base/gtest_prod_util.h" 51 #include "base/gtest_prod_util.h"
52 #include "base/memory/scoped_ptr.h" 52 #include "base/memory/scoped_ptr.h"
53 #include "chrome/browser/profiles/profile_keyed_service.h" 53 #include "chrome/browser/profiles/profile_keyed_service.h"
54 #include "chrome/browser/webdata/web_data_service.h" 54 #include "chrome/browser/webdata/web_data_service.h"
55 #include "chrome/common/net/gaia/gaia_auth_consumer.h"
56 #include "chrome/common/net/gaia/gaia_auth_fetcher.h"
57 #include "chrome/common/net/gaia/google_service_auth_error.h"
58 #include "content/public/browser/notification_observer.h" 55 #include "content/public/browser/notification_observer.h"
59 #include "content/public/browser/notification_registrar.h" 56 #include "content/public/browser/notification_registrar.h"
57 #include "google_apis/gaia/gaia_auth_consumer.h"
58 #include "google_apis/gaia/gaia_auth_fetcher.h"
59 #include "google_apis/gaia/google_service_auth_error.h"
60 60
61 class Profile; 61 class Profile;
62 class TokenServiceTest; 62 class TokenServiceTest;
63 63
64 namespace net { 64 namespace net {
65 class URLRequestContextGetter; 65 class URLRequestContextGetter;
66 } 66 }
67 67
68 // The TokenService is a Profile member, so all calls are expected 68 // The TokenService is a Profile member, so all calls are expected
69 // from the UI thread. 69 // from the UI thread.
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 261
262 friend class TokenServiceTest; 262 friend class TokenServiceTest;
263 FRIEND_TEST_ALL_PREFIXES(TokenServiceTest, LoadTokensIntoMemoryBasic); 263 FRIEND_TEST_ALL_PREFIXES(TokenServiceTest, LoadTokensIntoMemoryBasic);
264 FRIEND_TEST_ALL_PREFIXES(TokenServiceTest, LoadTokensIntoMemoryAdvanced); 264 FRIEND_TEST_ALL_PREFIXES(TokenServiceTest, LoadTokensIntoMemoryAdvanced);
265 FRIEND_TEST_ALL_PREFIXES(TokenServiceTest, FullIntegrationNewServicesAdded); 265 FRIEND_TEST_ALL_PREFIXES(TokenServiceTest, FullIntegrationNewServicesAdded);
266 266
267 DISALLOW_COPY_AND_ASSIGN(TokenService); 267 DISALLOW_COPY_AND_ASSIGN(TokenService);
268 }; 268 };
269 269
270 #endif // CHROME_BROWSER_SIGNIN_TOKEN_SERVICE_H_ 270 #endif // CHROME_BROWSER_SIGNIN_TOKEN_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/signin/signin_tracker_unittest.cc ('k') | chrome/browser/signin/token_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698