diff options
author | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-20 05:42:52 +0000 |
---|---|---|
committer | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-20 05:42:52 +0000 |
commit | c4298d02f5751080975041191f4780f99a83e0b9 (patch) | |
tree | 3f44a2d0b0e46547c8306e60c17f04f445e193ed /webkit | |
parent | b18649f477cf8dc675deaa8bd6d298b5633aaaea (diff) | |
download | chromium_src-c4298d02f5751080975041191f4780f99a83e0b9.zip chromium_src-c4298d02f5751080975041191f4780f99a83e0b9.tar.gz chromium_src-c4298d02f5751080975041191f4780f99a83e0b9.tar.bz2 |
Move webkit/fileapi/file_system_mount_point_provider.h to webkit/browser/fileapi
This one also:
- Adds webkit/browser dependency to chrome/browser/DEPS (with TODO)
- Adds webkit/browser/webkit_browser.gypi which only defines new source list
for now (will make build target changes later)
More bulk file moving is coming later
BUG=239710
R=jamesr@chromium.org, michaeln@chromium.org, thestig@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=200828
Review URL: https://codereview.chromium.org/14895013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201034 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
23 files changed, 56 insertions, 22 deletions
diff --git a/webkit/fileapi/file_system_mount_point_provider.h b/webkit/browser/fileapi/file_system_mount_point_provider.h index 35ca09c..d8aff2b 100644 --- a/webkit/fileapi/file_system_mount_point_provider.h +++ b/webkit/browser/fileapi/file_system_mount_point_provider.h @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef WEBKIT_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_ -#define WEBKIT_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_ +#ifndef WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_ +#define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_ #include <string> #include <vector> @@ -174,4 +174,4 @@ class ExternalFileSystemMountPointProvider } // namespace fileapi -#endif // WEBKIT_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_ +#endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_MOUNT_POINT_PROVIDER_H_ diff --git a/webkit/fileapi/file_system_mount_point_provider_unittest.cc b/webkit/browser/fileapi/file_system_mount_point_provider_unittest.cc index 516cdb4..3995545 100644 --- a/webkit/fileapi/file_system_mount_point_provider_unittest.cc +++ b/webkit/browser/fileapi/file_system_mount_point_provider_unittest.cc @@ -102,7 +102,8 @@ const struct CheckValidPathTest { }; // For External filesystem. -const base::FilePath::CharType kMountPoint[] = FILE_PATH_LITERAL("/tmp/testing"); +const base::FilePath::CharType kMountPoint[] = + FILE_PATH_LITERAL("/tmp/testing"); const base::FilePath::CharType kRootPath[] = FILE_PATH_LITERAL("/tmp"); const base::FilePath::CharType kVirtualPath[] = FILE_PATH_LITERAL("testing"); diff --git a/webkit/browser/fileapi/webkit_browser_fileapi.gypi b/webkit/browser/fileapi/webkit_browser_fileapi.gypi new file mode 100644 index 0000000..714257f --- /dev/null +++ b/webkit/browser/fileapi/webkit_browser_fileapi.gypi @@ -0,0 +1,11 @@ +# Copyright 2013 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. + +{ + 'variables': { + 'webkit_browser_fileapi_sources': [ + '../browser/fileapi/file_system_mount_point_provider.h', + ], + }, +} diff --git a/webkit/browser/webkit_browser.gypi b/webkit/browser/webkit_browser.gypi new file mode 100644 index 0000000..3bd1e90 --- /dev/null +++ b/webkit/browser/webkit_browser.gypi @@ -0,0 +1,16 @@ +# Copyright 2013 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. + +{ + 'includes': [ + '../browser/fileapi/webkit_browser_fileapi.gypi', + ], + # TODO(kinuko): Have webkit_browser target and deprecate old gypis like + # webkit_storage.gypi. + 'variables': { + 'webkit_browser_storage_sources': [ + '<@(webkit_browser_fileapi_sources)', + ], + }, +} diff --git a/webkit/chromeos/fileapi/cros_mount_point_provider.h b/webkit/chromeos/fileapi/cros_mount_point_provider.h index 698825a..376669c 100644 --- a/webkit/chromeos/fileapi/cros_mount_point_provider.h +++ b/webkit/chromeos/fileapi/cros_mount_point_provider.h @@ -13,7 +13,7 @@ #include "base/files/file_path.h" #include "base/memory/scoped_ptr.h" #include "base/synchronization/lock.h" -#include "webkit/fileapi/file_system_mount_point_provider.h" +#include "webkit/browser/fileapi/file_system_mount_point_provider.h" #include "webkit/fileapi/file_system_types.h" #include "webkit/quota/special_storage_policy.h" #include "webkit/storage/webkit_storage_export.h" diff --git a/webkit/fileapi/async_file_test_helper.cc b/webkit/fileapi/async_file_test_helper.cc index 4aaf87a..0870370 100644 --- a/webkit/fileapi/async_file_test_helper.cc +++ b/webkit/fileapi/async_file_test_helper.cc @@ -5,9 +5,9 @@ #include "base/bind.h" #include "base/run_loop.h" #include "testing/gtest/include/gtest/gtest.h" +#include "webkit/browser/fileapi/file_system_mount_point_provider.h" #include "webkit/fileapi/async_file_test_helper.h" #include "webkit/fileapi/file_system_context.h" -#include "webkit/fileapi/file_system_mount_point_provider.h" #include "webkit/fileapi/file_system_url.h" #include "webkit/fileapi/file_system_util.h" #include "webkit/quota/quota_manager.h" diff --git a/webkit/fileapi/copy_or_move_file_validator_unittest.cc b/webkit/fileapi/copy_or_move_file_validator_unittest.cc index a8e8315..b334136 100644 --- a/webkit/fileapi/copy_or_move_file_validator_unittest.cc +++ b/webkit/fileapi/copy_or_move_file_validator_unittest.cc @@ -8,11 +8,11 @@ #include "base/files/scoped_temp_dir.h" #include "base/message_loop.h" #include "testing/gtest/include/gtest/gtest.h" +#include "webkit/browser/fileapi/file_system_mount_point_provider.h" #include "webkit/fileapi/async_file_test_helper.h" #include "webkit/fileapi/copy_or_move_file_validator.h" #include "webkit/fileapi/external_mount_points.h" #include "webkit/fileapi/file_system_context.h" -#include "webkit/fileapi/file_system_mount_point_provider.h" #include "webkit/fileapi/file_system_url.h" #include "webkit/fileapi/file_system_util.h" #include "webkit/fileapi/isolated_context.h" diff --git a/webkit/fileapi/file_system_context_unittest.cc b/webkit/fileapi/file_system_context_unittest.cc index 407bf83..06a638f 100644 --- a/webkit/fileapi/file_system_context_unittest.cc +++ b/webkit/fileapi/file_system_context_unittest.cc @@ -8,8 +8,8 @@ #include "base/message_loop.h" #include "base/stringprintf.h" #include "testing/gtest/include/gtest/gtest.h" +#include "webkit/browser/fileapi/file_system_mount_point_provider.h" #include "webkit/fileapi/external_mount_points.h" -#include "webkit/fileapi/file_system_mount_point_provider.h" #include "webkit/fileapi/file_system_task_runners.h" #include "webkit/fileapi/isolated_context.h" #include "webkit/fileapi/mock_file_system_options.h" diff --git a/webkit/fileapi/isolated_mount_point_provider.h b/webkit/fileapi/isolated_mount_point_provider.h index bc8ce6d..75258d9 100644 --- a/webkit/fileapi/isolated_mount_point_provider.h +++ b/webkit/fileapi/isolated_mount_point_provider.h @@ -6,7 +6,7 @@ #define WEBKIT_FILEAPI_ISOLATED_MOUNT_POINT_PROVIDER_H_ #include "base/memory/scoped_ptr.h" -#include "webkit/fileapi/file_system_mount_point_provider.h" +#include "webkit/browser/fileapi/file_system_mount_point_provider.h" namespace fileapi { diff --git a/webkit/fileapi/local_file_system_cross_operation_unittest.cc b/webkit/fileapi/local_file_system_cross_operation_unittest.cc index a4f6887..487a16f 100644 --- a/webkit/fileapi/local_file_system_cross_operation_unittest.cc +++ b/webkit/fileapi/local_file_system_cross_operation_unittest.cc @@ -12,9 +12,9 @@ #include "base/run_loop.h" #include "base/stl_util.h" #include "testing/gtest/include/gtest/gtest.h" +#include "webkit/browser/fileapi/file_system_mount_point_provider.h" #include "webkit/fileapi/async_file_test_helper.h" #include "webkit/fileapi/file_system_context.h" -#include "webkit/fileapi/file_system_mount_point_provider.h" #include "webkit/fileapi/file_system_operation.h" #include "webkit/fileapi/file_system_url.h" #include "webkit/fileapi/file_system_util.h" diff --git a/webkit/fileapi/local_file_system_operation.cc b/webkit/fileapi/local_file_system_operation.cc index d4d54c5..36828a6 100644 --- a/webkit/fileapi/local_file_system_operation.cc +++ b/webkit/fileapi/local_file_system_operation.cc @@ -11,12 +11,12 @@ #include "net/base/escape.h" #include "net/url_request/url_request_context.h" #include "webkit/blob/shareable_file_reference.h" +#include "webkit/browser/fileapi/file_system_mount_point_provider.h" #include "webkit/fileapi/async_file_util.h" #include "webkit/fileapi/cross_operation_delegate.h" #include "webkit/fileapi/file_observers.h" #include "webkit/fileapi/file_system_context.h" #include "webkit/fileapi/file_system_file_util.h" -#include "webkit/fileapi/file_system_mount_point_provider.h" #include "webkit/fileapi/file_system_operation_context.h" #include "webkit/fileapi/file_system_task_runners.h" #include "webkit/fileapi/file_system_types.h" diff --git a/webkit/fileapi/local_file_system_operation_unittest.cc b/webkit/fileapi/local_file_system_operation_unittest.cc index a6a5654..8475082 100644 --- a/webkit/fileapi/local_file_system_operation_unittest.cc +++ b/webkit/fileapi/local_file_system_operation_unittest.cc @@ -15,10 +15,10 @@ #include "googleurl/src/gurl.h" #include "testing/gtest/include/gtest/gtest.h" #include "webkit/blob/shareable_file_reference.h" +#include "webkit/browser/fileapi/file_system_mount_point_provider.h" #include "webkit/fileapi/async_file_test_helper.h" #include "webkit/fileapi/file_system_context.h" #include "webkit/fileapi/file_system_file_util.h" -#include "webkit/fileapi/file_system_mount_point_provider.h" #include "webkit/fileapi/file_system_operation_context.h" #include "webkit/fileapi/file_system_quota_util.h" #include "webkit/fileapi/file_system_util.h" diff --git a/webkit/fileapi/local_file_util.cc b/webkit/fileapi/local_file_util.cc index d08cc49..7a91b59 100644 --- a/webkit/fileapi/local_file_util.cc +++ b/webkit/fileapi/local_file_util.cc @@ -7,8 +7,8 @@ #include "base/file_util.h" #include "base/files/file_util_proxy.h" #include "googleurl/src/gurl.h" +#include "webkit/browser/fileapi/file_system_mount_point_provider.h" #include "webkit/fileapi/file_system_context.h" -#include "webkit/fileapi/file_system_mount_point_provider.h" #include "webkit/fileapi/file_system_operation_context.h" #include "webkit/fileapi/file_system_types.h" #include "webkit/fileapi/file_system_url.h" diff --git a/webkit/fileapi/mock_file_system_context.cc b/webkit/fileapi/mock_file_system_context.cc index 669d431..39f9016 100644 --- a/webkit/fileapi/mock_file_system_context.cc +++ b/webkit/fileapi/mock_file_system_context.cc @@ -5,9 +5,9 @@ #include "webkit/fileapi/mock_file_system_context.h" #include "base/memory/scoped_vector.h" +#include "webkit/browser/fileapi/file_system_mount_point_provider.h" #include "webkit/fileapi/external_mount_points.h" #include "webkit/fileapi/file_system_context.h" -#include "webkit/fileapi/file_system_mount_point_provider.h" #include "webkit/fileapi/file_system_task_runners.h" #include "webkit/fileapi/mock_file_system_options.h" #include "webkit/fileapi/test_mount_point_provider.h" diff --git a/webkit/fileapi/obfuscated_file_util_unittest.cc b/webkit/fileapi/obfuscated_file_util_unittest.cc index de5cd50..e492bb5 100644 --- a/webkit/fileapi/obfuscated_file_util_unittest.cc +++ b/webkit/fileapi/obfuscated_file_util_unittest.cc @@ -14,10 +14,10 @@ #include "base/message_loop.h" #include "base/platform_file.h" #include "testing/gtest/include/gtest/gtest.h" +#include "webkit/browser/fileapi/file_system_mount_point_provider.h" #include "webkit/fileapi/async_file_test_helper.h" #include "webkit/fileapi/external_mount_points.h" #include "webkit/fileapi/file_system_context.h" -#include "webkit/fileapi/file_system_mount_point_provider.h" #include "webkit/fileapi/file_system_operation_context.h" #include "webkit/fileapi/file_system_task_runners.h" #include "webkit/fileapi/file_system_usage_cache.h" diff --git a/webkit/fileapi/sandbox_mount_point_provider.h b/webkit/fileapi/sandbox_mount_point_provider.h index 4920c9b..91d1938 100644 --- a/webkit/fileapi/sandbox_mount_point_provider.h +++ b/webkit/fileapi/sandbox_mount_point_provider.h @@ -15,7 +15,7 @@ #include "base/memory/scoped_ptr.h" #include "base/memory/weak_ptr.h" #include "googleurl/src/gurl.h" -#include "webkit/fileapi/file_system_mount_point_provider.h" +#include "webkit/browser/fileapi/file_system_mount_point_provider.h" #include "webkit/fileapi/file_system_options.h" #include "webkit/fileapi/file_system_quota_util.h" #include "webkit/fileapi/task_runner_bound_observer_list.h" diff --git a/webkit/fileapi/sandbox_mount_point_provider_unittest.cc b/webkit/fileapi/sandbox_mount_point_provider_unittest.cc index 629eece..cca5cda 100644 --- a/webkit/fileapi/sandbox_mount_point_provider_unittest.cc +++ b/webkit/fileapi/sandbox_mount_point_provider_unittest.cc @@ -14,7 +14,7 @@ #include "base/message_loop_proxy.h" #include "googleurl/src/gurl.h" #include "testing/gtest/include/gtest/gtest.h" -#include "webkit/fileapi/file_system_mount_point_provider.h" +#include "webkit/browser/fileapi/file_system_mount_point_provider.h" #include "webkit/fileapi/file_system_url.h" #include "webkit/fileapi/file_system_util.h" #include "webkit/fileapi/mock_file_system_options.h" diff --git a/webkit/fileapi/syncable/canned_syncable_file_system.cc b/webkit/fileapi/syncable/canned_syncable_file_system.cc index 32c50c7..1182f26 100644 --- a/webkit/fileapi/syncable/canned_syncable_file_system.cc +++ b/webkit/fileapi/syncable/canned_syncable_file_system.cc @@ -13,9 +13,9 @@ #include "base/task_runner_util.h" #include "testing/gtest/include/gtest/gtest.h" #include "webkit/blob/mock_blob_url_request_context.h" +#include "webkit/browser/fileapi/file_system_mount_point_provider.h" #include "webkit/fileapi/external_mount_points.h" #include "webkit/fileapi/file_system_context.h" -#include "webkit/fileapi/file_system_mount_point_provider.h" #include "webkit/fileapi/file_system_operation_context.h" #include "webkit/fileapi/file_system_task_runners.h" #include "webkit/fileapi/local_file_system_operation.h" diff --git a/webkit/fileapi/test_mount_point_provider.h b/webkit/fileapi/test_mount_point_provider.h index 8a71b77..1fcbd7d 100644 --- a/webkit/fileapi/test_mount_point_provider.h +++ b/webkit/fileapi/test_mount_point_provider.h @@ -8,8 +8,8 @@ #include "base/files/file_path.h" #include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" +#include "webkit/browser/fileapi/file_system_mount_point_provider.h" #include "webkit/fileapi/async_file_util_adapter.h" -#include "webkit/fileapi/file_system_mount_point_provider.h" #include "webkit/fileapi/task_runner_bound_observer_list.h" #include "webkit/storage/webkit_storage_export.h" diff --git a/webkit/fileapi/upload_file_system_file_element_reader_unittest.cc b/webkit/fileapi/upload_file_system_file_element_reader_unittest.cc index ddf78a1..894f1ce 100644 --- a/webkit/fileapi/upload_file_system_file_element_reader_unittest.cc +++ b/webkit/fileapi/upload_file_system_file_element_reader_unittest.cc @@ -9,9 +9,9 @@ #include "net/base/io_buffer.h" #include "net/base/test_completion_callback.h" #include "testing/gtest/include/gtest/gtest.h" +#include "webkit/browser/fileapi/file_system_mount_point_provider.h" #include "webkit/fileapi/file_system_context.h" #include "webkit/fileapi/file_system_file_util.h" -#include "webkit/fileapi/file_system_mount_point_provider.h" #include "webkit/fileapi/file_system_operation_context.h" #include "webkit/fileapi/file_system_url.h" #include "webkit/fileapi/mock_file_system_context.h" diff --git a/webkit/fileapi/webkit_fileapi.gypi b/webkit/fileapi/webkit_fileapi.gypi index b5ce980..8f1a637 100644 --- a/webkit/fileapi/webkit_fileapi.gypi +++ b/webkit/fileapi/webkit_fileapi.gypi @@ -26,7 +26,6 @@ '../fileapi/file_system_file_stream_reader.h', '../fileapi/file_system_file_util.cc', '../fileapi/file_system_file_util.h', - '../fileapi/file_system_mount_point_provider.h', '../fileapi/file_system_operation.h', '../fileapi/file_system_operation_context.cc', '../fileapi/file_system_operation_context.h', diff --git a/webkit/storage/webkit_storage.gypi b/webkit/storage/webkit_storage.gypi index a84192c..bcc6b97 100644 --- a/webkit/storage/webkit_storage.gypi +++ b/webkit/storage/webkit_storage.gypi @@ -10,6 +10,10 @@ '../dom_storage/webkit_dom_storage.gypi', '../fileapi/webkit_fileapi.gypi', '../quota/webkit_quota.gypi', + + # TODO(kinuko): Deprecate this when we have a new target for + # webkit_browser. crbug.com/239710 + '../browser/webkit_browser.gypi', ], 'targets': [ { @@ -37,6 +41,9 @@ '<@(webkit_dom_storage_sources)', '<@(webkit_fileapi_sources)', '<@(webkit_quota_sources)', + # TODO(kinuko): Deprecate this when we have a new target for + # webkit_browser. crbug.com/239710 + '<@(webkit_browser_storage_sources)', ], 'conditions': [ ['chromeos==1', { diff --git a/webkit/tools/test_shell/simple_file_system.cc b/webkit/tools/test_shell/simple_file_system.cc index 8ac867a..9bb6700 100644 --- a/webkit/tools/test_shell/simple_file_system.cc +++ b/webkit/tools/test_shell/simple_file_system.cc @@ -21,9 +21,9 @@ #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" #include "webkit/base/file_path_string_conversions.h" #include "webkit/blob/blob_storage_controller.h" +#include "webkit/browser/fileapi/file_system_mount_point_provider.h" #include "webkit/fileapi/directory_entry.h" #include "webkit/fileapi/file_permission_policy.h" -#include "webkit/fileapi/file_system_mount_point_provider.h" #include "webkit/fileapi/file_system_url.h" #include "webkit/fileapi/file_system_util.h" #include "webkit/fileapi/mock_file_system_context.h" |