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_CLIENT_PLUGIN_PEPPER_PIN_FETCHER_H_ | |
6 #define REMOTING_CLIENT_PLUGIN_PEPPER_PIN_FETCHER_H_ | |
7 | |
8 #include "base/callback.h" | |
9 #include "base/memory/weak_ptr.h" | |
10 #include "remoting/protocol/pin_fetcher.h" | |
11 | |
12 namespace remoting { | |
13 | |
14 class ChromotingInstance; | |
15 | |
16 class PepperPinFetcher : public protocol::PinFetcher { | |
17 public: | |
18 explicit PepperPinFetcher(base::WeakPtr<ChromotingInstance> parent); | |
19 virtual ~PepperPinFetcher() OVERRIDE; | |
20 | |
21 // protocol::PinClientAuthenticator::PinFetcher interface. | |
22 virtual void FetchPin( | |
23 const PinFetchedCallback& pin_fetched_callback) OVERRIDE; | |
24 virtual void OnPinFetched(const std::string& pin); | |
25 private: | |
Sergey Ulanov
2013/03/17 21:29:21
nit: add empty line before private:
rmsousa
2013/03/18 21:07:26
Done.
| |
26 base::WeakPtr<ChromotingInstance> parent_; | |
Sergey Ulanov
2013/03/17 21:29:21
parent_ is ambiguous. Call it plugin_ or plugin_in
rmsousa
2013/03/18 21:07:26
Done.
| |
27 base::WeakPtrFactory<PepperPinFetcher> weak_factory_; | |
28 PinFetchedCallback pin_fetched_callback_; | |
29 DISALLOW_COPY_AND_ASSIGN(PepperPinFetcher); | |
Sergey Ulanov
2013/03/17 21:29:21
nit: empty line
rmsousa
2013/03/18 21:07:26
Done.
| |
30 }; | |
31 | |
32 } // namespace remoting | |
33 | |
34 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_PIN_FETCHER_H_ | |
OLD | NEW |