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

Side by Side Diff: sql/connection.h

Issue 1851913002: Convert //sql to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IWYU fixup in precache_url_table_unittest.cc Created 4 years, 8 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
« no previous file with comments | « components/precache/core/precache_url_table_unittest.cc ('k') | sql/connection.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 #ifndef SQL_CONNECTION_H_ 5 #ifndef SQL_CONNECTION_H_
6 #define SQL_CONNECTION_H_ 6 #define SQL_CONNECTION_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <map> 10 #include <map>
11 #include <memory>
11 #include <set> 12 #include <set>
12 #include <string> 13 #include <string>
13 #include <vector> 14 #include <vector>
14 15
15 #include "base/callback.h" 16 #include "base/callback.h"
16 #include "base/compiler_specific.h" 17 #include "base/compiler_specific.h"
17 #include "base/gtest_prod_util.h" 18 #include "base/gtest_prod_util.h"
18 #include "base/macros.h" 19 #include "base/macros.h"
19 #include "base/memory/ref_counted.h" 20 #include "base/memory/ref_counted.h"
20 #include "base/memory/scoped_ptr.h"
21 #include "base/threading/thread_restrictions.h" 21 #include "base/threading/thread_restrictions.h"
22 #include "base/time/time.h" 22 #include "base/time/time.h"
23 #include "sql/sql_export.h" 23 #include "sql/sql_export.h"
24 24
25 struct sqlite3; 25 struct sqlite3;
26 struct sqlite3_stmt; 26 struct sqlite3_stmt;
27 27
28 namespace base { 28 namespace base {
29 class FilePath; 29 class FilePath;
30 class HistogramBase; 30 class HistogramBase;
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 785
786 // Histogram for tracking time taken in updates (including commit and 786 // Histogram for tracking time taken in updates (including commit and
787 // autocommit). 787 // autocommit).
788 base::HistogramBase* update_time_histogram_; 788 base::HistogramBase* update_time_histogram_;
789 789
790 // Histogram for tracking time taken in all queries. 790 // Histogram for tracking time taken in all queries.
791 base::HistogramBase* query_time_histogram_; 791 base::HistogramBase* query_time_histogram_;
792 792
793 // Source for timing information, provided to allow tests to inject time 793 // Source for timing information, provided to allow tests to inject time
794 // changes. 794 // changes.
795 scoped_ptr<TimeSource> clock_; 795 std::unique_ptr<TimeSource> clock_;
796 796
797 // Stores the dump provider object when db is open. 797 // Stores the dump provider object when db is open.
798 scoped_ptr<ConnectionMemoryDumpProvider> memory_dump_provider_; 798 std::unique_ptr<ConnectionMemoryDumpProvider> memory_dump_provider_;
799 799
800 DISALLOW_COPY_AND_ASSIGN(Connection); 800 DISALLOW_COPY_AND_ASSIGN(Connection);
801 }; 801 };
802 802
803 } // namespace sql 803 } // namespace sql
804 804
805 #endif // SQL_CONNECTION_H_ 805 #endif // SQL_CONNECTION_H_
OLDNEW
« no previous file with comments | « components/precache/core/precache_url_table_unittest.cc ('k') | sql/connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698