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 CONTENT_RENDERER_MEDIA_MEDIA_INTERFACE_PROVIDER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_INTERFACE_PROVIDER_H_ |
6 #define CONTENT_RENDERER_MEDIA_MEDIA_INTERFACE_PROVIDER_H_ | 6 #define CONTENT_RENDERER_MEDIA_MEDIA_INTERFACE_PROVIDER_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/threading/thread_checker.h" | 10 #include "base/threading/thread_checker.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 explicit MediaInterfaceProvider( | 28 explicit MediaInterfaceProvider( |
29 const ConnectToApplicationCB& connect_to_app_cb); | 29 const ConnectToApplicationCB& connect_to_app_cb); |
30 ~MediaInterfaceProvider() final; | 30 ~MediaInterfaceProvider() final; |
31 | 31 |
32 // InterfaceProvider implementation. | 32 // InterfaceProvider implementation. |
33 void GetInterface(const mojo::String& interface_name, | 33 void GetInterface(const mojo::String& interface_name, |
34 mojo::ScopedMessagePipeHandle pipe) final; | 34 mojo::ScopedMessagePipeHandle pipe) final; |
35 | 35 |
36 private: | 36 private: |
37 media::interfaces::ServiceFactory* GetMediaServiceFactory(); | 37 media::mojom::ServiceFactory* GetMediaServiceFactory(); |
38 void OnConnectionError(); | 38 void OnConnectionError(); |
39 | 39 |
40 base::ThreadChecker thread_checker_; | 40 base::ThreadChecker thread_checker_; |
41 ConnectToApplicationCB connect_to_app_cb_; | 41 ConnectToApplicationCB connect_to_app_cb_; |
42 media::interfaces::ServiceFactoryPtr media_service_factory_; | 42 media::mojom::ServiceFactoryPtr media_service_factory_; |
43 | 43 |
44 DISALLOW_COPY_AND_ASSIGN(MediaInterfaceProvider); | 44 DISALLOW_COPY_AND_ASSIGN(MediaInterfaceProvider); |
45 }; | 45 }; |
46 | 46 |
47 } // namespace content | 47 } // namespace content |
48 | 48 |
49 #endif // CONTENT_RENDERER_MEDIA_MEDIA_INTERFACE_PROVIDER_H_ | 49 #endif // CONTENT_RENDERER_MEDIA_MEDIA_INTERFACE_PROVIDER_H_ |
OLD | NEW |