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 "content/common_child/web_database_observer_impl.h" | 5 #include "content/child/web_database_observer_impl.h" |
6 | 6 |
7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
8 #include "base/string16.h" | 8 #include "base/string16.h" |
9 #include "content/common/database_messages.h" | 9 #include "content/common/database_messages.h" |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDatabase.h" |
10 #include "third_party/WebKit/public/platform/WebString.h" | 11 #include "third_party/WebKit/public/platform/WebString.h" |
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDatabase.h" | |
12 #include "third_party/sqlite/sqlite3.h" | 12 #include "third_party/sqlite/sqlite3.h" |
13 | 13 |
14 using WebKit::WebDatabase; | 14 using WebKit::WebDatabase; |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 namespace { | 17 namespace { |
18 | 18 |
19 const int kResultHistogramSize = 50; | 19 const int kResultHistogramSize = 50; |
20 const int kCallsiteHistogramSize = 10; | 20 const int kCallsiteHistogramSize = 10; |
21 | 21 |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 // high frequency (per-sqlstatement). | 160 // high frequency (per-sqlstatement). |
161 if (error == SQLITE_CORRUPT || error == SQLITE_NOTADB) { | 161 if (error == SQLITE_CORRUPT || error == SQLITE_NOTADB) { |
162 sender_->Send(new DatabaseHostMsg_HandleSqliteError( | 162 sender_->Send(new DatabaseHostMsg_HandleSqliteError( |
163 database.securityOrigin().databaseIdentifier(), | 163 database.securityOrigin().databaseIdentifier(), |
164 database.name(), | 164 database.name(), |
165 error)); | 165 error)); |
166 } | 166 } |
167 } | 167 } |
168 | 168 |
169 } // namespace content | 169 } // namespace content |
OLD | NEW |