OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/child/web_database_observer_impl.h" | 5 #include "content/child/web_database_observer_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram_macros.h" |
9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
11 #include "base/threading/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
12 #include "content/child/storage_util.h" | 12 #include "content/child/storage_util.h" |
13 #include "content/common/database_messages.h" | 13 #include "content/common/database_messages.h" |
14 #include "storage/common/database/database_identifier.h" | 14 #include "storage/common/database/database_identifier.h" |
15 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" | 15 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" |
16 #include "third_party/WebKit/public/platform/WebString.h" | 16 #include "third_party/WebKit/public/platform/WebString.h" |
17 #include "third_party/sqlite/sqlite3.h" | 17 #include "third_party/sqlite/sqlite3.h" |
18 | 18 |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 // We filter out errors which the backend doesn't act on to avoid | 189 // We filter out errors which the backend doesn't act on to avoid |
190 // a unnecessary ipc traffic, this method can get called at a fairly | 190 // a unnecessary ipc traffic, this method can get called at a fairly |
191 // high frequency (per-sqlstatement). | 191 // high frequency (per-sqlstatement). |
192 if (error == SQLITE_CORRUPT || error == SQLITE_NOTADB) { | 192 if (error == SQLITE_CORRUPT || error == SQLITE_NOTADB) { |
193 sender_->Send( | 193 sender_->Send( |
194 new DatabaseHostMsg_HandleSqliteError(origin, database_name, error)); | 194 new DatabaseHostMsg_HandleSqliteError(origin, database_name, error)); |
195 } | 195 } |
196 } | 196 } |
197 | 197 |
198 } // namespace content | 198 } // namespace content |
OLD | NEW |