Prevent UAF of RenderFrames from GuestViewContainer
[chromium-blink-merge.git] / media / blink / media_blink.gyp
blob71751fee9418cd929c2fe396ce0f0b6cefd2634f
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
3 # found in the LICENSE file.
6   'targets': [
7     {
8       # GN version: //media/blink
9       'target_name': 'media_blink',
10       'type': '<(component)',
11       'dependencies': [
12         '../../base/base.gyp:base',
13         '../../cc/cc.gyp:cc',
14         '../../cc/blink/cc_blink.gyp:cc_blink',
15         '../../gpu/blink/gpu_blink.gyp:gpu_blink',
16         '../../ui/gfx/gfx.gyp:gfx_geometry',
17         '../../net/net.gyp:net',
18         '../../third_party/WebKit/public/blink.gyp:blink',
19         '../media.gyp:media',
20         '../media.gyp:shared_memory_support',
21         '../../url/url.gyp:url_lib',
22       ],
23       'defines': [
24         'MEDIA_IMPLEMENTATION',
25       ],
26       # This sources list is duplicated in //media/blink/BUILD.gn
27       'sources': [
28         'active_loader.cc',
29         'active_loader.h',
30         'buffered_data_source.cc',
31         'buffered_data_source.h',
32         'buffered_data_source_host_impl.cc',
33         'buffered_data_source_host_impl.h',
34         'buffered_resource_loader.cc',
35         'buffered_resource_loader.h',
36         'cache_util.cc',
37         'cache_util.h',
38         'cdm_result_promise.h',
39         'cdm_result_promise_helper.cc',
40         'cdm_result_promise_helper.h',
41         'cdm_session_adapter.cc',
42         'cdm_session_adapter.h',
43         'encrypted_media_player_support.cc',
44         'encrypted_media_player_support.h',
45         'new_session_cdm_result_promise.cc',
46         'new_session_cdm_result_promise.h',
47         'texttrack_impl.cc',
48         'texttrack_impl.h',
49         'video_frame_compositor.cc',
50         'video_frame_compositor.h',
51         'webaudiosourceprovider_impl.cc',
52         'webaudiosourceprovider_impl.h',
53         'webcontentdecryptionmodule_impl.cc',
54         'webcontentdecryptionmodule_impl.h',
55         'webcontentdecryptionmoduleaccess_impl.cc',
56         'webcontentdecryptionmoduleaccess_impl.h',
57         'webcontentdecryptionmodulesession_impl.cc',
58         'webcontentdecryptionmodulesession_impl.h',
59         "webencryptedmediaclient_impl.cc",
60         "webencryptedmediaclient_impl.h",
61         'webinbandtexttrack_impl.cc',
62         'webinbandtexttrack_impl.h',
63         'webmediaplayer_delegate.h',
64         'webmediaplayer_impl.cc',
65         'webmediaplayer_impl.h',
66         'webmediaplayer_params.cc',
67         'webmediaplayer_params.h',
68         'webmediaplayer_util.cc',
69         'webmediaplayer_util.h',
70         'webmediasource_impl.cc',
71         'webmediasource_impl.h',
72         'websourcebuffer_impl.cc',
73         'websourcebuffer_impl.h',
74       ],
75       'conditions': [
76         ['OS=="android"', {
77           'sources!': [
78             'encrypted_media_player_support.cc',
79             'encrypted_media_player_support.h',
80             'webmediaplayer_impl.cc',
81             'webmediaplayer_impl.h',
82           ],
83         }],
84       ],
85     },
86     {
87       'target_name': 'media_blink_unittests',
88       'type': '<(gtest_target_type)',
89       'dependencies': [
90         'media_blink',
91         '../media.gyp:media',
92         '../media.gyp:media_test_support',
93         '../../base/base.gyp:base',
94         '../../base/base.gyp:test_support_base',
95         '../../cc/cc.gyp:cc',
96         '../../cc/blink/cc_blink.gyp:cc_blink',
97         '../../net/net.gyp:net',
98         '../../testing/gmock.gyp:gmock',
99         '../../testing/gtest.gyp:gtest',
100         '../../third_party/WebKit/public/blink.gyp:blink',
101         '../../ui/gfx/gfx.gyp:gfx',
102         '../../ui/gfx/gfx.gyp:gfx_geometry',
103         '../../ui/gfx/gfx.gyp:gfx_test_support',
104         '../../url/url.gyp:url_lib',
105       ],
106       'sources': [
107         'buffered_data_source_host_impl_unittest.cc',
108         'buffered_data_source_unittest.cc',
109         'buffered_resource_loader_unittest.cc',
110         'cache_util_unittest.cc',
111         'mock_webframeclient.h',
112         'mock_weburlloader.cc',
113         'mock_weburlloader.h',
114         'run_all_unittests.cc',
115         'test_response_generator.cc',
116         'test_response_generator.h',
117         'video_frame_compositor_unittest.cc',
118         'webaudiosourceprovider_impl_unittest.cc',
119       ],
120     },
121   ]