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

Side by Side Diff: sql/proxy.h

Issue 1145833002: [sql] Stats gathering for sql/ APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build breaks. BUILD.gn needs to follow sql.gyp, tracker had histogram tag set after open, EVEN… Created 5 years, 7 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
OLDNEW
(Empty)
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SQL_PROXY_H_
6 #define SQL_PROXY_H_
7
8 #include "sql/sql_export.h"
9 #include "third_party/sqlite/sqlite3.h"
10
11 // TODO(shess): third_party/sqlite does not track component build correctly, so
12 // each shared library gets a private copy of everything, so sqlite3_* calls
13 // outside of the main sql/ component don't work right. Hack around this by
14 // adding pass-through functions while I land a separate fix for the component
15 // issue.
rmcilroy 2015/05/21 22:54:48 nit - mention this is just required for tests (ass
Scott Hess - ex-Googler 2015/05/21 23:42:37 Done.
16
17 // http://crbug.com/489444
18
19 namespace sql {
20
21 SQL_EXPORT int sqlite3_create_function_v2(
22 sqlite3 *db,
23 const char *zFunctionName,
24 int nArg,
25 int eTextRep,
26 void *pApp,
27 void (*xFunc)(sqlite3_context*,int,sqlite3_value**),
28 void (*xStep)(sqlite3_context*,int,sqlite3_value**),
29 void (*xFinal)(sqlite3_context*),
30 void (*xDestroy)(void*));
31 SQL_EXPORT void *sqlite3_commit_hook(sqlite3*, int(*)(void*), void*);
32
33 } // namespace sql
34
35 #endif // SQL_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698