OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/net/sqlite_persistent_cookie_store.h" | 5 #include "chrome/browser/net/sqlite_persistent_cookie_store.h" |
6 | 6 |
7 #include <list> | 7 #include <list> |
8 | 8 |
9 #include "app/sql/statement.h" | 9 #include "app/sql/statement.h" |
10 #include "app/sql/transaction.h" | 10 #include "app/sql/transaction.h" |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
| 13 #include "base/histogram.h" |
13 #include "base/logging.h" | 14 #include "base/logging.h" |
14 #include "base/ref_counted.h" | 15 #include "base/ref_counted.h" |
15 #include "base/scoped_ptr.h" | 16 #include "base/scoped_ptr.h" |
16 #include "base/string_util.h" | 17 #include "base/string_util.h" |
17 #include "base/thread.h" | 18 #include "base/thread.h" |
18 #include "chrome/browser/chrome_thread.h" | 19 #include "chrome/browser/chrome_thread.h" |
19 #include "chrome/browser/diagnostics/sqlite_diagnostics.h" | 20 #include "chrome/browser/diagnostics/sqlite_diagnostics.h" |
20 | 21 |
21 using base::Time; | 22 using base::Time; |
22 | 23 |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 const net::CookieMonster::CanonicalCookie& cc) { | 437 const net::CookieMonster::CanonicalCookie& cc) { |
437 if (backend_.get()) | 438 if (backend_.get()) |
438 backend_->DeleteCookie(cc); | 439 backend_->DeleteCookie(cc); |
439 } | 440 } |
440 | 441 |
441 // static | 442 // static |
442 void SQLitePersistentCookieStore::ClearLocalState( | 443 void SQLitePersistentCookieStore::ClearLocalState( |
443 const FilePath& path) { | 444 const FilePath& path) { |
444 file_util::Delete(path, false); | 445 file_util::Delete(path, false); |
445 } | 446 } |
OLD | NEW |