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

Side by Side Diff: remoting/host/setup/win/auth_code_getter.h

Issue 2889263002: Remove Interface ID Template Parameter from ScopedComPtr (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « media/audio/win/core_audio_util_win.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « media/audio/win/core_audio_util_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698