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