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

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

Issue 1690213002: Reland "media: Refactor MojoMediaClient" with fix. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Created 4 years, 10 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/main.cc ('k') | media/mojo/services/mojo_media_application.h » ('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 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 MEDIA_MOJO_SERVICES_MOJO_CDM_SERVICE_CONTEXT_H_ 5 #ifndef MEDIA_MOJO_SERVICES_MOJO_CDM_SERVICE_CONTEXT_H_
6 #define MEDIA_MOJO_SERVICES_MOJO_CDM_SERVICE_CONTEXT_H_ 6 #define MEDIA_MOJO_SERVICES_MOJO_CDM_SERVICE_CONTEXT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "media/base/cdm_context.h" 14 #include "media/base/cdm_context.h"
15 #include "media/base/media_export.h"
16 15
17 namespace media { 16 namespace media {
18 17
19 class MojoCdmService; 18 class MojoCdmService;
20 19
21 // A class that creates, owns and manages all MojoCdmService instances. 20 // A class that creates, owns and manages all MojoCdmService instances.
22 class MojoCdmServiceContext : public CdmContextProvider { 21 class MojoCdmServiceContext : public CdmContextProvider {
23 public: 22 public:
24 MojoCdmServiceContext(); 23 MojoCdmServiceContext();
25 ~MojoCdmServiceContext() override; 24 ~MojoCdmServiceContext() override;
(...skipping 19 matching lines...) Expand all
45 44
46 // NOTE: Weak pointers must be invalidated before all other member variables. 45 // NOTE: Weak pointers must be invalidated before all other member variables.
47 base::WeakPtrFactory<MojoCdmServiceContext> weak_ptr_factory_; 46 base::WeakPtrFactory<MojoCdmServiceContext> weak_ptr_factory_;
48 47
49 DISALLOW_COPY_AND_ASSIGN(MojoCdmServiceContext); 48 DISALLOW_COPY_AND_ASSIGN(MojoCdmServiceContext);
50 }; 49 };
51 50
52 } // namespace media 51 } // namespace media
53 52
54 #endif // MEDIA_MOJO_SERVICES_MOJO_CDM_SERVICE_CONTEXT_H_ 53 #endif // MEDIA_MOJO_SERVICES_MOJO_CDM_SERVICE_CONTEXT_H_
OLDNEW
« no previous file with comments | « media/mojo/services/main.cc ('k') | media/mojo/services/mojo_media_application.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698