| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_LOCAL_DISCOVERY_PRIVETV3_SESSION_H_ | 5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_PRIVETV3_SESSION_H_ |
| 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_PRIVETV3_SESSION_H_ | 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_PRIVETV3_SESSION_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 101 |
| 102 // ID of the session received from pairing/start. | 102 // ID of the session received from pairing/start. |
| 103 std::string session_id_; | 103 std::string session_id_; |
| 104 | 104 |
| 105 // Device commitment received from pairing/start. | 105 // Device commitment received from pairing/start. |
| 106 std::string commitment_; | 106 std::string commitment_; |
| 107 | 107 |
| 108 // Key exchange algorithm for pairing. | 108 // Key exchange algorithm for pairing. |
| 109 scoped_ptr<crypto::P224EncryptedKeyExchange> spake_; | 109 scoped_ptr<crypto::P224EncryptedKeyExchange> spake_; |
| 110 | 110 |
| 111 // HTTPS certificate fingerprint received during pairing. | 111 // HTTPS port of the device. |
| 112 std::string fingerprint_; | 112 uint16_t https_port_ = 0; |
| 113 | 113 |
| 114 // List of fetches to cancel when session is destroyed. | 114 // List of fetches to cancel when session is destroyed. |
| 115 ScopedVector<FetcherDelegate> fetchers_; | 115 ScopedVector<FetcherDelegate> fetchers_; |
| 116 | 116 |
| 117 // Intercepts POST requests. Used by tests only. | 117 // Intercepts POST requests. Used by tests only. |
| 118 base::Callback<void(const base::DictionaryValue&)> on_post_data_; | 118 base::Callback<void(const base::DictionaryValue&)> on_post_data_; |
| 119 | 119 |
| 120 base::WeakPtrFactory<PrivetV3Session> weak_ptr_factory_; | 120 base::WeakPtrFactory<PrivetV3Session> weak_ptr_factory_; |
| 121 DISALLOW_COPY_AND_ASSIGN(PrivetV3Session); | 121 DISALLOW_COPY_AND_ASSIGN(PrivetV3Session); |
| 122 }; | 122 }; |
| 123 | 123 |
| 124 } // namespace local_discovery | 124 } // namespace local_discovery |
| 125 | 125 |
| 126 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVETV3_SESSION_H_ | 126 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVETV3_SESSION_H_ |
| OLD | NEW |