[SyncFS] Initialize SyncWorker when sync is enabled.
[chromium-blink-merge.git] / webkit / storage_browser.gyp
blob71ebcd98188fce76f54cccff99e8481b023ae6cc
1 # Copyright 2013 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   'variables': {
7     'chromium_code': 1,
8   },
9   'targets': [
10     {
11       # GN version: //webkit/browser:storage
12       'target_name': 'storage',
13       'type': '<(component)',
14       'variables': { 'enable_wexit_time_destructors': 1, },
15       'dependencies': [
16         '<(DEPTH)/base/base.gyp:base',
17         '<(DEPTH)/base/base.gyp:base_i18n',
18         '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
19         '<(DEPTH)/net/net.gyp:net',
20         '<(DEPTH)/sql/sql.gyp:sql',
21         '<(DEPTH)/third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
22         '<(DEPTH)/third_party/sqlite/sqlite.gyp:sqlite',
23         '<(DEPTH)/url/url.gyp:url_lib',
24         '<(DEPTH)/webkit/common/webkit_common.gyp:webkit_common',
25         '<(DEPTH)/webkit/storage_common.gyp:storage_common',
26       ],
27       'defines': ['STORAGE_BROWSER_IMPLEMENTATION'],
28       'sources': [
29         'browser/blob/blob_data_handle.cc',
30         'browser/blob/blob_data_handle.h',
31         'browser/blob/blob_storage_context.cc',
32         'browser/blob/blob_storage_context.h',
33         'browser/blob/blob_url_request_job.cc',
34         'browser/blob/blob_url_request_job.h',
35         'browser/blob/blob_url_request_job_factory.cc',
36         'browser/blob/blob_url_request_job_factory.h',
37         'browser/blob/file_stream_reader.cc',
38         'browser/blob/file_stream_reader.h',
39         'browser/blob/local_file_stream_reader.cc',
40         'browser/blob/local_file_stream_reader.h',
41         'browser/blob/view_blob_internals_job.cc',
42         'browser/blob/view_blob_internals_job.h',
43         'browser/database/database_quota_client.cc',
44         'browser/database/database_quota_client.h',
45         'browser/database/database_tracker.cc',
46         'browser/database/database_tracker.h',
47         'browser/database/database_util.cc',
48         'browser/database/database_util.h',
49         'browser/database/databases_table.cc',
50         'browser/database/databases_table.h',
51         'browser/database/vfs_backend.cc',
52         'browser/database/vfs_backend.h',
53         'browser/fileapi/async_file_util.h',
54         'browser/fileapi/async_file_util_adapter.cc',
55         'browser/fileapi/async_file_util_adapter.h',
56         'browser/fileapi/copy_or_move_file_validator.h',
57         'browser/fileapi/copy_or_move_operation_delegate.cc',
58         'browser/fileapi/copy_or_move_operation_delegate.h',
59         'browser/fileapi/dragged_file_util.cc',
60         'browser/fileapi/dragged_file_util.h',
61         'browser/fileapi/external_mount_points.cc',
62         'browser/fileapi/external_mount_points.h',
63         'browser/fileapi/file_observers.h',
64         'browser/fileapi/file_permission_policy.h',
65         'browser/fileapi/file_stream_writer.h',
66         'browser/fileapi/file_system_backend.h',
67         'browser/fileapi/file_system_context.cc',
68         'browser/fileapi/file_system_context.h',
69         'browser/fileapi/file_system_dir_url_request_job.cc',
70         'browser/fileapi/file_system_dir_url_request_job.h',
71         'browser/fileapi/file_system_file_stream_reader.cc',
72         'browser/fileapi/file_system_file_stream_reader.h',
73         'browser/fileapi/file_system_file_util.cc',
74         'browser/fileapi/file_system_file_util.h',
75         'browser/fileapi/file_system_operation.h',
76         'browser/fileapi/file_system_operation_context.cc',
77         'browser/fileapi/file_system_operation_context.h',
78         'browser/fileapi/file_system_operation_impl.cc',
79         'browser/fileapi/file_system_operation_impl.h',
80         'browser/fileapi/file_system_operation_runner.cc',
81         'browser/fileapi/file_system_operation_runner.h',
82         'browser/fileapi/file_system_options.cc',
83         'browser/fileapi/file_system_options.h',
84         'browser/fileapi/file_system_quota_client.cc',
85         'browser/fileapi/file_system_quota_client.h',
86         'browser/fileapi/file_system_quota_util.h',
87         'browser/fileapi/file_system_url.cc',
88         'browser/fileapi/file_system_url.h',
89         'browser/fileapi/file_system_url_request_job.cc',
90         'browser/fileapi/file_system_url_request_job.h',
91         'browser/fileapi/file_system_url_request_job_factory.cc',
92         'browser/fileapi/file_system_url_request_job_factory.h',
93         'browser/fileapi/file_system_usage_cache.cc',
94         'browser/fileapi/file_system_usage_cache.h',
95         'browser/fileapi/file_writer_delegate.cc',
96         'browser/fileapi/file_writer_delegate.h',
97         'browser/fileapi/isolated_context.cc',
98         'browser/fileapi/isolated_context.h',
99         'browser/fileapi/isolated_file_system_backend.cc',
100         'browser/fileapi/isolated_file_system_backend.h',
101         'browser/fileapi/local_file_stream_writer.cc',
102         'browser/fileapi/local_file_stream_writer.h',
103         'browser/fileapi/local_file_util.cc',
104         'browser/fileapi/local_file_util.h',
105         'browser/fileapi/mount_points.cc',
106         'browser/fileapi/mount_points.h',
107         'browser/fileapi/native_file_util.cc',
108         'browser/fileapi/native_file_util.h',
109         'browser/fileapi/obfuscated_file_util.cc',
110         'browser/fileapi/obfuscated_file_util.h',
111         'browser/fileapi/open_file_system_mode.h',
112         'browser/fileapi/plugin_private_file_system_backend.cc',
113         'browser/fileapi/plugin_private_file_system_backend.h',
114         'browser/fileapi/quota/open_file_handle.cc',
115         'browser/fileapi/quota/open_file_handle.h',
116         'browser/fileapi/quota/open_file_handle_context.cc',
117         'browser/fileapi/quota/open_file_handle_context.h',
118         'browser/fileapi/quota/quota_backend_impl.cc',
119         'browser/fileapi/quota/quota_backend_impl.h',
120         'browser/fileapi/quota/quota_reservation.cc',
121         'browser/fileapi/quota/quota_reservation.h',
122         'browser/fileapi/quota/quota_reservation_buffer.cc',
123         'browser/fileapi/quota/quota_reservation_buffer.h',
124         'browser/fileapi/quota/quota_reservation_manager.cc',
125         'browser/fileapi/quota/quota_reservation_manager.h',
126         'browser/fileapi/recursive_operation_delegate.cc',
127         'browser/fileapi/recursive_operation_delegate.h',
128         'browser/fileapi/remove_operation_delegate.cc',
129         'browser/fileapi/remove_operation_delegate.h',
130         'browser/fileapi/sandbox_directory_database.cc',
131         'browser/fileapi/sandbox_directory_database.h',
132         'browser/fileapi/sandbox_file_stream_writer.cc',
133         'browser/fileapi/sandbox_file_stream_writer.h',
134         'browser/fileapi/sandbox_file_system_backend.cc',
135         'browser/fileapi/sandbox_file_system_backend.h',
136         'browser/fileapi/sandbox_file_system_backend_delegate.cc',
137         'browser/fileapi/sandbox_file_system_backend_delegate.h',
138         'browser/fileapi/sandbox_isolated_origin_database.cc',
139         'browser/fileapi/sandbox_isolated_origin_database.h',
140         'browser/fileapi/sandbox_origin_database.cc',
141         'browser/fileapi/sandbox_origin_database.h',
142         'browser/fileapi/sandbox_origin_database_interface.cc',
143         'browser/fileapi/sandbox_origin_database_interface.h',
144         'browser/fileapi/sandbox_prioritized_origin_database.cc',
145         'browser/fileapi/sandbox_prioritized_origin_database.h',
146         'browser/fileapi/sandbox_quota_observer.cc',
147         'browser/fileapi/sandbox_quota_observer.h',
148         'browser/fileapi/task_runner_bound_observer_list.h',
149         'browser/fileapi/timed_task_helper.cc',
150         'browser/fileapi/timed_task_helper.h',
151         'browser/fileapi/transient_file_util.cc',
152         'browser/fileapi/transient_file_util.h',
153         'browser/quota/quota_callbacks.h',
154         'browser/quota/quota_client.h',
155         'browser/quota/quota_database.cc',
156         'browser/quota/quota_database.h',
157         'browser/quota/quota_manager.cc',
158         'browser/quota/quota_manager.h',
159         'browser/quota/quota_manager_proxy.cc',
160         'browser/quota/quota_manager_proxy.h',
161         'browser/quota/quota_task.cc',
162         'browser/quota/quota_task.h',
163         'browser/quota/quota_temporary_storage_evictor.cc',
164         'browser/quota/quota_temporary_storage_evictor.h',
165         'browser/quota/special_storage_policy.cc',
166         'browser/quota/special_storage_policy.h',
167         'browser/quota/storage_monitor.cc',
168         'browser/quota/storage_monitor.h',
169         'browser/quota/storage_observer.cc',
170         'browser/quota/storage_observer.h',
171         'browser/quota/usage_tracker.cc',
172         'browser/quota/usage_tracker.h',
173         'browser/storage_browser_export.h',
174       ],
175       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
176       'msvs_disabled_warnings': [ 4267, ],
178       'conditions': [
179         ['chrome_multiple_dll!=1', {
180           'dependencies': [
181             '<(DEPTH)/third_party/WebKit/public/blink.gyp:blink',
182           ],
183         }],
184       ],
185     },
186     {
187       # GN version: //webkit/browser:dump_file_system
188       'target_name': 'dump_file_system',
189       'type': 'executable',
190       'sources': [
191         'browser/fileapi/dump_file_system.cc',
192       ],
193       'dependencies': [
194         '<(DEPTH)/base/base.gyp:base',
195         '<(DEPTH)/webkit/storage_common.gyp:storage_common',
196         'storage',
197       ],
198     },
199   ],