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

Side by Side Diff: chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.h

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_CHROMEOS_POLICY_POLICY_OAUTH2_TOKEN_FETCHER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_POLICY_OAUTH2_TOKEN_FETCHER_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_POLICY_OAUTH2_TOKEN_FETCHER_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_POLICY_OAUTH2_TOKEN_FETCHER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "google_apis/gaia/gaia_auth_consumer.h" 13 #include "google_apis/gaia/gaia_auth_consumer.h"
14 14
15 class GaiaAuthFetcher;
16 class OAuth2AccessTokenFetcher;
17
18 namespace net { 15 namespace net {
19 class URLRequestContextGetter; 16 class URLRequestContextGetter;
20 } 17 }
21 18
22 namespace policy { 19 namespace policy {
23 20
24 // Fetches the OAuth2 token for the device management service. Since Profile 21 // Fetches the OAuth2 token for the device management service. Since Profile
25 // creation might be blocking on a user policy fetch, this fetcher must always 22 // creation might be blocking on a user policy fetch, this fetcher must always
26 // send a (possibly empty) token to the callback, which will then let the policy 23 // send a (possibly empty) token to the callback, which will then let the policy
27 // subsystem proceed and resume Profile creation. Sending the token even when no 24 // subsystem proceed and resume Profile creation. Sending the token even when no
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 virtual const std::string& OAuth2RefreshToken() const = 0; 59 virtual const std::string& OAuth2RefreshToken() const = 0;
63 virtual const std::string& OAuth2AccessToken() const = 0; 60 virtual const std::string& OAuth2AccessToken() const = 0;
64 61
65 private: 62 private:
66 DISALLOW_COPY_AND_ASSIGN(PolicyOAuth2TokenFetcher); 63 DISALLOW_COPY_AND_ASSIGN(PolicyOAuth2TokenFetcher);
67 }; 64 };
68 65
69 } // namespace policy 66 } // namespace policy
70 67
71 #endif // CHROME_BROWSER_CHROMEOS_POLICY_POLICY_OAUTH2_TOKEN_FETCHER_H_ 68 #endif // CHROME_BROWSER_CHROMEOS_POLICY_POLICY_OAUTH2_TOKEN_FETCHER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/policy/heartbeat_scheduler.h ('k') | chrome/browser/chromeos/preferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698