OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/appcache/appcache_storage_impl.h" | 5 #include "webkit/appcache/appcache_storage_impl.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
12 #include "base/stl_util-inl.h" | 12 #include "base/stl_util.h" |
13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
14 #include "net/base/cache_type.h" | 14 #include "net/base/cache_type.h" |
15 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.h" |
16 #include "sql/connection.h" | 16 #include "sql/connection.h" |
17 #include "sql/transaction.h" | 17 #include "sql/transaction.h" |
18 #include "webkit/appcache/appcache.h" | 18 #include "webkit/appcache/appcache.h" |
19 #include "webkit/appcache/appcache_database.h" | 19 #include "webkit/appcache/appcache_database.h" |
20 #include "webkit/appcache/appcache_entry.h" | 20 #include "webkit/appcache/appcache_entry.h" |
21 #include "webkit/appcache/appcache_group.h" | 21 #include "webkit/appcache/appcache_group.h" |
22 #include "webkit/appcache/appcache_histograms.h" | 22 #include "webkit/appcache/appcache_histograms.h" |
(...skipping 1548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1571 Disable(); | 1571 Disable(); |
1572 if (!is_incognito_) { | 1572 if (!is_incognito_) { |
1573 VLOG(1) << "Deleting existing appcache data and starting over."; | 1573 VLOG(1) << "Deleting existing appcache data and starting over."; |
1574 AppCacheThread::PostTask(AppCacheThread::db(), FROM_HERE, | 1574 AppCacheThread::PostTask(AppCacheThread::db(), FROM_HERE, |
1575 NewRunnableFunction(DeleteDirectory, cache_directory_)); | 1575 NewRunnableFunction(DeleteDirectory, cache_directory_)); |
1576 } | 1576 } |
1577 } | 1577 } |
1578 } | 1578 } |
1579 | 1579 |
1580 } // namespace appcache | 1580 } // namespace appcache |
OLD | NEW |