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 <limits.h> | 7 #include <limits.h> |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 #include <string.h> | 10 #include <string.h> |
(...skipping 2026 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2037 ret = stmt.Succeeded(); | 2037 ret = stmt.Succeeded(); |
2038 } | 2038 } |
2039 | 2039 |
2040 // Best effort to put things back as they were before. | 2040 // Best effort to put things back as they were before. |
2041 const char kNoWritableSchema[] = "PRAGMA writable_schema = OFF"; | 2041 const char kNoWritableSchema[] = "PRAGMA writable_schema = OFF"; |
2042 ignore_result(Execute(kNoWritableSchema)); | 2042 ignore_result(Execute(kNoWritableSchema)); |
2043 | 2043 |
2044 return ret; | 2044 return ret; |
2045 } | 2045 } |
2046 | 2046 |
2047 bool Connection::ReportMemoryUsage( | 2047 bool Connection::ReportMemoryUsage(base::trace_event::ProcessMemoryDump* pmd, |
2048 base::trace_event::MemoryAllocatorDump* mad) { | 2048 const std::string& dump_name) { |
2049 return memory_dump_provider_ && | 2049 return memory_dump_provider_ && |
2050 memory_dump_provider_->ReportMemoryUsage(mad); | 2050 memory_dump_provider_->ReportMemoryUsage(pmd, dump_name); |
2051 } | 2051 } |
2052 | 2052 |
2053 base::TimeTicks TimeSource::Now() { | 2053 base::TimeTicks TimeSource::Now() { |
2054 return base::TimeTicks::Now(); | 2054 return base::TimeTicks::Now(); |
2055 } | 2055 } |
2056 | 2056 |
2057 } // namespace sql | 2057 } // namespace sql |
OLD | NEW |