Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Side by Side Diff: media/mojo/services/mojo_media_application.h

Issue 1320453003: media: Support MojoMediaApplication in GPU process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing import Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/mojo/services/BUILD.gn ('k') | media/mojo/services/mojo_media_application.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "base/memory/ref_counted.h" 5 #include "base/memory/ref_counted.h"
6 #include "media/mojo/interfaces/service_factory.mojom.h" 6 #include "media/mojo/interfaces/service_factory.mojom.h"
7 #include "mojo/application/public/cpp/application_delegate.h" 7 #include "mojo/application/public/cpp/application_delegate.h"
8 #include "mojo/application/public/cpp/interface_factory_impl.h" 8 #include "mojo/application/public/cpp/interface_factory_impl.h"
9 #include "url/gurl.h" 9 #include "url/gurl.h"
10 10
11 namespace media { 11 namespace media {
12 12
13 class MediaLog; 13 class MediaLog;
14 14
15 class MojoMediaApplication 15 class MojoMediaApplication
16 : public mojo::ApplicationDelegate, 16 : public mojo::ApplicationDelegate,
17 public mojo::InterfaceFactory<interfaces::ServiceFactory> { 17 public mojo::InterfaceFactory<interfaces::ServiceFactory> {
18 public: 18 public:
19 static GURL AppUrl();
20 static scoped_ptr<mojo::ApplicationDelegate> CreateApp(); 19 static scoped_ptr<mojo::ApplicationDelegate> CreateApp();
21 20
22 MojoMediaApplication(); 21 MojoMediaApplication();
23 ~MojoMediaApplication() final; 22 ~MojoMediaApplication() final;
24 23
25 private: 24 private:
26 // mojo::ApplicationDelegate implementation. 25 // mojo::ApplicationDelegate implementation.
27 void Initialize(mojo::ApplicationImpl* app) final; 26 void Initialize(mojo::ApplicationImpl* app) final;
28 bool ConfigureIncomingConnection( 27 bool ConfigureIncomingConnection(
29 mojo::ApplicationConnection* connection) final; 28 mojo::ApplicationConnection* connection) final;
30 29
31 // mojo::InterfaceFactory<interfaces::ServiceFactory> implementation. 30 // mojo::InterfaceFactory<interfaces::ServiceFactory> implementation.
32 void Create(mojo::ApplicationConnection* connection, 31 void Create(mojo::ApplicationConnection* connection,
33 mojo::InterfaceRequest<interfaces::ServiceFactory> request) final; 32 mojo::InterfaceRequest<interfaces::ServiceFactory> request) final;
34 33
35 mojo::ApplicationImpl* app_impl_; 34 mojo::ApplicationImpl* app_impl_;
36 scoped_refptr<MediaLog> media_log_; 35 scoped_refptr<MediaLog> media_log_;
37 }; 36 };
38 37
39 } // namespace media 38 } // namespace media
OLDNEW
« no previous file with comments | « media/mojo/services/BUILD.gn ('k') | media/mojo/services/mojo_media_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698