Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(540)

Side by Side Diff: webkit/quota/quota_database.cc

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/quota/quota_database.h ('k') | webkit/quota/quota_database_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/quota/quota_database.h" 5 #include "webkit/quota/quota_database.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 const base::Time& last_access_time, 114 const base::Time& last_access_time,
115 const base::Time& last_modified_time) 115 const base::Time& last_modified_time)
116 : origin(origin), 116 : origin(origin),
117 type(type), 117 type(type),
118 used_count(used_count), 118 used_count(used_count),
119 last_access_time(last_access_time), 119 last_access_time(last_access_time),
120 last_modified_time(last_modified_time) { 120 last_modified_time(last_modified_time) {
121 } 121 }
122 122
123 // QuotaDatabase ------------------------------------------------------------ 123 // QuotaDatabase ------------------------------------------------------------
124 QuotaDatabase::QuotaDatabase(const FilePath& path) 124 QuotaDatabase::QuotaDatabase(const base::FilePath& path)
125 : db_file_path_(path), 125 : db_file_path_(path),
126 is_recreating_(false), 126 is_recreating_(false),
127 is_disabled_(false) { 127 is_disabled_(false) {
128 } 128 }
129 129
130 QuotaDatabase::~QuotaDatabase() { 130 QuotaDatabase::~QuotaDatabase() {
131 if (db_.get()) { 131 if (db_.get()) {
132 db_->CommitTransaction(); 132 db_->CommitTransaction();
133 } 133 }
134 } 134 }
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 if (lhs.origin < rhs.origin) return true; 652 if (lhs.origin < rhs.origin) return true;
653 if (rhs.origin < lhs.origin) return false; 653 if (rhs.origin < lhs.origin) return false;
654 if (lhs.type < rhs.type) return true; 654 if (lhs.type < rhs.type) return true;
655 if (rhs.type < lhs.type) return false; 655 if (rhs.type < lhs.type) return false;
656 if (lhs.used_count < rhs.used_count) return true; 656 if (lhs.used_count < rhs.used_count) return true;
657 if (rhs.used_count < lhs.used_count) return false; 657 if (rhs.used_count < lhs.used_count) return false;
658 return lhs.last_access_time < rhs.last_access_time; 658 return lhs.last_access_time < rhs.last_access_time;
659 } 659 }
660 660
661 } // quota namespace 661 } // quota namespace
OLDNEW
« no previous file with comments | « webkit/quota/quota_database.h ('k') | webkit/quota/quota_database_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698