| 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 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 void OnTimer(); | 36 void OnTimer(); |
| 37 // Returns whether to stop polling the browser's URL. If true, then | 37 // Returns whether to stop polling the browser's URL. If true, then |
| 38 // |auth_code| is an authorization code, or the empty string on an error. | 38 // |auth_code| is an authorization code, or the empty string on an error. |
| 39 bool TestBrowserUrl(std::string* auth_code); | 39 bool TestBrowserUrl(std::string* auth_code); |
| 40 // Kills the browser. | 40 // Kills the browser. |
| 41 void KillBrowser(); | 41 void KillBrowser(); |
| 42 | 42 |
| 43 // The authorization code callback. | 43 // The authorization code callback. |
| 44 base::Callback<void(const std::string&)> on_auth_code_; | 44 base::Callback<void(const std::string&)> on_auth_code_; |
| 45 // The browser through which the user requests an authorization code. | 45 // The browser through which the user requests an authorization code. |
| 46 base::win::ScopedComPtr<IWebBrowser2, &IID_IWebBrowser2> browser_; | 46 base::win::ScopedComPtr<IWebBrowser2> browser_; |
| 47 // A timer used to poll the browser's URL. | 47 // A timer used to poll the browser's URL. |
| 48 base::OneShotTimer timer_; | 48 base::OneShotTimer timer_; |
| 49 // The interval at which the timer fires. | 49 // The interval at which the timer fires. |
| 50 base::TimeDelta timer_interval_; | 50 base::TimeDelta timer_interval_; |
| 51 | 51 |
| 52 DISALLOW_COPY_AND_ASSIGN(AuthCodeGetter); | 52 DISALLOW_COPY_AND_ASSIGN(AuthCodeGetter); |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace remoting | 55 } // namespace remoting |
| 56 | 56 |
| 57 #endif // REMOTING_HOST_SETUP_WIN_AUTH_CODE_GETTER_H | 57 #endif // REMOTING_HOST_SETUP_WIN_AUTH_CODE_GETTER_H |
| OLD | NEW |