OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "webkit/browser/appcache/appcache_storage_impl.h" | 5 #include "webkit/browser/appcache/appcache_storage_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <functional> | 8 #include <functional> |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
14 #include "base/file_util.h" | 14 #include "base/file_util.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/message_loop.h" | 16 #include "base/message_loop.h" |
17 #include "base/stl_util.h" | 17 #include "base/stl_util.h" |
18 #include "base/string_util.h" | 18 #include "base/strings/string_util.h" |
19 #include "net/base/cache_type.h" | 19 #include "net/base/cache_type.h" |
20 #include "net/base/net_errors.h" | 20 #include "net/base/net_errors.h" |
21 #include "sql/connection.h" | 21 #include "sql/connection.h" |
22 #include "sql/transaction.h" | 22 #include "sql/transaction.h" |
23 #include "webkit/browser/appcache/appcache.h" | 23 #include "webkit/browser/appcache/appcache.h" |
24 #include "webkit/browser/appcache/appcache_database.h" | 24 #include "webkit/browser/appcache/appcache_database.h" |
25 #include "webkit/browser/appcache/appcache_entry.h" | 25 #include "webkit/browser/appcache/appcache_entry.h" |
26 #include "webkit/browser/appcache/appcache_group.h" | 26 #include "webkit/browser/appcache/appcache_group.h" |
27 #include "webkit/browser/appcache/appcache_histograms.h" | 27 #include "webkit/browser/appcache/appcache_histograms.h" |
28 #include "webkit/browser/appcache/appcache_quota_client.h" | 28 #include "webkit/browser/appcache/appcache_quota_client.h" |
(...skipping 1782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1811 if (!is_incognito_) { | 1811 if (!is_incognito_) { |
1812 VLOG(1) << "Deleting existing appcache data and starting over."; | 1812 VLOG(1) << "Deleting existing appcache data and starting over."; |
1813 db_thread_->PostTask( | 1813 db_thread_->PostTask( |
1814 FROM_HERE, base::Bind(base::IgnoreResult(&file_util::Delete), | 1814 FROM_HERE, base::Bind(base::IgnoreResult(&file_util::Delete), |
1815 cache_directory_, true)); | 1815 cache_directory_, true)); |
1816 } | 1816 } |
1817 } | 1817 } |
1818 } | 1818 } |
1819 | 1819 |
1820 } // namespace appcache | 1820 } // namespace appcache |
OLD | NEW |