summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshess <shess@chromium.org>2015-04-10 18:45:52 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-11 01:46:49 +0000
commit7d62e83efbfa90f457ffc8b9b996b4b0ffbeee6f (patch)
tree7c0e5f5d2288a69bd45575a8c5896cf5a86f33da
parent2a72e51950ce93decbfab801245667094099eb2c (diff)
downloadchromium_src-7d62e83efbfa90f457ffc8b9b996b4b0ffbeee6f.zip
chromium_src-7d62e83efbfa90f457ffc8b9b996b4b0ffbeee6f.tar.gz
chromium_src-7d62e83efbfa90f457ffc8b9b996b4b0ffbeee6f.tar.bz2
[sql] sql/ IWYU cleanup.
This is just what a few grep runs turned up as obvious. BUG=none Review URL: https://codereview.chromium.org/1063143002 Cr-Commit-Position: refs/heads/master@{#324745}
-rw-r--r--chrome/browser/android/provider/chrome_browser_provider.cc1
-rw-r--r--chrome/browser/autocomplete/in_memory_url_index.h1
-rw-r--r--chrome/browser/autocomplete/shortcuts_backend_unittest.cc1
-rw-r--r--chrome/browser/extensions/activity_log/activity_actions.cc1
-rw-r--r--chrome/browser/extensions/activity_log/activity_actions.h3
-rw-r--r--chrome/browser/extensions/activity_log/activity_database.cc1
-rw-r--r--chrome/browser/extensions/activity_log/activity_database.h1
-rw-r--r--chrome/browser/extensions/activity_log/activity_log_unittest.cc1
-rw-r--r--chrome/browser/extensions/activity_log/counting_policy.cc2
-rw-r--r--chrome/browser/extensions/activity_log/fullstream_ui_policy.cc2
-rw-r--r--chrome/browser/extensions/activity_log/fullstream_ui_policy_unittest.cc1
-rw-r--r--chrome/browser/history/android/android_history_provider_service.h1
-rw-r--r--chrome/browser/history/android/android_history_provider_service_unittest.cc1
-rw-r--r--chrome/browser/history/android/android_provider_backend.cc1
-rw-r--r--chrome/browser/history/android/android_provider_backend.h2
-rw-r--r--chrome/browser/predictors/predictor_database.cc1
-rw-r--r--chrome/browser/safe_browsing/safe_browsing_database_unittest.cc2
-rw-r--r--components/history/core/browser/android/android_cache_database.cc1
-rw-r--r--components/history/core/browser/android/android_history_types.cc2
-rw-r--r--components/history/core/browser/android/android_history_types.h1
-rw-r--r--components/history/core/browser/android/android_urls_database.cc2
-rw-r--r--components/history/core/browser/android/android_urls_database.h4
-rw-r--r--components/history/core/browser/download_database.h1
-rw-r--r--components/precache/core/precache_database_unittest.cc1
-rw-r--r--components/webdata/common/web_database.cc1
-rw-r--r--content/browser/media/webrtc_identity_store_backend.cc1
-rw-r--r--content/browser/media/webrtc_identity_store_backend.h6
-rw-r--r--content/browser/quota/quota_database_unittest.cc1
28 files changed, 18 insertions, 26 deletions
diff --git a/chrome/browser/android/provider/chrome_browser_provider.cc b/chrome/browser/android/provider/chrome_browser_provider.cc
index 076a22b..68121bd 100644
--- a/chrome/browser/android/provider/chrome_browser_provider.cc
+++ b/chrome/browser/android/provider/chrome_browser_provider.cc
@@ -40,7 +40,6 @@
#include "components/search_engines/template_url_service.h"
#include "content/public/browser/browser_thread.h"
#include "jni/ChromeBrowserProvider_jni.h"
-#include "sql/statement.h"
#include "ui/base/layout.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/favicon_size.h"
diff --git a/chrome/browser/autocomplete/in_memory_url_index.h b/chrome/browser/autocomplete/in_memory_url_index.h
index 60cad5f..d5818d8 100644
--- a/chrome/browser/autocomplete/in_memory_url_index.h
+++ b/chrome/browser/autocomplete/in_memory_url_index.h
@@ -23,7 +23,6 @@
#include "components/history/core/browser/history_service_observer.h"
#include "components/history/core/browser/history_types.h"
#include "components/keyed_service/core/keyed_service.h"
-#include "sql/connection.h"
class HistoryQuickProviderTest;
diff --git a/chrome/browser/autocomplete/shortcuts_backend_unittest.cc b/chrome/browser/autocomplete/shortcuts_backend_unittest.cc
index f74f39a..9e8233a 100644
--- a/chrome/browser/autocomplete/shortcuts_backend_unittest.cc
+++ b/chrome/browser/autocomplete/shortcuts_backend_unittest.cc
@@ -15,7 +15,6 @@
#include "chrome/test/base/ui_test_utils.h"
#include "components/search_engines/template_url_service.h"
#include "content/public/test/test_browser_thread.h"
-#include "sql/statement.h"
#include "testing/gtest/include/gtest/gtest.h"
diff --git a/chrome/browser/extensions/activity_log/activity_actions.cc b/chrome/browser/extensions/activity_log/activity_actions.cc
index 63f9774..b22d434 100644
--- a/chrome/browser/extensions/activity_log/activity_actions.cc
+++ b/chrome/browser/extensions/activity_log/activity_actions.cc
@@ -27,7 +27,6 @@
#include "content/public/browser/web_contents.h"
#include "extensions/common/constants.h"
#include "extensions/common/dom_action_types.h"
-#include "sql/statement.h"
#include "url/gurl.h"
namespace constants = activity_log_constants;
diff --git a/chrome/browser/extensions/activity_log/activity_actions.h b/chrome/browser/extensions/activity_log/activity_actions.h
index 28346d4..78dc405 100644
--- a/chrome/browser/extensions/activity_log/activity_actions.h
+++ b/chrome/browser/extensions/activity_log/activity_actions.h
@@ -12,9 +12,6 @@
#include "base/time/time.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/extensions/api/activity_log_private.h"
-#include "sql/connection.h"
-#include "sql/statement.h"
-#include "sql/transaction.h"
#include "url/gurl.h"
namespace base {
diff --git a/chrome/browser/extensions/activity_log/activity_database.cc b/chrome/browser/extensions/activity_log/activity_database.cc
index d8c65e4..69c1a20 100644
--- a/chrome/browser/extensions/activity_log/activity_database.cc
+++ b/chrome/browser/extensions/activity_log/activity_database.cc
@@ -17,6 +17,7 @@
#include "chrome/browser/extensions/activity_log/fullstream_ui_policy.h"
#include "chrome/common/chrome_switches.h"
#include "sql/error_delegate_util.h"
+#include "sql/init_status.h"
#include "sql/transaction.h"
#include "third_party/sqlite/sqlite3.h"
diff --git a/chrome/browser/extensions/activity_log/activity_database.h b/chrome/browser/extensions/activity_log/activity_database.h
index e90683e..9479f0d 100644
--- a/chrome/browser/extensions/activity_log/activity_database.h
+++ b/chrome/browser/extensions/activity_log/activity_database.h
@@ -17,7 +17,6 @@
#include "chrome/browser/extensions/activity_log/activity_actions.h"
#include "extensions/common/extension.h"
#include "sql/connection.h"
-#include "sql/init_status.h"
namespace base {
class Clock;
diff --git a/chrome/browser/extensions/activity_log/activity_log_unittest.cc b/chrome/browser/extensions/activity_log/activity_log_unittest.cc
index 2509e75..8d8698f 100644
--- a/chrome/browser/extensions/activity_log/activity_log_unittest.cc
+++ b/chrome/browser/extensions/activity_log/activity_log_unittest.cc
@@ -24,7 +24,6 @@
#include "extensions/browser/uninstall_reason.h"
#include "extensions/common/dom_action_types.h"
#include "extensions/common/extension_builder.h"
-#include "sql/statement.h"
#include "testing/gtest/include/gtest/gtest.h"
#if defined(OS_CHROMEOS)
diff --git a/chrome/browser/extensions/activity_log/counting_policy.cc b/chrome/browser/extensions/activity_log/counting_policy.cc
index 0b8695ad..7236065 100644
--- a/chrome/browser/extensions/activity_log/counting_policy.cc
+++ b/chrome/browser/extensions/activity_log/counting_policy.cc
@@ -41,6 +41,8 @@
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "chrome/common/chrome_constants.h"
+#include "sql/statement.h"
+#include "sql/transaction.h"
using content::BrowserThread;
diff --git a/chrome/browser/extensions/activity_log/fullstream_ui_policy.cc b/chrome/browser/extensions/activity_log/fullstream_ui_policy.cc
index 00c7d77..03b1e19 100644
--- a/chrome/browser/extensions/activity_log/fullstream_ui_policy.cc
+++ b/chrome/browser/extensions/activity_log/fullstream_ui_policy.cc
@@ -19,7 +19,7 @@
#include "chrome/common/chrome_switches.h"
#include "extensions/common/dom_action_types.h"
#include "extensions/common/extension.h"
-#include "sql/error_delegate_util.h"
+#include "sql/statement.h"
#include "sql/transaction.h"
#include "url/gurl.h"
diff --git a/chrome/browser/extensions/activity_log/fullstream_ui_policy_unittest.cc b/chrome/browser/extensions/activity_log/fullstream_ui_policy_unittest.cc
index dae2af6..47e9e7e 100644
--- a/chrome/browser/extensions/activity_log/fullstream_ui_policy_unittest.cc
+++ b/chrome/browser/extensions/activity_log/fullstream_ui_policy_unittest.cc
@@ -20,7 +20,6 @@
#include "chrome/test/base/testing_profile.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "extensions/common/extension_builder.h"
-#include "sql/statement.h"
#include "testing/gtest/include/gtest/gtest.h"
#if defined(OS_CHROMEOS)
diff --git a/chrome/browser/history/android/android_history_provider_service.h b/chrome/browser/history/android/android_history_provider_service.h
index 892c90c..b4f1bf3 100644
--- a/chrome/browser/history/android/android_history_provider_service.h
+++ b/chrome/browser/history/android/android_history_provider_service.h
@@ -10,7 +10,6 @@
#include "base/task/cancelable_task_tracker.h"
#include "components/favicon_base/favicon_callback.h"
#include "components/history/core/browser/android/android_history_types.h"
-#include "sql/statement.h"
class Profile;
diff --git a/chrome/browser/history/android/android_history_provider_service_unittest.cc b/chrome/browser/history/android/android_history_provider_service_unittest.cc
index 2fadfdc..0166f3c 100644
--- a/chrome/browser/history/android/android_history_provider_service_unittest.cc
+++ b/chrome/browser/history/android/android_history_provider_service_unittest.cc
@@ -16,6 +16,7 @@
#include "components/history/core/browser/android/android_history_types.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/test/test_browser_thread.h"
+#include "sql/statement.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
diff --git a/chrome/browser/history/android/android_provider_backend.cc b/chrome/browser/history/android/android_provider_backend.cc
index 4ab8ff41..a62f419 100644
--- a/chrome/browser/history/android/android_provider_backend.cc
+++ b/chrome/browser/history/android/android_provider_backend.cc
@@ -17,7 +17,6 @@
#include "components/history/core/browser/history_database.h"
#include "components/history/core/browser/keyword_search_term.h"
#include "components/history/core/browser/thumbnail_database.h"
-#include "sql/connection.h"
namespace history {
diff --git a/chrome/browser/history/android/android_provider_backend.h b/chrome/browser/history/android/android_provider_backend.h
index 70a54f2..f1a36ba 100644
--- a/chrome/browser/history/android/android_provider_backend.h
+++ b/chrome/browser/history/android/android_provider_backend.h
@@ -18,8 +18,6 @@
#include "components/history/core/browser/android/android_cache_database.h"
#include "components/history/core/browser/android/android_history_types.h"
#include "components/history/core/browser/android/sql_handler.h"
-#include "sql/statement.h"
-#include "sql/transaction.h"
namespace history {
diff --git a/chrome/browser/predictors/predictor_database.cc b/chrome/browser/predictors/predictor_database.cc
index 9f8460a..c66b9da 100644
--- a/chrome/browser/predictors/predictor_database.cc
+++ b/chrome/browser/predictors/predictor_database.cc
@@ -18,7 +18,6 @@
#include "chrome/browser/profiles/profile.h"
#include "content/public/browser/browser_thread.h"
#include "sql/connection.h"
-#include "sql/statement.h"
using content::BrowserThread;
diff --git a/chrome/browser/safe_browsing/safe_browsing_database_unittest.cc b/chrome/browser/safe_browsing/safe_browsing_database_unittest.cc
index 4fc2bf1..79c5586 100644
--- a/chrome/browser/safe_browsing/safe_browsing_database_unittest.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_database_unittest.cc
@@ -20,8 +20,6 @@
#include "chrome/browser/safe_browsing/safe_browsing_store_file.h"
#include "crypto/sha2.h"
#include "net/base/net_util.h"
-#include "sql/connection.h"
-#include "sql/statement.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"
#include "url/gurl.h"
diff --git a/components/history/core/browser/android/android_cache_database.cc b/components/history/core/browser/android/android_cache_database.cc
index 4f977d1..0b913e9 100644
--- a/components/history/core/browser/android/android_cache_database.cc
+++ b/components/history/core/browser/android/android_cache_database.cc
@@ -6,6 +6,7 @@
#include "base/files/file_util.h"
#include "components/history/core/browser/android/android_time.h"
+#include "sql/connection.h"
#include "sql/statement.h"
using base::Time;
diff --git a/components/history/core/browser/android/android_history_types.cc b/components/history/core/browser/android/android_history_types.cc
index 3fca5a9..dcdded3 100644
--- a/components/history/core/browser/android/android_history_types.cc
+++ b/components/history/core/browser/android/android_history_types.cc
@@ -4,6 +4,8 @@
#include "components/history/core/browser/android/android_history_types.h"
+#include "sql/statement.h"
+
namespace history {
namespace {
diff --git a/components/history/core/browser/android/android_history_types.h b/components/history/core/browser/android/android_history_types.h
index 39693a4..52906ce 100644
--- a/components/history/core/browser/android/android_history_types.h
+++ b/components/history/core/browser/android/android_history_types.h
@@ -10,7 +10,6 @@
#include "base/memory/scoped_ptr.h"
#include "components/history/core/browser/history_types.h"
#include "components/history/core/browser/keyword_id.h"
-#include "sql/statement.h"
namespace sql {
class Statement;
diff --git a/components/history/core/browser/android/android_urls_database.cc b/components/history/core/browser/android/android_urls_database.cc
index e6def4a..43238b9 100644
--- a/components/history/core/browser/android/android_urls_database.cc
+++ b/components/history/core/browser/android/android_urls_database.cc
@@ -5,6 +5,8 @@
#include "components/history/core/browser/android/android_urls_database.h"
#include "base/logging.h"
+#include "sql/connection.h"
+#include "sql/statement.h"
namespace history {
diff --git a/components/history/core/browser/android/android_urls_database.h b/components/history/core/browser/android/android_urls_database.h
index 2fb929b..6c1a5ca 100644
--- a/components/history/core/browser/android/android_urls_database.h
+++ b/components/history/core/browser/android/android_urls_database.h
@@ -7,6 +7,10 @@
#include "components/history/core/browser/android/android_history_types.h"
+namespace sql {
+class Connection;
+}
+
namespace history {
// The table is used to stores the raw url which was passed in from
diff --git a/components/history/core/browser/download_database.h b/components/history/core/browser/download_database.h
index b0b381c..e457756 100644
--- a/components/history/core/browser/download_database.h
+++ b/components/history/core/browser/download_database.h
@@ -11,7 +11,6 @@
#include "base/gtest_prod_util.h"
#include "base/threading/platform_thread.h"
#include "components/history/core/browser/download_types.h"
-#include "sql/meta_table.h"
namespace sql {
class Connection;
diff --git a/components/precache/core/precache_database_unittest.cc b/components/precache/core/precache_database_unittest.cc
index 2365816..e3c6534 100644
--- a/components/precache/core/precache_database_unittest.cc
+++ b/components/precache/core/precache_database_unittest.cc
@@ -13,7 +13,6 @@
#include "base/metrics/histogram_samples.h"
#include "base/metrics/statistics_recorder.h"
#include "base/time/time.h"
-#include "sql/connection.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
diff --git a/components/webdata/common/web_database.cc b/components/webdata/common/web_database.cc
index f091a2a..f294dfa 100644
--- a/components/webdata/common/web_database.cc
+++ b/components/webdata/common/web_database.cc
@@ -7,7 +7,6 @@
#include <algorithm>
#include "base/stl_util.h"
-#include "sql/statement.h"
#include "sql/transaction.h"
// Current version number. Note: when changing the current version number,
diff --git a/content/browser/media/webrtc_identity_store_backend.cc b/content/browser/media/webrtc_identity_store_backend.cc
index 32ef512..59ee816 100644
--- a/content/browser/media/webrtc_identity_store_backend.cc
+++ b/content/browser/media/webrtc_identity_store_backend.cc
@@ -10,7 +10,6 @@
#include "base/strings/string_util.h"
#include "content/public/browser/browser_thread.h"
#include "net/base/net_errors.h"
-#include "sql/error_delegate_util.h"
#include "sql/statement.h"
#include "sql/transaction.h"
#include "storage/browser/quota/special_storage_policy.h"
diff --git a/content/browser/media/webrtc_identity_store_backend.h b/content/browser/media/webrtc_identity_store_backend.h
index 8191974..57c16ab 100644
--- a/content/browser/media/webrtc_identity_store_backend.h
+++ b/content/browser/media/webrtc_identity_store_backend.h
@@ -7,10 +7,12 @@
#include <map>
#include <string>
+#include <vector>
+#include "base/callback.h"
+#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
#include "base/time/time.h"
-#include "sql/connection.h"
-#include "sql/meta_table.h"
class GURL;
diff --git a/content/browser/quota/quota_database_unittest.cc b/content/browser/quota/quota_database_unittest.cc
index 5b5b00e..8241c18 100644
--- a/content/browser/quota/quota_database_unittest.cc
+++ b/content/browser/quota/quota_database_unittest.cc
@@ -15,7 +15,6 @@
#include "sql/connection.h"
#include "sql/meta_table.h"
#include "sql/statement.h"
-#include "sql/transaction.h"
#include "storage/browser/quota/quota_database.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"