| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_CLIENT_JNI_JNI_PAIRING_SECRET_FETCHER_H_ | 5 #ifndef REMOTING_CLIENT_JNI_JNI_PAIRING_SECRET_FETCHER_H_ |
| 6 #define REMOTING_CLIENT_JNI_JNI_PAIRING_SECRET_FETCHER_H_ | 6 #define REMOTING_CLIENT_JNI_JNI_PAIRING_SECRET_FETCHER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "remoting/protocol/client_authentication_config.h" | 10 #include "remoting/protocol/client_authentication_config.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 ChromotingJniRuntime* jni_runtime_; | 45 ChromotingJniRuntime* jni_runtime_; |
| 46 base::WeakPtr<JniClient> jni_client_; | 46 base::WeakPtr<JniClient> jni_client_; |
| 47 | 47 |
| 48 std::string host_id_; | 48 std::string host_id_; |
| 49 | 49 |
| 50 // Pass this the user's PIN once we have it. To be assigned and accessed on | 50 // Pass this the user's PIN once we have it. To be assigned and accessed on |
| 51 // the UI thread, but must be posted to the network thread to call it. | 51 // the UI thread, but must be posted to the network thread to call it. |
| 52 protocol::SecretFetchedCallback callback_; | 52 protocol::SecretFetchedCallback callback_; |
| 53 | 53 |
| 54 base::WeakPtr<JniPairingSecretFetcher> weak_ptr_; |
| 54 base::WeakPtrFactory<JniPairingSecretFetcher> weak_factory_; | 55 base::WeakPtrFactory<JniPairingSecretFetcher> weak_factory_; |
| 55 | 56 |
| 56 DISALLOW_COPY_AND_ASSIGN(JniPairingSecretFetcher); | 57 DISALLOW_COPY_AND_ASSIGN(JniPairingSecretFetcher); |
| 57 }; | 58 }; |
| 58 | 59 |
| 59 } // namespace remoting | 60 } // namespace remoting |
| 60 | 61 |
| 61 #endif // REMOTING_CLIENT_JNI_JNI_PAIRING_SECRET_FETCHER_H_ | 62 #endif // REMOTING_CLIENT_JNI_JNI_PAIRING_SECRET_FETCHER_H_ |
| OLD | NEW |