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.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/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 |
19 using blink::WebSecurityOrigin; | 19 using blink::WebSecurityOrigin; |
20 using blink::WebString; | 20 using blink::WebString; |
21 | 21 |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 // We filter out errors which the backend doesn't act on to avoid | 190 // We filter out errors which the backend doesn't act on to avoid |
191 // a unnecessary ipc traffic, this method can get called at a fairly | 191 // a unnecessary ipc traffic, this method can get called at a fairly |
192 // high frequency (per-sqlstatement). | 192 // high frequency (per-sqlstatement). |
193 if (error == SQLITE_CORRUPT || error == SQLITE_NOTADB) { | 193 if (error == SQLITE_CORRUPT || error == SQLITE_NOTADB) { |
194 sender_->Send(new DatabaseHostMsg_HandleSqliteError( | 194 sender_->Send(new DatabaseHostMsg_HandleSqliteError( |
195 GetIdentifierFromOrigin(origin), database_name, error)); | 195 GetIdentifierFromOrigin(origin), database_name, error)); |
196 } | 196 } |
197 } | 197 } |
198 | 198 |
199 } // namespace content | 199 } // namespace content |
OLD | NEW |