Chromium Code Reviews| Index: remoting/protocol/pin_fetcher.h |
| diff --git a/remoting/protocol/pin_fetcher.h b/remoting/protocol/pin_fetcher.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c85d222ad9c236dbeb514c81976418a5734cd9b7 |
| --- /dev/null |
| +++ b/remoting/protocol/pin_fetcher.h |
| @@ -0,0 +1,25 @@ |
| +// Copyright 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef REMOTING_PROTOCOL_PIN_FETCHER_H_ |
| +#define REMOTING_PROTOCOL_PIN_FETCHER_H_ |
| + |
| +#include "base/callback_forward.h" |
| + |
| +namespace remoting { |
| +namespace protocol { |
| + |
| +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.
|
| + public: |
| + typedef base::Callback<void(const std::string& pin)> PinFetchedCallback; |
| + |
| + virtual ~PinFetcher() {} |
| + |
| + virtual void FetchPin(const PinFetchedCallback& pin_fetched_callback) = 0; |
| +}; |
| + |
| +} // namespace protocol |
| +} // namespace remoting |
| + |
| +#endif // REMOTING_PROTOCOL_PIN_FETCHER_H_ |