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

Side by Side Diff: content/gpu/gpu_process_control_impl.h

Issue 1837143002: media: Pass MediaPermission to MediaDrmBridge Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More plumbing Created 4 years, 7 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 | « content/gpu/gpu_child_thread.cc ('k') | content/gpu/gpu_process_control_impl.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 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 CONTENT_GPU_GPU_PROCESS_CONTROL_IMPL_H_ 5 #ifndef CONTENT_GPU_GPU_PROCESS_CONTROL_IMPL_H_
6 #define CONTENT_GPU_GPU_PROCESS_CONTROL_IMPL_H_ 6 #define CONTENT_GPU_GPU_PROCESS_CONTROL_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/child/process_control_impl.h" 9 #include "content/child/process_control_impl.h"
10 10
11 namespace media {
12 class MediaPermission;
13 }
14
11 namespace content { 15 namespace content {
12 16
13 // Customization of ProcessControlImpl for the GPU process. 17 // Customization of ProcessControlImpl for the GPU process.
14 class GpuProcessControlImpl : public ProcessControlImpl { 18 class GpuProcessControlImpl : public ProcessControlImpl {
15 public: 19 public:
16 GpuProcessControlImpl(); 20 // |media_permission| is guaranteed to be valid during the lifetime of |this|.
21 explicit GpuProcessControlImpl(media::MediaPermission* media_permission);
17 ~GpuProcessControlImpl() override; 22 ~GpuProcessControlImpl() override;
18 23
19 // ProcessControlImpl: 24 // ProcessControlImpl:
20 void RegisterApplicationFactories(ApplicationFactoryMap* factories) override; 25 void RegisterApplicationFactories(ApplicationFactoryMap* factories) override;
21 26
22 private: 27 private:
28 media::MediaPermission* media_permission_;
29
23 DISALLOW_COPY_AND_ASSIGN(GpuProcessControlImpl); 30 DISALLOW_COPY_AND_ASSIGN(GpuProcessControlImpl);
24 }; 31 };
25 32
26 } // namespace content 33 } // namespace content
27 34
28 #endif // CONTENT_GPU_GPU_PROCESS_CONTROL_IMPL_H_ 35 #endif // CONTENT_GPU_GPU_PROCESS_CONTROL_IMPL_H_
OLDNEW
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | content/gpu/gpu_process_control_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698