| OLD | NEW |
| 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 REMOTING_HOST_SETUP_WIN_AUTH_CODE_GETTER_H | 5 #ifndef REMOTING_HOST_SETUP_WIN_AUTH_CODE_GETTER_H |
| 6 #define REMOTING_HOST_SETUP_WIN_AUTH_CODE_GETTER_H | 6 #define REMOTING_HOST_SETUP_WIN_AUTH_CODE_GETTER_H |
| 7 | 7 |
| 8 #include <ole2.h> | 8 #include <ole2.h> |
| 9 #include <exdisp.h> | 9 #include <exdisp.h> |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/threading/non_thread_safe.h" | 14 #include "base/threading/non_thread_safe.h" |
| 15 #include "base/timer.h" | 15 #include "base/timer/timer.h" |
| 16 #include "base/win/scoped_comptr.h" | 16 #include "base/win/scoped_comptr.h" |
| 17 | 17 |
| 18 namespace remoting { | 18 namespace remoting { |
| 19 | 19 |
| 20 // A class for getting an OAuth authorization code. | 20 // A class for getting an OAuth authorization code. |
| 21 class AuthCodeGetter : public base::NonThreadSafe { | 21 class AuthCodeGetter : public base::NonThreadSafe { |
| 22 public: | 22 public: |
| 23 AuthCodeGetter(); | 23 AuthCodeGetter(); |
| 24 ~AuthCodeGetter(); | 24 ~AuthCodeGetter(); |
| 25 | 25 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 47 base::OneShotTimer<AuthCodeGetter> timer_; | 47 base::OneShotTimer<AuthCodeGetter> timer_; |
| 48 // The interval at which the timer fires. | 48 // The interval at which the timer fires. |
| 49 base::TimeDelta timer_interval_; | 49 base::TimeDelta timer_interval_; |
| 50 | 50 |
| 51 DISALLOW_COPY_AND_ASSIGN(AuthCodeGetter); | 51 DISALLOW_COPY_AND_ASSIGN(AuthCodeGetter); |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 } // namespace remoting | 54 } // namespace remoting |
| 55 | 55 |
| 56 #endif // REMOTING_HOST_SETUP_WIN_AUTH_CODE_GETTER_H | 56 #endif // REMOTING_HOST_SETUP_WIN_AUTH_CODE_GETTER_H |
| OLD | NEW |