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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 interfaces::MediaRouter::PresentationConnectionCloseReason reason, | 307 interfaces::MediaRouter::PresentationConnectionCloseReason reason, |
308 const mojo::String& message) override; | 308 const mojo::String& message) override; |
309 | 309 |
310 // Converts the callback result of calling Mojo CreateRoute()/JoinRoute() | 310 // Converts the callback result of calling Mojo CreateRoute()/JoinRoute() |
311 // into a local callback. | 311 // into a local callback. |
312 void RouteResponseReceived( | 312 void RouteResponseReceived( |
313 const std::string& presentation_id, | 313 const std::string& presentation_id, |
314 bool off_the_record, | 314 bool off_the_record, |
315 const std::vector<MediaRouteResponseCallback>& callbacks, | 315 const std::vector<MediaRouteResponseCallback>& callbacks, |
316 interfaces::MediaRoutePtr media_route, | 316 interfaces::MediaRoutePtr media_route, |
317 const mojo::String& error_text, | 317 mojo::String error_text, |
318 interfaces::RouteRequestResultCode result_code); | 318 interfaces::RouteRequestResultCode result_code); |
319 | 319 |
320 // Callback invoked by |event_page_tracker_| after an attempt to wake the | 320 // Callback invoked by |event_page_tracker_| after an attempt to wake the |
321 // component extension. If |success| is false, the pending request queue is | 321 // component extension. If |success| is false, the pending request queue is |
322 // drained. | 322 // drained. |
323 void EventPageWakeComplete(bool success); | 323 void EventPageWakeComplete(bool success); |
324 | 324 |
325 // Removes all requests from the pending requests queue. Called when there is | 325 // Removes all requests from the pending requests queue. Called when there is |
326 // a permanent error connecting to component extension. | 326 // a permanent error connecting to component extension. |
327 void DrainRequestQueue(); | 327 void DrainRequestQueue(); |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 #endif | 434 #endif |
435 | 435 |
436 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; | 436 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; |
437 | 437 |
438 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); | 438 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); |
439 }; | 439 }; |
440 | 440 |
441 } // namespace media_router | 441 } // namespace media_router |
442 | 442 |
443 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ | 443 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ |
OLD | NEW |