OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 EXTENSIONS_RENDERER_API_DISPLAY_SOURCE_WIFI_DISPLAY_WIFI_DISPLAY_SESSION
_H_ | 5 #ifndef EXTENSIONS_RENDERER_API_DISPLAY_SOURCE_WIFI_DISPLAY_WIFI_DISPLAY_SESSION
_H_ |
6 #define EXTENSIONS_RENDERER_API_DISPLAY_SOURCE_WIFI_DISPLAY_WIFI_DISPLAY_SESSION
_H_ | 6 #define EXTENSIONS_RENDERER_API_DISPLAY_SOURCE_WIFI_DISPLAY_WIFI_DISPLAY_SESSION
_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 const DisplaySourceSessionParams& params); | 33 const DisplaySourceSessionParams& params); |
34 ~WiFiDisplaySession() override; | 34 ~WiFiDisplaySession() override; |
35 | 35 |
36 private: | 36 private: |
37 using DisplaySourceSession::CompletionCallback; | 37 using DisplaySourceSession::CompletionCallback; |
38 // DisplaySourceSession overrides. | 38 // DisplaySourceSession overrides. |
39 void Start(const CompletionCallback& callback) override; | 39 void Start(const CompletionCallback& callback) override; |
40 void Terminate(const CompletionCallback& callback) override; | 40 void Terminate(const CompletionCallback& callback) override; |
41 | 41 |
42 // WiFiDisplaySessionServiceClient overrides. | 42 // WiFiDisplaySessionServiceClient overrides. |
43 void OnConnected(const mojo::String& local_ip_address, | 43 void OnConnected(const std::string& local_ip_address, |
44 const mojo::String& sink_ip_address) override; | 44 const std::string& sink_ip_address) override; |
45 void OnConnectRequestHandled(bool success, | 45 void OnConnectRequestHandled(bool success, const std::string& error) override; |
46 const mojo::String& error) override; | |
47 void OnTerminated() override; | 46 void OnTerminated() override; |
48 void OnDisconnectRequestHandled(bool success, | 47 void OnDisconnectRequestHandled(bool success, |
49 const mojo::String& error) override; | 48 const std::string& error) override; |
50 void OnError(int32_t type, const mojo::String& description) override; | 49 void OnError(int32_t type, const std::string& description) override; |
51 void OnMessage(const mojo::String& data) override; | 50 void OnMessage(const std::string& data) override; |
52 | 51 |
53 // wds::Peer::Delegate overrides. | 52 // wds::Peer::Delegate overrides. |
54 unsigned CreateTimer(int seconds) override; | 53 unsigned CreateTimer(int seconds) override; |
55 void ReleaseTimer(unsigned timer_id) override; | 54 void ReleaseTimer(unsigned timer_id) override; |
56 void SendRTSPData(const std::string& message) override; | 55 void SendRTSPData(const std::string& message) override; |
57 std::string GetLocalIPAddress() const override; | 56 std::string GetLocalIPAddress() const override; |
58 int GetNextCSeq(int* initial_peer_cseq = nullptr) const override; | 57 int GetNextCSeq(int* initial_peer_cseq = nullptr) const override; |
59 | 58 |
60 // wds::Peer::Observer overrides. | 59 // wds::Peer::Observer overrides. |
61 void ErrorOccurred(wds::ErrorType error) override; | 60 void ErrorOccurred(wds::ErrorType error) override; |
(...skipping 25 matching lines...) Expand all Loading... |
87 mutable int cseq_; | 86 mutable int cseq_; |
88 int timer_id_; | 87 int timer_id_; |
89 base::WeakPtrFactory<WiFiDisplaySession> weak_factory_; | 88 base::WeakPtrFactory<WiFiDisplaySession> weak_factory_; |
90 | 89 |
91 DISALLOW_COPY_AND_ASSIGN(WiFiDisplaySession); | 90 DISALLOW_COPY_AND_ASSIGN(WiFiDisplaySession); |
92 }; | 91 }; |
93 | 92 |
94 } // namespace extensions | 93 } // namespace extensions |
95 | 94 |
96 #endif // EXTENSIONS_RENDERER_API_DISPLAY_SOURCE_WIFI_DISPLAY_WIFI_DISPLAY_SESS
ION_H_ | 95 #endif // EXTENSIONS_RENDERER_API_DISPLAY_SOURCE_WIFI_DISPLAY_WIFI_DISPLAY_SESS
ION_H_ |
OLD | NEW |