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

Side by Side Diff: Source/modules/webdatabase/Database.h

Issue 1178593002: WebSQL: Added database open time statistics reporting. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | Source/modules/webdatabase/Database.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2013 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 bool getActualVersionForTransaction(String& version); 131 bool getActualVersionForTransaction(String& version);
132 132
133 void runTransaction( 133 void runTransaction(
134 SQLTransactionCallback*, 134 SQLTransactionCallback*,
135 SQLTransactionErrorCallback*, 135 SQLTransactionErrorCallback*,
136 VoidCallback* successCallback, 136 VoidCallback* successCallback,
137 bool readOnly, 137 bool readOnly,
138 const ChangeVersionData* = 0); 138 const ChangeVersionData* = 0);
139 Vector<String> performGetTableNames(); 139 Vector<String> performGetTableNames();
140 140
141 void reportOpenDatabaseResult(int errorSite, int webSqlErrorCode, int sqlite ErrorCode); 141 void reportOpenDatabaseResult(int errorSite, int webSqlErrorCode, int sqlite ErrorCode, double duration);
142 void reportChangeVersionResult(int errorSite, int webSqlErrorCode, int sqlit eErrorCode); 142 void reportChangeVersionResult(int errorSite, int webSqlErrorCode, int sqlit eErrorCode);
143 void reportStartTransactionResult(int errorSite, int webSqlErrorCode, int sq liteErrorCode); 143 void reportStartTransactionResult(int errorSite, int webSqlErrorCode, int sq liteErrorCode);
144 void reportCommitTransactionResult(int errorSite, int webSqlErrorCode, int s qliteErrorCode); 144 void reportCommitTransactionResult(int errorSite, int webSqlErrorCode, int s qliteErrorCode);
145 void reportExecuteStatementResult(int errorSite, int webSqlErrorCode, int sq liteErrorCode); 145 void reportExecuteStatementResult(int errorSite, int webSqlErrorCode, int sq liteErrorCode);
146 void reportVacuumDatabaseResult(int sqliteErrorCode); 146 void reportVacuumDatabaseResult(int sqliteErrorCode);
147 void logErrorMessage(const String&); 147 void logErrorMessage(const String&);
148 static const char* databaseInfoTableName(); 148 static const char* databaseInfoTableName();
149 #if !LOG_DISABLED || !ERROR_DISABLED 149 #if !LOG_DISABLED || !ERROR_DISABLED
150 String databaseDebugName() const { return m_contextThreadSecurityOrigin->toS tring() + "::" + m_name; } 150 String databaseDebugName() const { return m_contextThreadSecurityOrigin->toS tring() + "::" + m_name; }
151 #endif 151 #endif
(...skipping 24 matching lines...) Expand all
176 friend class ChangeVersionWrapper; 176 friend class ChangeVersionWrapper;
177 friend class DatabaseManager; 177 friend class DatabaseManager;
178 friend class SQLStatementBackend; 178 friend class SQLStatementBackend;
179 friend class SQLTransaction; 179 friend class SQLTransaction;
180 friend class SQLTransactionBackend; 180 friend class SQLTransactionBackend;
181 }; 181 };
182 182
183 } // namespace blink 183 } // namespace blink
184 184
185 #endif // Database_h 185 #endif // Database_h
OLDNEW
« no previous file with comments | « no previous file | Source/modules/webdatabase/Database.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698