summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-22 22:02:38 +0000
committermichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-22 22:02:38 +0000
commit08b1f75f74bdf7769e3a8ac2d587c9729353c1d8 (patch)
tree7c05052cb83a88ad8c4a35c3ccf94d6dcf5e2b96
parent910b52bcf700ef412da46a15e85ea9a80b2b3f75 (diff)
downloadchromium_src-08b1f75f74bdf7769e3a8ac2d587c9729353c1d8.zip
chromium_src-08b1f75f74bdf7769e3a8ac2d587c9729353c1d8.tar.gz
chromium_src-08b1f75f74bdf7769e3a8ac2d587c9729353c1d8.tar.bz2
Move webkit/database to webkit/browser and webkit/common. Also move content::WebDatabaseObserverImpl to the new common_child library.
- just moving the files in the source repository - and fixing up complilation guards - and fixing up include paths throughout - and fixing up DEPs files as needed Note: Everything in /webkit is still being built into the same old webkit_storage target for now, new actual build target(s) will come later. BUG=239109 R=jamesr@chromium.org, kinuko@chromium.org, piman@chromium.org, thestig@chromium.org Review URL: https://codereview.chromium.org/15367010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201619 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/DEPS1
-rw-r--r--chrome/browser/browsing_data/browsing_data_database_helper.h2
-rw-r--r--chrome/browser/browsing_data/browsing_data_indexed_db_helper.cc2
-rw-r--r--chrome/browser/diagnostics/sqlite_diagnostics.cc2
-rw-r--r--chrome/browser/extensions/extension_service.cc4
-rw-r--r--chrome/browser/extensions/extension_service_unittest.cc2
-rw-r--r--chrome/browser/profiles/off_the_record_profile_impl.cc2
-rw-r--r--chrome/browser/profiles/off_the_record_profile_io_data.cc2
-rw-r--r--content/browser/browser_context.cc2
-rw-r--r--content/browser/in_process_webkit/indexed_db_browsertest.cc2
-rw-r--r--content/browser/in_process_webkit/indexed_db_dispatcher_host.cc2
-rw-r--r--content/browser/indexed_db/indexed_db_context_impl.cc2
-rw-r--r--content/browser/indexed_db/indexed_db_quota_client.cc2
-rw-r--r--content/browser/renderer_host/database_message_filter.cc4
-rw-r--r--content/browser/renderer_host/database_message_filter.h4
-rw-r--r--content/browser/storage_partition_impl.cc2
-rw-r--r--content/browser/worker_host/worker_storage_partition.cc2
-rw-r--r--content/common_child/web_database_observer_impl.cc (renamed from content/common/web_database_observer_impl.cc)2
-rw-r--r--content/common_child/web_database_observer_impl.h (renamed from content/common/web_database_observer_impl.h)6
-rw-r--r--content/content_common.gypi2
-rw-r--r--content/content_common_child.gypi2
-rw-r--r--content/content_tests.gypi10
-rw-r--r--content/renderer/render_thread_impl.cc2
-rw-r--r--content/shell/shell_message_filter.cc2
-rw-r--r--content/worker/worker_thread.cc2
-rw-r--r--webkit/browser/database/database_quota_client.cc (renamed from webkit/database/database_quota_client.cc)6
-rw-r--r--webkit/browser/database/database_quota_client.h (renamed from webkit/database/database_quota_client.h)6
-rw-r--r--webkit/browser/database/database_quota_client_unittest.cc (renamed from webkit/database/database_quota_client_unittest.cc)6
-rw-r--r--webkit/browser/database/database_tracker.cc (renamed from webkit/database/database_tracker.cc)8
-rw-r--r--webkit/browser/database/database_tracker.h (renamed from webkit/database/database_tracker.h)8
-rw-r--r--webkit/browser/database/database_tracker_unittest.cc (renamed from webkit/database/database_tracker_unittest.cc)2
-rw-r--r--webkit/browser/database/database_util.cc (renamed from webkit/database/database_util.cc)6
-rw-r--r--webkit/browser/database/database_util.h (renamed from webkit/database/database_util.h)6
-rw-r--r--webkit/browser/database/database_util_unittest.cc (renamed from webkit/database/database_util_unittest.cc)2
-rw-r--r--webkit/browser/database/databases_table.cc (renamed from webkit/database/databases_table.cc)2
-rw-r--r--webkit/browser/database/databases_table.h (renamed from webkit/database/databases_table.h)6
-rw-r--r--webkit/browser/database/databases_table_unittest.cc (renamed from webkit/database/databases_table_unittest.cc)2
-rw-r--r--webkit/browser/database/vfs_backend.cc (renamed from webkit/database/vfs_backend.cc)2
-rw-r--r--webkit/browser/database/vfs_backend.h (renamed from webkit/database/vfs_backend.h)6
-rw-r--r--webkit/browser/database/webkit_browser_database.gypi20
-rw-r--r--webkit/browser/webkit_browser.gypi2
-rw-r--r--webkit/common/database/database_connections.cc (renamed from webkit/database/database_connections.cc)2
-rw-r--r--webkit/common/database/database_connections.h (renamed from webkit/database/database_connections.h)6
-rw-r--r--webkit/common/database/database_connections_unittest.cc (renamed from webkit/database/database_connections_unittest.cc)2
-rw-r--r--webkit/common/database/webkit_common_database.gypi12
-rw-r--r--webkit/common/webkit_common.gypi16
-rw-r--r--webkit/database/webkit_database.gypi22
-rw-r--r--webkit/dom_storage/dom_storage_area.cc2
-rw-r--r--webkit/storage/webkit_storage.gypi4
-rw-r--r--webkit/support/simple_database_system.cc4
-rw-r--r--webkit/support/simple_database_system.h4
-rw-r--r--webkit/support/test_webkit_platform_support.cc2
-rw-r--r--webkit/support/webkit_support.gyp1
-rw-r--r--webkit/tools/test_shell/simple_dom_storage_system.cc2
54 files changed, 131 insertions, 105 deletions
diff --git a/chrome/browser/DEPS b/chrome/browser/DEPS
index d75b5db..8cd920a 100644
--- a/chrome/browser/DEPS
+++ b/chrome/browser/DEPS
@@ -52,7 +52,6 @@ include_rules = [
"+webkit/appcache",
"+webkit/base/origin_url_conversions.h",
"+webkit/blob",
- "+webkit/database",
"+webkit/dom_storage/dom_storage_types.h",
"+webkit/fileapi",
"+webkit/plugins", # Defines some types that are marshalled over IPC.
diff --git a/chrome/browser/browsing_data/browsing_data_database_helper.h b/chrome/browser/browsing_data/browsing_data_database_helper.h
index a822bd9..155653a 100644
--- a/chrome/browser/browsing_data/browsing_data_database_helper.h
+++ b/chrome/browser/browsing_data/browsing_data_database_helper.h
@@ -15,7 +15,7 @@
#include "base/synchronization/lock.h"
#include "chrome/common/url_constants.h"
#include "googleurl/src/gurl.h"
-#include "webkit/database/database_tracker.h"
+#include "webkit/browser/database/database_tracker.h"
class Profile;
diff --git a/chrome/browser/browsing_data/browsing_data_indexed_db_helper.cc b/chrome/browser/browsing_data/browsing_data_indexed_db_helper.cc
index 3103c21..b04b337 100644
--- a/chrome/browser/browsing_data/browsing_data_indexed_db_helper.cc
+++ b/chrome/browser/browsing_data/browsing_data_indexed_db_helper.cc
@@ -16,7 +16,7 @@
#include "chrome/browser/browsing_data/browsing_data_helper.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/indexed_db_context.h"
-#include "webkit/database/database_util.h"
+#include "webkit/browser/database/database_util.h"
#include "webkit/glue/webkit_glue.h"
using content::BrowserThread;
diff --git a/chrome/browser/diagnostics/sqlite_diagnostics.cc b/chrome/browser/diagnostics/sqlite_diagnostics.cc
index 7b497d4..1ac392d 100644
--- a/chrome/browser/diagnostics/sqlite_diagnostics.cc
+++ b/chrome/browser/diagnostics/sqlite_diagnostics.cc
@@ -19,7 +19,7 @@
#include "sql/statement.h"
#include "third_party/sqlite/sqlite3.h"
#include "webkit/appcache/appcache_interfaces.h"
-#include "webkit/database/database_tracker.h"
+#include "webkit/browser/database/database_tracker.h"
namespace {
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index 0a0e19b..8b929c9 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -110,8 +110,8 @@
#include "net/base/registry_controlled_domains/registry_controlled_domain.h"
#include "sync/api/sync_change.h"
#include "sync/api/sync_error_factory.h"
-#include "webkit/database/database_tracker.h"
-#include "webkit/database/database_util.h"
+#include "webkit/browser/database/database_tracker.h"
+#include "webkit/browser/database/database_util.h"
#if defined(OS_CHROMEOS)
#include "chrome/browser/chromeos/extensions/install_limiter.h"
diff --git a/chrome/browser/extensions/extension_service_unittest.cc b/chrome/browser/extensions/extension_service_unittest.cc
index 26c3051..114743d 100644
--- a/chrome/browser/extensions/extension_service_unittest.cc
+++ b/chrome/browser/extensions/extension_service_unittest.cc
@@ -103,7 +103,7 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"
#include "webkit/base/origin_url_conversions.h"
-#include "webkit/database/database_tracker.h"
+#include "webkit/browser/database/database_tracker.h"
#include "webkit/plugins/npapi/mock_plugin_list.h"
#include "webkit/quota/quota_manager.h"
diff --git a/chrome/browser/profiles/off_the_record_profile_impl.cc b/chrome/browser/profiles/off_the_record_profile_impl.cc
index 12371a9..175ce97 100644
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc
@@ -51,7 +51,7 @@
#include "content/public/browser/web_contents.h"
#include "net/http/http_server_properties.h"
#include "net/http/transport_security_state.h"
-#include "webkit/database/database_tracker.h"
+#include "webkit/browser/database/database_tracker.h"
#if defined(OS_ANDROID) || defined(OS_IOS)
#include "chrome/browser/prefs/scoped_user_pref_update.h"
diff --git a/chrome/browser/profiles/off_the_record_profile_io_data.cc b/chrome/browser/profiles/off_the_record_profile_io_data.cc
index 034f7bb..ce52899 100644
--- a/chrome/browser/profiles/off_the_record_profile_io_data.cc
+++ b/chrome/browser/profiles/off_the_record_profile_io_data.cc
@@ -35,7 +35,7 @@
#include "net/ssl/server_bound_cert_service.h"
#include "net/url_request/protocol_intercept_job_factory.h"
#include "net/url_request/url_request_job_factory_impl.h"
-#include "webkit/database/database_tracker.h"
+#include "webkit/browser/database/database_tracker.h"
using content::BrowserThread;
diff --git a/content/browser/browser_context.cc b/content/browser/browser_context.cc
index b32b58a..45e5ca9 100644
--- a/content/browser/browser_context.cc
+++ b/content/browser/browser_context.cc
@@ -24,7 +24,7 @@
#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_context_getter.h"
#include "ui/base/clipboard/clipboard.h"
-#include "webkit/database/database_tracker.h"
+#include "webkit/browser/database/database_tracker.h"
#include "webkit/fileapi/external_mount_points.h"
#endif // !OS_IOS
diff --git a/content/browser/in_process_webkit/indexed_db_browsertest.cc b/content/browser/in_process_webkit/indexed_db_browsertest.cc
index 0c42c6c..cace63a 100644
--- a/content/browser/in_process_webkit/indexed_db_browsertest.cc
+++ b/content/browser/in_process_webkit/indexed_db_browsertest.cc
@@ -24,7 +24,7 @@
#include "content/shell/shell.h"
#include "content/test/content_browser_test.h"
#include "content/test/content_browser_test_utils.h"
-#include "webkit/database/database_util.h"
+#include "webkit/browser/database/database_util.h"
#include "webkit/quota/quota_manager.h"
using quota::QuotaManager;
diff --git a/content/browser/in_process_webkit/indexed_db_dispatcher_host.cc b/content/browser/in_process_webkit/indexed_db_dispatcher_host.cc
index b6a2a26..2398b70 100644
--- a/content/browser/in_process_webkit/indexed_db_dispatcher_host.cc
+++ b/content/browser/in_process_webkit/indexed_db_dispatcher_host.cc
@@ -33,7 +33,7 @@
#include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h"
#include "webkit/base/file_path_string_conversions.h"
#include "webkit/base/origin_url_conversions.h"
-#include "webkit/database/database_util.h"
+#include "webkit/browser/database/database_util.h"
using webkit_database::DatabaseUtil;
using WebKit::WebData;
diff --git a/content/browser/indexed_db/indexed_db_context_impl.cc b/content/browser/indexed_db/indexed_db_context_impl.cc
index fb6953b..2a958b4 100644
--- a/content/browser/indexed_db/indexed_db_context_impl.cc
+++ b/content/browser/indexed_db/indexed_db_context_impl.cc
@@ -23,7 +23,7 @@
#include "third_party/WebKit/Source/Platform/chromium/public/WebString.h"
#include "webkit/base/file_path_string_conversions.h"
#include "webkit/base/origin_url_conversions.h"
-#include "webkit/database/database_util.h"
+#include "webkit/browser/database/database_util.h"
#include "webkit/quota/quota_manager.h"
#include "webkit/quota/special_storage_policy.h"
diff --git a/content/browser/indexed_db/indexed_db_quota_client.cc b/content/browser/indexed_db/indexed_db_quota_client.cc
index 56635e3..d0b0272 100644
--- a/content/browser/indexed_db/indexed_db_quota_client.cc
+++ b/content/browser/indexed_db/indexed_db_quota_client.cc
@@ -11,7 +11,7 @@
#include "content/browser/indexed_db/indexed_db_context_impl.h"
#include "content/public/browser/browser_thread.h"
#include "net/base/net_util.h"
-#include "webkit/database/database_util.h"
+#include "webkit/browser/database/database_util.h"
using quota::QuotaClient;
using webkit_database::DatabaseUtil;
diff --git a/content/browser/renderer_host/database_message_filter.cc b/content/browser/renderer_host/database_message_filter.cc
index 8e5f51d..d4e79b3 100644
--- a/content/browser/renderer_host/database_message_filter.cc
+++ b/content/browser/renderer_host/database_message_filter.cc
@@ -17,8 +17,8 @@
#include "googleurl/src/gurl.h"
#include "third_party/sqlite/sqlite3.h"
#include "webkit/base/origin_url_conversions.h"
-#include "webkit/database/database_util.h"
-#include "webkit/database/vfs_backend.h"
+#include "webkit/browser/database/database_util.h"
+#include "webkit/browser/database/vfs_backend.h"
#include "webkit/quota/quota_manager.h"
#if defined(OS_POSIX)
diff --git a/content/browser/renderer_host/database_message_filter.h b/content/browser/renderer_host/database_message_filter.h
index 26d9be3..23aa985 100644
--- a/content/browser/renderer_host/database_message_filter.h
+++ b/content/browser/renderer_host/database_message_filter.h
@@ -8,8 +8,8 @@
#include "base/hash_tables.h"
#include "base/string16.h"
#include "content/public/browser/browser_message_filter.h"
-#include "webkit/database/database_connections.h"
-#include "webkit/database/database_tracker.h"
+#include "webkit/browser/database/database_tracker.h"
+#include "webkit/common/database/database_connections.h"
#include "webkit/quota/quota_types.h"
namespace content {
diff --git a/content/browser/storage_partition_impl.cc b/content/browser/storage_partition_impl.cc
index ab0e7a5..f982f76 100644
--- a/content/browser/storage_partition_impl.cc
+++ b/content/browser/storage_partition_impl.cc
@@ -16,7 +16,7 @@
#include "net/cookies/cookie_monster.h"
#include "net/url_request/url_request_context_getter.h"
#include "net/url_request/url_request_context.h"
-#include "webkit/database/database_tracker.h"
+#include "webkit/browser/database/database_tracker.h"
#include "webkit/dom_storage/dom_storage_types.h"
#include "webkit/quota/quota_manager.h"
diff --git a/content/browser/worker_host/worker_storage_partition.cc b/content/browser/worker_host/worker_storage_partition.cc
index 994f729..68068bd 100644
--- a/content/browser/worker_host/worker_storage_partition.cc
+++ b/content/browser/worker_host/worker_storage_partition.cc
@@ -9,7 +9,7 @@
#include "content/browser/appcache/chrome_appcache_service.h"
#include "content/browser/indexed_db/indexed_db_context_impl.h"
#include "net/url_request/url_request_context_getter.h"
-#include "webkit/database/database_tracker.h"
+#include "webkit/browser/database/database_tracker.h"
#include "webkit/fileapi/file_system_context.h"
#include "webkit/quota/quota_manager.h"
diff --git a/content/common/web_database_observer_impl.cc b/content/common_child/web_database_observer_impl.cc
index 474ce24..9701059 100644
--- a/content/common/web_database_observer_impl.cc
+++ b/content/common_child/web_database_observer_impl.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/common/web_database_observer_impl.h"
+#include "content/common_child/web_database_observer_impl.h"
#include "base/metrics/histogram.h"
#include "base/string16.h"
diff --git a/content/common/web_database_observer_impl.h b/content/common_child/web_database_observer_impl.h
index 7496cac..b17bb31 100644
--- a/content/common/web_database_observer_impl.h
+++ b/content/common_child/web_database_observer_impl.h
@@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_COMMON_WEB_DATABASE_OBSERVER_IMPL_H_
-#define CONTENT_COMMON_WEB_DATABASE_OBSERVER_IMPL_H_
+#ifndef CONTENT_COMMON_CHILD_WEB_DATABASE_OBSERVER_IMPL_H_
+#define CONTENT_COMMON_CHILD_WEB_DATABASE_OBSERVER_IMPL_H_
#include "base/memory/ref_counted.h"
#include "ipc/ipc_sync_message_filter.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebDatabaseObserver.h"
-#include "webkit/database/database_connections.h"
+#include "webkit/common/database/database_connections.h"
namespace content {
diff --git a/content/content_common.gypi b/content/content_common.gypi
index 47af968..c3ff513 100644
--- a/content/content_common.gypi
+++ b/content/content_common.gypi
@@ -355,8 +355,6 @@
'common/utility_messages.h',
'common/view_messages.h',
'common/view_message_enums.h',
- 'common/web_database_observer_impl.cc',
- 'common/web_database_observer_impl.h',
'common/webkitplatformsupport_impl.cc',
'common/webkitplatformsupport_impl.h',
'common/webmessageportchannel_impl.cc',
diff --git a/content/content_common_child.gypi b/content/content_common_child.gypi
index 4e97716..535d45c 100644
--- a/content/content_common_child.gypi
+++ b/content/content_common_child.gypi
@@ -40,6 +40,8 @@
'common_child/plugin_messages.h',
'common_child/plugin_param_traits.cc',
'common_child/plugin_param_traits.h',
+ 'common_child/web_database_observer_impl.cc',
+ 'common_child/web_database_observer_impl.h',
],
'conditions': [
['OS=="ios"', {
diff --git a/content/content_tests.gypi b/content/content_tests.gypi
index c1ad950..cfe609d 100644
--- a/content/content_tests.gypi
+++ b/content/content_tests.gypi
@@ -439,6 +439,10 @@
'../webkit/blob/mock_blob_url_request_context.cc',
'../webkit/blob/mock_blob_url_request_context.h',
'../webkit/blob/shareable_file_reference_unittest.cc',
+ '../webkit/browser/database/database_quota_client_unittest.cc',
+ '../webkit/browser/database/databases_table_unittest.cc',
+ '../webkit/browser/database/database_tracker_unittest.cc',
+ '../webkit/browser/database/database_util_unittest.cc',
'../webkit/browser/fileapi/copy_or_move_file_validator_unittest.cc',
'../webkit/browser/fileapi/file_system_dir_url_request_job_unittest.cc',
'../webkit/browser/fileapi/file_system_mount_point_provider_unittest.cc',
@@ -457,11 +461,7 @@
'../webkit/browser/fileapi/transient_file_util_unittest.cc',
'../webkit/chromeos/fileapi/cros_mount_point_provider_unittest.cc',
'../webkit/chromeos/fileapi/file_access_permissions_unittest.cc',
- '../webkit/database/database_connections_unittest.cc',
- '../webkit/database/database_quota_client_unittest.cc',
- '../webkit/database/databases_table_unittest.cc',
- '../webkit/database/database_tracker_unittest.cc',
- '../webkit/database/database_util_unittest.cc',
+ '../webkit/common/database/database_connections_unittest.cc',
'../webkit/dom_storage/dom_storage_area_unittest.cc',
'../webkit/dom_storage/dom_storage_cached_area_unittest.cc',
'../webkit/dom_storage/dom_storage_context_unittest.cc',
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 68ae958..4f16452 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -36,11 +36,11 @@
#include "content/common/resource_dispatcher.h"
#include "content/common/resource_messages.h"
#include "content/common/view_messages.h"
-#include "content/common/web_database_observer_impl.h"
#include "content/common_child/indexed_db/indexed_db_dispatcher.h"
#include "content/common_child/indexed_db/indexed_db_message_filter.h"
#include "content/common_child/npobject_util.h"
#include "content/common_child/plugin_messages.h"
+#include "content/common_child/web_database_observer_impl.h"
#include "content/public/common/content_constants.h"
#include "content/public/common/content_paths.h"
#include "content/public/common/content_switches.h"
diff --git a/content/shell/shell_message_filter.cc b/content/shell/shell_message_filter.cc
index 58befcd..8d3808f 100644
--- a/content/shell/shell_message_filter.cc
+++ b/content/shell/shell_message_filter.cc
@@ -10,7 +10,7 @@
#include "content/shell/common/shell_messages.h"
#include "content/shell/shell_network_delegate.h"
#include "net/base/net_errors.h"
-#include "webkit/database/database_tracker.h"
+#include "webkit/browser/database/database_tracker.h"
#include "webkit/fileapi/isolated_context.h"
#include "webkit/quota/quota_manager.h"
diff --git a/content/worker/worker_thread.cc b/content/worker/worker_thread.cc
index 73aaf82..622f17d 100644
--- a/content/worker/worker_thread.cc
+++ b/content/worker/worker_thread.cc
@@ -9,9 +9,9 @@
#include "base/threading/thread_local.h"
#include "content/common/appcache/appcache_dispatcher.h"
#include "content/common/db_message_filter.h"
-#include "content/common/web_database_observer_impl.h"
#include "content/common/worker_messages.h"
#include "content/common_child/indexed_db/indexed_db_message_filter.h"
+#include "content/common_child/web_database_observer_impl.h"
#include "content/public/common/content_switches.h"
#include "content/worker/websharedworker_stub.h"
#include "content/worker/worker_webkitplatformsupport_impl.h"
diff --git a/webkit/database/database_quota_client.cc b/webkit/browser/database/database_quota_client.cc
index b76decc..a1ea780 100644
--- a/webkit/database/database_quota_client.cc
+++ b/webkit/browser/database/database_quota_client.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "webkit/database/database_quota_client.h"
+#include "webkit/browser/database/database_quota_client.h"
#include <vector>
@@ -15,8 +15,8 @@
#include "net/base/net_errors.h"
#include "net/base/net_util.h"
#include "webkit/base/origin_url_conversions.h"
-#include "webkit/database/database_tracker.h"
-#include "webkit/database/database_util.h"
+#include "webkit/browser/database/database_tracker.h"
+#include "webkit/browser/database/database_util.h"
using quota::QuotaClient;
diff --git a/webkit/database/database_quota_client.h b/webkit/browser/database/database_quota_client.h
index 2c14e1d..c90c0d5b 100644
--- a/webkit/database/database_quota_client.h
+++ b/webkit/browser/database/database_quota_client.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_DATABASE_DATABASE_QUOTA_CLIENT_H_
-#define WEBKIT_DATABASE_DATABASE_QUOTA_CLIENT_H_
+#ifndef WEBKIT_BROWSER_DATABASE_DATABASE_QUOTA_CLIENT_H_
+#define WEBKIT_BROWSER_DATABASE_DATABASE_QUOTA_CLIENT_H_
#include <set>
#include <string>
@@ -52,4 +52,4 @@ class WEBKIT_STORAGE_EXPORT_PRIVATE DatabaseQuotaClient
} // namespace webkit_database
-#endif // WEBKIT_DATABASE_DATABASE_QUOTA_CLIENT_H_
+#endif // WEBKIT_BROWSER_DATABASE_DATABASE_QUOTA_CLIENT_H_
diff --git a/webkit/database/database_quota_client_unittest.cc b/webkit/browser/database/database_quota_client_unittest.cc
index ad99b17..8e508ac 100644
--- a/webkit/database/database_quota_client_unittest.cc
+++ b/webkit/browser/database/database_quota_client_unittest.cc
@@ -13,9 +13,9 @@
#include "net/base/net_errors.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "webkit/base/origin_url_conversions.h"
-#include "webkit/database/database_quota_client.h"
-#include "webkit/database/database_tracker.h"
-#include "webkit/database/database_util.h"
+#include "webkit/browser/database/database_quota_client.h"
+#include "webkit/browser/database/database_tracker.h"
+#include "webkit/browser/database/database_util.h"
namespace webkit_database {
diff --git a/webkit/database/database_tracker.cc b/webkit/browser/database/database_tracker.cc
index e1fd706..effe322 100644
--- a/webkit/database/database_tracker.cc
+++ b/webkit/browser/database/database_tracker.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "webkit/database/database_tracker.h"
+#include "webkit/browser/database/database_tracker.h"
#include <algorithm>
#include <vector>
@@ -20,9 +20,9 @@
#include "sql/transaction.h"
#include "third_party/sqlite/sqlite3.h"
#include "webkit/base/origin_url_conversions.h"
-#include "webkit/database/database_quota_client.h"
-#include "webkit/database/database_util.h"
-#include "webkit/database/databases_table.h"
+#include "webkit/browser/database/database_quota_client.h"
+#include "webkit/browser/database/database_util.h"
+#include "webkit/browser/database/databases_table.h"
#include "webkit/quota/quota_manager.h"
#include "webkit/quota/special_storage_policy.h"
diff --git a/webkit/database/database_tracker.h b/webkit/browser/database/database_tracker.h
index d9f1e19..b2f922c 100644
--- a/webkit/database/database_tracker.h
+++ b/webkit/browser/database/database_tracker.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_DATABASE_DATABASE_TRACKER_H_
-#define WEBKIT_DATABASE_DATABASE_TRACKER_H_
+#ifndef WEBKIT_BROWSER_DATABASE_DATABASE_TRACKER_H_
+#define WEBKIT_BROWSER_DATABASE_DATABASE_TRACKER_H_
#include <map>
#include <set>
@@ -19,7 +19,7 @@
#include "base/string_util.h"
#include "base/time.h"
#include "net/base/completion_callback.h"
-#include "webkit/database/database_connections.h"
+#include "webkit/common/database/database_connections.h"
#include "webkit/storage/webkit_storage_export.h"
namespace base {
@@ -309,4 +309,4 @@ class WEBKIT_STORAGE_EXPORT DatabaseTracker
} // namespace webkit_database
-#endif // WEBKIT_DATABASE_DATABASE_TRACKER_H_
+#endif // WEBKIT_BROWSER_DATABASE_DATABASE_TRACKER_H_
diff --git a/webkit/database/database_tracker_unittest.cc b/webkit/browser/database/database_tracker_unittest.cc
index dc89dd8..32bf570 100644
--- a/webkit/database/database_tracker_unittest.cc
+++ b/webkit/browser/database/database_tracker_unittest.cc
@@ -16,7 +16,7 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/sqlite/sqlite3.h"
#include "webkit/base/origin_url_conversions.h"
-#include "webkit/database/database_tracker.h"
+#include "webkit/browser/database/database_tracker.h"
#include "webkit/quota/mock_special_storage_policy.h"
#include "webkit/quota/quota_manager.h"
diff --git a/webkit/database/database_util.cc b/webkit/browser/database/database_util.cc
index 09778a1..6c98d4e 100644
--- a/webkit/database/database_util.cc
+++ b/webkit/browser/database/database_util.cc
@@ -2,14 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "webkit/database/database_util.h"
+#include "webkit/browser/database/database_util.h"
#include "base/basictypes.h"
#include "base/utf_string_conversions.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebString.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h"
-#include "webkit/database/database_tracker.h"
-#include "webkit/database/vfs_backend.h"
+#include "webkit/browser/database/database_tracker.h"
+#include "webkit/browser/database/vfs_backend.h"
namespace webkit_database {
diff --git a/webkit/database/database_util.h b/webkit/browser/database/database_util.h
index 6fee84a..547e0a2 100644
--- a/webkit/database/database_util.h
+++ b/webkit/browser/database/database_util.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_DATABASE_DATABASE_UTIL_H_
-#define WEBKIT_DATABASE_DATABASE_UTIL_H_
+#ifndef WEBKIT_BROWSER_DATABASE_DATABASE_UTIL_H_
+#define WEBKIT_BROWSER_DATABASE_DATABASE_UTIL_H_
#include "base/string16.h"
#include "googleurl/src/gurl.h"
@@ -35,4 +35,4 @@ class WEBKIT_STORAGE_EXPORT DatabaseUtil {
} // namespace webkit_database
-#endif // WEBKIT_DATABASE_DATABASE_UTIL_H_
+#endif // WEBKIT_BROWSER_DATABASE_DATABASE_UTIL_H_
diff --git a/webkit/database/database_util_unittest.cc b/webkit/browser/database/database_util_unittest.cc
index 0f6dd84..649b58a 100644
--- a/webkit/database/database_util_unittest.cc
+++ b/webkit/browser/database/database_util_unittest.cc
@@ -6,7 +6,7 @@
#include "base/utf_string_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "webkit/base/origin_url_conversions.h"
-#include "webkit/database/database_util.h"
+#include "webkit/browser/database/database_util.h"
using webkit_database::DatabaseUtil;
diff --git a/webkit/database/databases_table.cc b/webkit/browser/database/databases_table.cc
index fa0c837..45c76ec 100644
--- a/webkit/database/databases_table.cc
+++ b/webkit/browser/database/databases_table.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "webkit/database/databases_table.h"
+#include "webkit/browser/database/databases_table.h"
#include "base/logging.h"
#include "base/utf_string_conversions.h"
diff --git a/webkit/database/databases_table.h b/webkit/browser/database/databases_table.h
index 91abad9..6fa4c08 100644
--- a/webkit/database/databases_table.h
+++ b/webkit/browser/database/databases_table.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_DATABASE_DATABASES_TABLE_H_
-#define WEBKIT_DATABASE_DATABASES_TABLE_H_
+#ifndef WEBKIT_BROWSER_DATABASE_DATABASES_TABLE_H_
+#define WEBKIT_BROWSER_DATABASE_DATABASES_TABLE_H_
#include <vector>
@@ -50,4 +50,4 @@ class WEBKIT_STORAGE_EXPORT_PRIVATE DatabasesTable {
} // namespace webkit_database
-#endif // WEBKIT_DATABASE_DATABASES_TABLE_H_
+#endif // WEBKIT_BROWSER_DATABASE_DATABASES_TABLE_H_
diff --git a/webkit/database/databases_table_unittest.cc b/webkit/browser/database/databases_table_unittest.cc
index c7f58bd6..30a7975 100644
--- a/webkit/database/databases_table_unittest.cc
+++ b/webkit/browser/database/databases_table_unittest.cc
@@ -7,7 +7,7 @@
#include "sql/connection.h"
#include "sql/statement.h"
#include "testing/gtest/include/gtest/gtest.h"
-#include "webkit/database/databases_table.h"
+#include "webkit/browser/database/databases_table.h"
namespace {
diff --git a/webkit/database/vfs_backend.cc b/webkit/browser/database/vfs_backend.cc
index c1e2357..041c44b 100644
--- a/webkit/database/vfs_backend.cc
+++ b/webkit/browser/database/vfs_backend.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "webkit/database/vfs_backend.h"
+#include "webkit/browser/database/vfs_backend.h"
#include "base/file_util.h"
#include "base/files/file_path.h"
diff --git a/webkit/database/vfs_backend.h b/webkit/browser/database/vfs_backend.h
index 0459958..e5d3374 100644
--- a/webkit/database/vfs_backend.h
+++ b/webkit/browser/database/vfs_backend.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_DATABASE_VFS_BACKEND_H_
-#define WEBKIT_DATABASE_VFS_BACKEND_H_
+#ifndef WEBKIT_BROWSER_DATABASE_VFS_BACKEND_H_
+#define WEBKIT_BROWSER_DATABASE_VFS_BACKEND_H_
#include "base/platform_file.h"
#include "base/process.h"
@@ -41,4 +41,4 @@ class WEBKIT_STORAGE_EXPORT VfsBackend {
} // namespace webkit_database
-#endif // WEBKIT_DATABASE_VFS_BACKEND_H_
+#endif // WEBKIT_BROWSER_DATABASE_VFS_BACKEND_H_
diff --git a/webkit/browser/database/webkit_browser_database.gypi b/webkit/browser/database/webkit_browser_database.gypi
new file mode 100644
index 0000000..0e4e9ad
--- /dev/null
+++ b/webkit/browser/database/webkit_browser_database.gypi
@@ -0,0 +1,20 @@
+# 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_database_sources': [
+ '../browser/database/databases_table.cc',
+ '../browser/database/databases_table.h',
+ '../browser/database/database_quota_client.cc',
+ '../browser/database/database_quota_client.h',
+ '../browser/database/database_tracker.cc',
+ '../browser/database/database_tracker.h',
+ '../browser/database/database_util.cc',
+ '../browser/database/database_util.h',
+ '../browser/database/vfs_backend.cc',
+ '../browser/database/vfs_backend.h',
+ ],
+ },
+}
diff --git a/webkit/browser/webkit_browser.gypi b/webkit/browser/webkit_browser.gypi
index 3bd1e90..0e27906 100644
--- a/webkit/browser/webkit_browser.gypi
+++ b/webkit/browser/webkit_browser.gypi
@@ -4,12 +4,14 @@
{
'includes': [
+ '../browser/database/webkit_browser_database.gypi',
'../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_database_sources)',
'<@(webkit_browser_fileapi_sources)',
],
},
diff --git a/webkit/database/database_connections.cc b/webkit/common/database/database_connections.cc
index d090350..56db388 100644
--- a/webkit/database/database_connections.cc
+++ b/webkit/common/database/database_connections.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "webkit/database/database_connections.h"
+#include "webkit/common/database/database_connections.h"
#include "base/auto_reset.h"
#include "base/bind.h"
diff --git a/webkit/database/database_connections.h b/webkit/common/database/database_connections.h
index f6f0a92..e81c053 100644
--- a/webkit/database/database_connections.h
+++ b/webkit/common/database/database_connections.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_DATABASE_DATABASE_CONNECTIONS_H_
-#define WEBKIT_DATABASE_DATABASE_CONNECTIONS_H_
+#ifndef WEBKIT_COMMON_DATABASE_DATABASE_CONNECTIONS_H_
+#define WEBKIT_COMMON_DATABASE_DATABASE_CONNECTIONS_H_
#include <map>
#include <vector>
@@ -95,4 +95,4 @@ class WEBKIT_STORAGE_EXPORT DatabaseConnectionsWrapper
} // namespace webkit_database
-#endif // WEBKIT_DATABASE_DATABASE_CONNECTIONS_H_
+#endif // WEBKIT_COMMON_DATABASE_DATABASE_CONNECTIONS_H_
diff --git a/webkit/database/database_connections_unittest.cc b/webkit/common/database/database_connections_unittest.cc
index 4a7b841..23d6847 100644
--- a/webkit/database/database_connections_unittest.cc
+++ b/webkit/common/database/database_connections_unittest.cc
@@ -7,7 +7,7 @@
#include "base/threading/thread.h"
#include "base/utf_string_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"
-#include "webkit/database/database_connections.h"
+#include "webkit/common/database/database_connections.h"
namespace webkit_database {
diff --git a/webkit/common/database/webkit_common_database.gypi b/webkit/common/database/webkit_common_database.gypi
new file mode 100644
index 0000000..d1851ed
--- /dev/null
+++ b/webkit/common/database/webkit_common_database.gypi
@@ -0,0 +1,12 @@
+# 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_common_database_sources': [
+ '../common/database/database_connections.cc',
+ '../common/database/database_connections.h',
+ ],
+ },
+}
diff --git a/webkit/common/webkit_common.gypi b/webkit/common/webkit_common.gypi
new file mode 100644
index 0000000..75895e5
--- /dev/null
+++ b/webkit/common/webkit_common.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': [
+ '../common/database/webkit_common_database.gypi',
+ ],
+ # TODO(michaeln): Have webkit_browser target and deprecate old gypis like
+ # webkit_storage.gypi.
+ 'variables': {
+ 'webkit_common_storage_sources': [
+ '<@(webkit_common_database_sources)',
+ ],
+ },
+}
diff --git a/webkit/database/webkit_database.gypi b/webkit/database/webkit_database.gypi
deleted file mode 100644
index dde3c09..0000000
--- a/webkit/database/webkit_database.gypi
+++ /dev/null
@@ -1,22 +0,0 @@
-# Copyright (c) 2011 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_database_sources': [
- '../database/databases_table.cc',
- '../database/databases_table.h',
- '../database/database_connections.cc',
- '../database/database_connections.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/vfs_backend.cc',
- '../database/vfs_backend.h',
- ],
- },
-}
diff --git a/webkit/dom_storage/dom_storage_area.cc b/webkit/dom_storage/dom_storage_area.cc
index 5d9e3c6..be35718 100644
--- a/webkit/dom_storage/dom_storage_area.cc
+++ b/webkit/dom_storage/dom_storage_area.cc
@@ -13,7 +13,7 @@
#include "third_party/WebKit/Source/Platform/chromium/public/WebString.h"
#include "webkit/base/file_path_string_conversions.h"
#include "webkit/base/origin_url_conversions.h"
-#include "webkit/database/database_util.h"
+#include "webkit/browser/database/database_util.h"
#include "webkit/dom_storage/dom_storage_map.h"
#include "webkit/dom_storage/dom_storage_namespace.h"
#include "webkit/dom_storage/dom_storage_task_runner.h"
diff --git a/webkit/storage/webkit_storage.gypi b/webkit/storage/webkit_storage.gypi
index bcc6b97..fa5bfd5 100644
--- a/webkit/storage/webkit_storage.gypi
+++ b/webkit/storage/webkit_storage.gypi
@@ -6,7 +6,6 @@
'includes': [
'../appcache/webkit_appcache.gypi',
'../blob/webkit_blob.gypi',
- '../database/webkit_database.gypi',
'../dom_storage/webkit_dom_storage.gypi',
'../fileapi/webkit_fileapi.gypi',
'../quota/webkit_quota.gypi',
@@ -14,6 +13,7 @@
# TODO(kinuko): Deprecate this when we have a new target for
# webkit_browser. crbug.com/239710
'../browser/webkit_browser.gypi',
+ '../common/webkit_common.gypi',
],
'targets': [
{
@@ -37,13 +37,13 @@
'../storage/webkit_storage_export.h',
'<@(webkit_appcache_sources)',
'<@(webkit_blob_sources)',
- '<@(webkit_database_sources)',
'<@(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)',
+ '<@(webkit_common_storage_sources)',
],
'conditions': [
['chromeos==1', {
diff --git a/webkit/support/simple_database_system.cc b/webkit/support/simple_database_system.cc
index db20ebe..c5f6e11 100644
--- a/webkit/support/simple_database_system.cc
+++ b/webkit/support/simple_database_system.cc
@@ -16,8 +16,8 @@
#include "third_party/WebKit/Source/Platform/chromium/public/WebString.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebDatabase.h"
#include "third_party/sqlite/sqlite3.h"
-#include "webkit/database/database_util.h"
-#include "webkit/database/vfs_backend.h"
+#include "webkit/browser/database/database_util.h"
+#include "webkit/browser/database/vfs_backend.h"
using webkit_database::DatabaseTracker;
using webkit_database::DatabaseUtil;
diff --git a/webkit/support/simple_database_system.h b/webkit/support/simple_database_system.h
index 000ff9c..0e07e23 100644
--- a/webkit/support/simple_database_system.h
+++ b/webkit/support/simple_database_system.h
@@ -14,8 +14,8 @@
#include "base/synchronization/lock.h"
#include "base/threading/thread.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebDatabaseObserver.h"
-#include "webkit/database/database_connections.h"
-#include "webkit/database/database_tracker.h"
+#include "webkit/browser/database/database_tracker.h"
+#include "webkit/common/database/database_connections.h"
namespace base {
class MessageLoopProxy;
diff --git a/webkit/support/test_webkit_platform_support.cc b/webkit/support/test_webkit_platform_support.cc
index 05e3e72..aa2d691 100644
--- a/webkit/support/test_webkit_platform_support.cc
+++ b/webkit/support/test_webkit_platform_support.cc
@@ -32,7 +32,7 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageEventDispatcher.h"
#include "v8/include/v8.h"
#include "webkit/appcache/web_application_cache_host_impl.h"
-#include "webkit/database/vfs_backend.h"
+#include "webkit/browser/database/vfs_backend.h"
#include "webkit/glue/simple_webmimeregistry_impl.h"
#include "webkit/glue/webclipboard_impl.h"
#include "webkit/glue/webkit_glue.h"
diff --git a/webkit/support/webkit_support.gyp b/webkit/support/webkit_support.gyp
index 713c06e..4eed048 100644
--- a/webkit/support/webkit_support.gyp
+++ b/webkit/support/webkit_support.gyp
@@ -15,7 +15,6 @@
'../../build/win_precompile.gypi',
'../appcache/webkit_appcache.gypi',
'../base/webkit_base.gypi',
- '../database/webkit_database.gypi',
'../glue/webkit_glue.gypi',
'../media/webkit_media.gypi',
'../plugins/webkit_plugins.gypi',
diff --git a/webkit/tools/test_shell/simple_dom_storage_system.cc b/webkit/tools/test_shell/simple_dom_storage_system.cc
index 614dfb9..e17e531 100644
--- a/webkit/tools/test_shell/simple_dom_storage_system.cc
+++ b/webkit/tools/test_shell/simple_dom_storage_system.cc
@@ -10,7 +10,7 @@
#include "third_party/WebKit/Source/Platform/chromium/public/WebStorageNamespace.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageEventDispatcher.h"
-#include "webkit/database/database_util.h"
+#include "webkit/browser/database/database_util.h"
#include "webkit/dom_storage/dom_storage_area.h"
#include "webkit/dom_storage/dom_storage_host.h"