Index: webkit/browser/BUILD.gn |
diff --git a/webkit/browser/BUILD.gn b/webkit/browser/BUILD.gn |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0760d0e20694ea59e08aaa1c4bff61658c0a752d |
--- /dev/null |
+++ b/webkit/browser/BUILD.gn |
@@ -0,0 +1,236 @@ |
+# Copyright 2014 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+config("storage_config") { |
+ if (is_android) { |
+ defines = [ "APPCACHE_USE_SIMPLE_CACHE" ] |
+ } |
+} |
+ |
+component("storage") { |
+ output_name = "webkit_storage_browser" |
+ sources = [ |
+ "webkit_storage_browser_export.h", |
+ "appcache/appcache.cc", |
+ "appcache/appcache.h", |
+ "appcache/appcache_backend_impl.cc", |
+ "appcache/appcache_backend_impl.h", |
+ "appcache/appcache_database.cc", |
+ "appcache/appcache_database.h", |
+ "appcache/appcache_disk_cache.cc", |
+ "appcache/appcache_disk_cache.h", |
+ "appcache/appcache_entry.h", |
+ "appcache/appcache_executable_handler.h", |
+ "appcache/appcache_group.cc", |
+ "appcache/appcache_group.h", |
+ "appcache/appcache_histograms.cc", |
+ "appcache/appcache_histograms.h", |
+ "appcache/appcache_host.cc", |
+ "appcache/appcache_host.h", |
+ "appcache/appcache_policy.h", |
+ "appcache/appcache_quota_client.cc", |
+ "appcache/appcache_quota_client.h", |
+ "appcache/appcache_request_handler.cc", |
+ "appcache/appcache_request_handler.h", |
+ "appcache/appcache_response.cc", |
+ "appcache/appcache_response.h", |
+ "appcache/appcache_service.cc", |
+ "appcache/appcache_service.h", |
+ "appcache/appcache_storage.cc", |
+ "appcache/appcache_storage.h", |
+ "appcache/appcache_storage_impl.cc", |
+ "appcache/appcache_storage_impl.h", |
+ "appcache/appcache_working_set.cc", |
+ "appcache/appcache_working_set.h", |
+ "appcache/appcache_update_job.cc", |
+ "appcache/appcache_update_job.h", |
+ "appcache/appcache_url_request_job.cc", |
+ "appcache/appcache_url_request_job.h", |
+ "appcache/manifest_parser.cc", |
+ "appcache/manifest_parser.h", |
+ "blob/blob_data_handle.cc", |
+ "blob/blob_data_handle.h", |
+ "blob/blob_storage_context.cc", |
+ "blob/blob_storage_context.h", |
+ "blob/blob_url_request_job.cc", |
+ "blob/blob_url_request_job.h", |
+ "blob/blob_url_request_job_factory.cc", |
+ "blob/blob_url_request_job_factory.h", |
+ "blob/file_stream_reader.cc", |
+ "blob/file_stream_reader.h", |
+ "blob/local_file_stream_reader.cc", |
+ "blob/local_file_stream_reader.h", |
+ "blob/view_blob_internals_job.cc", |
+ "blob/view_blob_internals_job.h", |
+ "database/database_quota_client.cc", |
+ "database/database_quota_client.h", |
+ "database/database_tracker.cc", |
+ "database/database_tracker.h", |
+ "database/database_util.cc", |
+ "database/database_util.h", |
+ "database/databases_table.cc", |
+ "database/databases_table.h", |
+ "database/vfs_backend.cc", |
+ "database/vfs_backend.h", |
+ "fileapi/async_file_util.h", |
+ "fileapi/async_file_util_adapter.cc", |
+ "fileapi/async_file_util_adapter.h", |
+ "fileapi/copy_or_move_file_validator.h", |
+ "fileapi/copy_or_move_operation_delegate.cc", |
+ "fileapi/copy_or_move_operation_delegate.h", |
+ "fileapi/dragged_file_util.cc", |
+ "fileapi/dragged_file_util.h", |
+ "fileapi/external_mount_points.cc", |
+ "fileapi/external_mount_points.h", |
+ "fileapi/file_observers.h", |
+ "fileapi/file_permission_policy.h", |
+ "fileapi/file_stream_writer.h", |
+ "fileapi/file_system_backend.h", |
+ "fileapi/file_system_context.cc", |
+ "fileapi/file_system_context.h", |
+ "fileapi/file_system_dir_url_request_job.cc", |
+ "fileapi/file_system_dir_url_request_job.h", |
+ "fileapi/file_system_file_stream_reader.cc", |
+ "fileapi/file_system_file_stream_reader.h", |
+ "fileapi/file_system_file_util.cc", |
+ "fileapi/file_system_file_util.h", |
+ "fileapi/file_system_operation.h", |
+ "fileapi/file_system_operation_context.cc", |
+ "fileapi/file_system_operation_context.h", |
+ "fileapi/file_system_operation_impl.cc", |
+ "fileapi/file_system_operation_impl.h", |
+ "fileapi/file_system_operation_runner.cc", |
+ "fileapi/file_system_operation_runner.h", |
+ "fileapi/file_system_options.cc", |
+ "fileapi/file_system_options.h", |
+ "fileapi/file_system_quota_client.cc", |
+ "fileapi/file_system_quota_client.h", |
+ "fileapi/file_system_quota_util.h", |
+ "fileapi/file_system_url.cc", |
+ "fileapi/file_system_url.h", |
+ "fileapi/file_system_url_request_job.cc", |
+ "fileapi/file_system_url_request_job.h", |
+ "fileapi/file_system_url_request_job_factory.cc", |
+ "fileapi/file_system_url_request_job_factory.h", |
+ "fileapi/file_system_usage_cache.cc", |
+ "fileapi/file_system_usage_cache.h", |
+ "fileapi/file_writer_delegate.cc", |
+ "fileapi/file_writer_delegate.h", |
+ "fileapi/isolated_context.cc", |
+ "fileapi/isolated_context.h", |
+ "fileapi/isolated_file_system_backend.cc", |
+ "fileapi/isolated_file_system_backend.h", |
+ "fileapi/local_file_stream_writer.cc", |
+ "fileapi/local_file_stream_writer.h", |
+ "fileapi/local_file_util.cc", |
+ "fileapi/local_file_util.h", |
+ "fileapi/mount_points.cc", |
+ "fileapi/mount_points.h", |
+ "fileapi/native_file_util.cc", |
+ "fileapi/native_file_util.h", |
+ "fileapi/obfuscated_file_util.cc", |
+ "fileapi/obfuscated_file_util.h", |
+ "fileapi/open_file_system_mode.h", |
+ "fileapi/plugin_private_file_system_backend.cc", |
+ "fileapi/plugin_private_file_system_backend.h", |
+ "fileapi/quota/open_file_handle.cc", |
+ "fileapi/quota/open_file_handle.h", |
+ "fileapi/quota/open_file_handle_context.cc", |
+ "fileapi/quota/open_file_handle_context.h", |
+ "fileapi/quota/quota_backend_impl.cc", |
+ "fileapi/quota/quota_backend_impl.h", |
+ "fileapi/quota/quota_reservation.cc", |
+ "fileapi/quota/quota_reservation.h", |
+ "fileapi/quota/quota_reservation_buffer.cc", |
+ "fileapi/quota/quota_reservation_buffer.h", |
+ "fileapi/quota/quota_reservation_manager.cc", |
+ "fileapi/quota/quota_reservation_manager.h", |
+ "fileapi/recursive_operation_delegate.cc", |
+ "fileapi/recursive_operation_delegate.h", |
+ "fileapi/remove_operation_delegate.cc", |
+ "fileapi/remove_operation_delegate.h", |
+ "fileapi/sandbox_directory_database.cc", |
+ "fileapi/sandbox_directory_database.h", |
+ "fileapi/sandbox_file_stream_writer.cc", |
+ "fileapi/sandbox_file_stream_writer.h", |
+ "fileapi/sandbox_file_system_backend.cc", |
+ "fileapi/sandbox_file_system_backend.h", |
+ "fileapi/sandbox_file_system_backend_delegate.cc", |
+ "fileapi/sandbox_file_system_backend_delegate.h", |
+ "fileapi/sandbox_isolated_origin_database.cc", |
+ "fileapi/sandbox_isolated_origin_database.h", |
+ "fileapi/sandbox_origin_database.cc", |
+ "fileapi/sandbox_origin_database.h", |
+ "fileapi/sandbox_origin_database_interface.cc", |
+ "fileapi/sandbox_origin_database_interface.h", |
+ "fileapi/sandbox_prioritized_origin_database.cc", |
+ "fileapi/sandbox_prioritized_origin_database.h", |
+ "fileapi/sandbox_quota_observer.cc", |
+ "fileapi/sandbox_quota_observer.h", |
+ "fileapi/task_runner_bound_observer_list.h", |
+ "fileapi/timed_task_helper.cc", |
+ "fileapi/timed_task_helper.h", |
+ "fileapi/transient_file_util.cc", |
+ "fileapi/transient_file_util.h", |
+ "quota/quota_callbacks.h", |
+ "quota/quota_client.h", |
+ "quota/quota_database.cc", |
+ "quota/quota_database.h", |
+ "quota/quota_manager.cc", |
+ "quota/quota_manager.h", |
+ "quota/quota_manager_proxy.cc", |
+ "quota/quota_manager_proxy.h", |
+ "quota/quota_task.cc", |
+ "quota/quota_task.h", |
+ "quota/quota_temporary_storage_evictor.cc", |
+ "quota/quota_temporary_storage_evictor.h", |
+ "quota/special_storage_policy.cc", |
+ "quota/special_storage_policy.h", |
+ "quota/storage_monitor.cc", |
+ "quota/storage_monitor.h", |
+ "quota/storage_observer.cc", |
+ "quota/storage_observer.h", |
+ "quota/usage_tracker.cc", |
+ "quota/usage_tracker.h", |
+ ] |
+ |
+ defines = [ "WEBKIT_STORAGE_BROWSER_IMPLEMENTATION" ] |
+ configs += [ "//build/config/compiler:wexit_time_destructors" ] |
+ direct_dependent_configs = [ ":storage_config" ] |
+ if (is_win) { |
+ cflags = [ "/wd4267" ] # TODO(jschuh): fix size_t to int truncations. |
+ } |
+ |
+ deps = [ |
+ "//base", |
+ "//base:i18n", |
+ "//base/third_party/dynamic_annotations", |
+ "//net", |
+ "//sql", |
+ "//third_party/leveldatabase", |
+ "//third_party/sqlite", |
+ "//url", |
+ "//webkit/common", |
+ "//webkit/common:storage", |
+ ] |
+ |
+ # TODO(GYP) support chrome_multiple_dll |
+ #['chrome_multiple_dll!=1', { |
+ # 'dependencies': [ |
+ # '<(DEPTH)/third_party/WebKit/public/blink.gyp:blink', |
+ # ], |
+ #}], |
+} |
+ |
+executable("dump_file_system") { |
+ sources = [ |
+ "fileapi/dump_file_system.cc", |
+ ] |
+ |
+ deps = [ |
+ ":storage", |
+ "//base", |
+ "//webkit/common:storage", |
+ ] |
+} |