Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef REMOTING_PROTOCOL_PIN_FETCHER_H_ | |
| 6 #define REMOTING_PROTOCOL_PIN_FETCHER_H_ | |
| 7 | |
| 8 #include "base/callback_forward.h" | |
| 9 | |
| 10 namespace remoting { | |
| 11 namespace protocol { | |
| 12 | |
| 13 class PinFetcher { | |
|
Sergey Ulanov
2013/03/17 21:29:21
Do we need this interface at all? There is only on
rmsousa
2013/03/18 21:07:26
Kinda... there's also an implicit Cancel() (in the
Sergey Ulanov
2013/03/19 02:44:53
But what does the cancel do? Would it hide the PIN
rmsousa
2013/03/19 23:14:31
Done.
| |
| 14 public: | |
| 15 typedef base::Callback<void(const std::string& pin)> PinFetchedCallback; | |
| 16 | |
| 17 virtual ~PinFetcher() {} | |
| 18 | |
| 19 virtual void FetchPin(const PinFetchedCallback& pin_fetched_callback) = 0; | |
| 20 }; | |
| 21 | |
| 22 } // namespace protocol | |
| 23 } // namespace remoting | |
| 24 | |
| 25 #endif // REMOTING_PROTOCOL_PIN_FETCHER_H_ | |
| OLD | NEW |