Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_TOKEN_FETCHER_H_ | |
| 6 #define CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_TOKEN_FETCHER_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/callback_forward.h" | |
| 11 #include "base/compiler_specific.h" | |
| 12 #include "base/memory/scoped_ptr.h" | |
| 13 #include "base/string16.h" | |
| 14 | |
| 15 class GoogleServiceAuthError; | |
| 16 class OAuth2TokenService; | |
| 17 | |
| 18 namespace net { | |
| 19 class URLRequestContextGetter; | |
| 20 } | |
| 21 | |
| 22 class ManagedUserTokenFetcher { | |
|
Andrew T Wilson (Slow)
2013/05/27 13:52:15
What does this class do? It's not clear to me what
Bernhard Bauer
2013/05/27 14:42:13
Added a comment.
| |
| 23 public: | |
| 24 typedef base::Callback<void(const GoogleServiceAuthError& /* error */, | |
| 25 const std::string& /* token */)> TokenCallback; | |
| 26 | |
| 27 static scoped_ptr<ManagedUserTokenFetcher> Create( | |
| 28 OAuth2TokenService* oauth2_token_service, | |
| 29 net::URLRequestContextGetter* context); | |
| 30 | |
| 31 virtual ~ManagedUserTokenFetcher(); | |
| 32 | |
| 33 virtual void Start(const std::string& managed_user_id, | |
| 34 const string16& name, | |
| 35 const std::string& device_name, | |
| 36 const TokenCallback& callback) = 0; | |
| 37 }; | |
| 38 | |
| 39 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_TOKEN_FETCHER_H_ | |
| OLD | NEW |