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/quota/quota_database.h" | 5 #include "webkit/quota/quota_database.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "app/sql/connection.h" | |
10 #include "app/sql/diagnostic_error_delegate.h" | |
11 #include "app/sql/meta_table.h" | |
12 #include "app/sql/statement.h" | |
13 #include "app/sql/transaction.h" | |
14 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
15 #include "base/bind.h" | 10 #include "base/bind.h" |
16 #include "base/file_util.h" | 11 #include "base/file_util.h" |
17 #include "base/time.h" | 12 #include "base/time.h" |
18 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
| 14 #include "sql/connection.h" |
| 15 #include "sql/diagnostic_error_delegate.h" |
| 16 #include "sql/meta_table.h" |
| 17 #include "sql/statement.h" |
| 18 #include "sql/transaction.h" |
19 #include "webkit/quota/special_storage_policy.h" | 19 #include "webkit/quota/special_storage_policy.h" |
20 | 20 |
21 namespace quota { | 21 namespace quota { |
22 namespace { | 22 namespace { |
23 | 23 |
24 // Definitions for database schema. | 24 // Definitions for database schema. |
25 | 25 |
26 const int kCurrentVersion = 3; | 26 const int kCurrentVersion = 3; |
27 const int kCompatibleVersion = 2; | 27 const int kCompatibleVersion = 2; |
28 | 28 |
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 if (lhs.origin < rhs.origin) return true; | 682 if (lhs.origin < rhs.origin) return true; |
683 if (rhs.origin < lhs.origin) return false; | 683 if (rhs.origin < lhs.origin) return false; |
684 if (lhs.type < rhs.type) return true; | 684 if (lhs.type < rhs.type) return true; |
685 if (rhs.type < lhs.type) return false; | 685 if (rhs.type < lhs.type) return false; |
686 if (lhs.used_count < rhs.used_count) return true; | 686 if (lhs.used_count < rhs.used_count) return true; |
687 if (rhs.used_count < lhs.used_count) return false; | 687 if (rhs.used_count < lhs.used_count) return false; |
688 return lhs.last_access_time < rhs.last_access_time; | 688 return lhs.last_access_time < rhs.last_access_time; |
689 } | 689 } |
690 | 690 |
691 } // quota namespace | 691 } // quota namespace |
OLD | NEW |