| 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 CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ |
| 6 #define CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ | 6 #define CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <deque> | 10 #include <deque> |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 const MediaSource::Id& source, | 86 const MediaSource::Id& source, |
| 87 const MediaRoute::Id& route_id, | 87 const MediaRoute::Id& route_id, |
| 88 const url::Origin& origin, | 88 const url::Origin& origin, |
| 89 content::WebContents* web_contents, | 89 content::WebContents* web_contents, |
| 90 const std::vector<MediaRouteResponseCallback>& callbacks, | 90 const std::vector<MediaRouteResponseCallback>& callbacks, |
| 91 base::TimeDelta timeout, | 91 base::TimeDelta timeout, |
| 92 bool incognito) override; | 92 bool incognito) override; |
| 93 void TerminateRoute(const MediaRoute::Id& route_id) override; | 93 void TerminateRoute(const MediaRoute::Id& route_id) override; |
| 94 void DetachRoute(const MediaRoute::Id& route_id) override; | 94 void DetachRoute(const MediaRoute::Id& route_id) override; |
| 95 void SendRouteMessage(const MediaRoute::Id& route_id, | 95 void SendRouteMessage(const MediaRoute::Id& route_id, |
| 96 const std::string& message, | 96 std::string message, |
| 97 const SendRouteMessageCallback& callback) override; | 97 const SendRouteMessageCallback& callback) override; |
| 98 void SendRouteBinaryMessage( | 98 void SendRouteBinaryMessage( |
| 99 const MediaRoute::Id& route_id, | 99 const MediaRoute::Id& route_id, |
| 100 std::unique_ptr<std::vector<uint8_t>> data, | 100 std::vector<uint8_t> data, |
| 101 const SendRouteMessageCallback& callback) override; | 101 const SendRouteMessageCallback& callback) override; |
| 102 void AddIssue(const IssueInfo& issue_info) override; | 102 void AddIssue(const IssueInfo& issue_info) override; |
| 103 void ClearIssue(const Issue::Id& issue_id) override; | 103 void ClearIssue(const Issue::Id& issue_id) override; |
| 104 void OnUserGesture() override; | 104 void OnUserGesture() override; |
| 105 void SearchSinks( | 105 void SearchSinks( |
| 106 const MediaSink::Id& sink_id, | 106 const MediaSink::Id& sink_id, |
| 107 const MediaSource::Id& source_id, | 107 const MediaSource::Id& source_id, |
| 108 const std::string& search_input, | 108 const std::string& search_input, |
| 109 const std::string& domain, | 109 const std::string& domain, |
| 110 const MediaSinkSearchResponseCallback& sink_callback) override; | 110 const MediaSinkSearchResponseCallback& sink_callback) override; |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 const MediaSource::Id& source_id, | 251 const MediaSource::Id& source_id, |
| 252 const MediaRoute::Id& route_id, | 252 const MediaRoute::Id& route_id, |
| 253 const url::Origin& origin, | 253 const url::Origin& origin, |
| 254 int tab_id, | 254 int tab_id, |
| 255 const std::vector<MediaRouteResponseCallback>& callbacks, | 255 const std::vector<MediaRouteResponseCallback>& callbacks, |
| 256 base::TimeDelta timeout, | 256 base::TimeDelta timeout, |
| 257 bool incognito); | 257 bool incognito); |
| 258 void DoTerminateRoute(const MediaRoute::Id& route_id); | 258 void DoTerminateRoute(const MediaRoute::Id& route_id); |
| 259 void DoDetachRoute(const MediaRoute::Id& route_id); | 259 void DoDetachRoute(const MediaRoute::Id& route_id); |
| 260 void DoSendSessionMessage(const MediaRoute::Id& route_id, | 260 void DoSendSessionMessage(const MediaRoute::Id& route_id, |
| 261 const std::string& message, | 261 const std::string message, |
| 262 const SendRouteMessageCallback& callback); | 262 const SendRouteMessageCallback& callback); |
| 263 void DoSendSessionBinaryMessage(const MediaRoute::Id& route_id, | 263 void DoSendSessionBinaryMessage(const MediaRoute::Id& route_id, |
| 264 std::unique_ptr<std::vector<uint8_t>> data, | 264 std::vector<uint8_t> data, |
| 265 const SendRouteMessageCallback& callback); | 265 const SendRouteMessageCallback& callback); |
| 266 void DoStartListeningForRouteMessages(const MediaRoute::Id& route_id); | 266 void DoStartListeningForRouteMessages(const MediaRoute::Id& route_id); |
| 267 void DoStopListeningForRouteMessages(const MediaRoute::Id& route_id); | 267 void DoStopListeningForRouteMessages(const MediaRoute::Id& route_id); |
| 268 void DoStartObservingMediaSinks(const MediaSource::Id& source_id); | 268 void DoStartObservingMediaSinks(const MediaSource::Id& source_id); |
| 269 void DoStopObservingMediaSinks(const MediaSource::Id& source_id); | 269 void DoStopObservingMediaSinks(const MediaSource::Id& source_id); |
| 270 void DoStartObservingMediaRoutes(const MediaSource::Id& source_id); | 270 void DoStartObservingMediaRoutes(const MediaSource::Id& source_id); |
| 271 void DoStopObservingMediaRoutes(const MediaSource::Id& source_id); | 271 void DoStopObservingMediaRoutes(const MediaSource::Id& source_id); |
| 272 void DoSearchSinks( | 272 void DoSearchSinks( |
| 273 const MediaSink::Id& sink_id, | 273 const MediaSink::Id& sink_id, |
| 274 const MediaSource::Id& source_id, | 274 const MediaSource::Id& source_id, |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 #endif | 430 #endif |
| 431 | 431 |
| 432 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; | 432 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; |
| 433 | 433 |
| 434 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); | 434 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); |
| 435 }; | 435 }; |
| 436 | 436 |
| 437 } // namespace media_router | 437 } // namespace media_router |
| 438 | 438 |
| 439 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ | 439 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ |
| OLD | NEW |