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

Side by Side Diff: remoting/host/oauth_token_getter.h

Issue 1547473005: Switch to standard integer types in remoting/host/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 REMOTING_HOST_OAUTH_TOKEN_GETTER_H_ 5 #ifndef REMOTING_HOST_OAUTH_TOKEN_GETTER_H_
6 #define REMOTING_HOST_OAUTH_TOKEN_GETTER_H_ 6 #define REMOTING_HOST_OAUTH_TOKEN_GETTER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 11 #include "base/macros.h"
12 12
13 namespace remoting { 13 namespace remoting {
14 14
15 // OAuthTokenGetter caches OAuth access tokens and refreshes them as needed. 15 // OAuthTokenGetter caches OAuth access tokens and refreshes them as needed.
16 class OAuthTokenGetter { 16 class OAuthTokenGetter {
17 public: 17 public:
18 // Status of the refresh token attempt. 18 // Status of the refresh token attempt.
19 enum Status { 19 enum Status {
20 // Success, credentials in user_email/access_token. 20 // Success, credentials in user_email/access_token.
21 SUCCESS, 21 SUCCESS,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // Invalidates the cache, so the next CallWithToken() will get a fresh access 59 // Invalidates the cache, so the next CallWithToken() will get a fresh access
60 // token. 60 // token.
61 virtual void InvalidateCache() = 0; 61 virtual void InvalidateCache() = 0;
62 62
63 DISALLOW_COPY_AND_ASSIGN(OAuthTokenGetter); 63 DISALLOW_COPY_AND_ASSIGN(OAuthTokenGetter);
64 }; 64 };
65 65
66 } // namespace remoting 66 } // namespace remoting
67 67
68 #endif // REMOTING_HOST_OAUTH_TOKEN_GETTER_H_ 68 #endif // REMOTING_HOST_OAUTH_TOKEN_GETTER_H_
OLDNEW
« no previous file with comments | « remoting/host/native_messaging/pipe_messaging_channel.cc ('k') | remoting/host/oauth_token_getter_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698