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 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_ |
OLD | NEW |