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 "sql/connection.h" | 5 #include "sql/connection.h" |
6 | 6 |
7 #include <string.h> | 7 #include <string.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
275 Connection::Connection() | 275 Connection::Connection() |
276 : db_(NULL), | 276 : db_(NULL), |
277 page_size_(0), | 277 page_size_(0), |
278 cache_size_(0), | 278 cache_size_(0), |
279 exclusive_locking_(false), | 279 exclusive_locking_(false), |
280 restrict_to_user_(false), | 280 restrict_to_user_(false), |
281 transaction_nesting_(0), | 281 transaction_nesting_(0), |
282 needs_rollback_(false), | 282 needs_rollback_(false), |
283 in_memory_(false), | 283 in_memory_(false), |
284 poisoned_(false), | 284 poisoned_(false), |
285 mmap_disabled_(false), | |
286 mmap_enabled_(false), | |
287 total_changes_at_last_release_(0), | |
michaeln
2015/09/23 22:17:22
lgtm
maybe use c++ 11 feature that lets you assig
| |
285 stats_histogram_(NULL), | 288 stats_histogram_(NULL), |
286 commit_time_histogram_(NULL), | 289 commit_time_histogram_(NULL), |
287 autocommit_time_histogram_(NULL), | 290 autocommit_time_histogram_(NULL), |
288 update_time_histogram_(NULL), | 291 update_time_histogram_(NULL), |
289 query_time_histogram_(NULL), | 292 query_time_histogram_(NULL), |
290 clock_(new TimeSource()) { | 293 clock_(new TimeSource()) { |
291 } | 294 } |
292 | 295 |
293 Connection::~Connection() { | 296 Connection::~Connection() { |
294 Close(); | 297 Close(); |
(...skipping 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1476 ignore_result(Execute(kNoWritableSchema)); | 1479 ignore_result(Execute(kNoWritableSchema)); |
1477 | 1480 |
1478 return ret; | 1481 return ret; |
1479 } | 1482 } |
1480 | 1483 |
1481 base::TimeTicks TimeSource::Now() { | 1484 base::TimeTicks TimeSource::Now() { |
1482 return base::TimeTicks::Now(); | 1485 return base::TimeTicks::Now(); |
1483 } | 1486 } |
1484 | 1487 |
1485 } // namespace sql | 1488 } // namespace sql |
OLD | NEW |