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 1971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1982 ret = stmt.Succeeded(); | 1982 ret = stmt.Succeeded(); |
1983 } | 1983 } |
1984 | 1984 |
1985 // Best effort to put things back as they were before. | 1985 // Best effort to put things back as they were before. |
1986 const char kNoWritableSchema[] = "PRAGMA writable_schema = OFF"; | 1986 const char kNoWritableSchema[] = "PRAGMA writable_schema = OFF"; |
1987 ignore_result(Execute(kNoWritableSchema)); | 1987 ignore_result(Execute(kNoWritableSchema)); |
1988 | 1988 |
1989 return ret; | 1989 return ret; |
1990 } | 1990 } |
1991 | 1991 |
| 1992 bool Connection::ReportMemoryUsage( |
| 1993 base::trace_event::MemoryAllocatorDump* mad) { |
| 1994 return memory_dump_provider_ && |
| 1995 memory_dump_provider_->ReportMemoryUsage(mad); |
| 1996 } |
| 1997 |
1992 base::TimeTicks TimeSource::Now() { | 1998 base::TimeTicks TimeSource::Now() { |
1993 return base::TimeTicks::Now(); | 1999 return base::TimeTicks::Now(); |
1994 } | 2000 } |
1995 | 2001 |
1996 } // namespace sql | 2002 } // namespace sql |
OLD | NEW |