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/browser/renderer_host/database_message_filter.h" | 5 #include "content/browser/renderer_host/database_message_filter.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/metrics/histogram_macros.h" | 11 #include "base/metrics/histogram_macros.h" |
12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "base/threading/thread.h" | 14 #include "base/threading/thread.h" |
15 #include "base/trace_event/trace_event.h" | 15 #include "base/trace_event/trace_event.h" |
16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
17 #include "content/browser/bad_message.h" | 17 #include "content/browser/bad_message.h" |
18 #include "content/common/database_messages.h" | 18 #include "content/common/database_messages.h" |
19 #include "content/public/browser/user_metrics.h" | |
20 #include "content/public/common/origin_util.h" | 19 #include "content/public/common/origin_util.h" |
21 #include "content/public/common/result_codes.h" | 20 #include "content/public/common/result_codes.h" |
22 #include "storage/browser/database/database_util.h" | 21 #include "storage/browser/database/database_util.h" |
23 #include "storage/browser/database/vfs_backend.h" | 22 #include "storage/browser/database/vfs_backend.h" |
24 #include "storage/browser/quota/quota_manager.h" | 23 #include "storage/browser/quota/quota_manager.h" |
25 #include "storage/browser/quota/quota_manager_proxy.h" | 24 #include "storage/browser/quota/quota_manager_proxy.h" |
26 #include "storage/common/database/database_identifier.h" | 25 #include "storage/common/database/database_identifier.h" |
27 #include "third_party/sqlite/sqlite3.h" | 26 #include "third_party/sqlite/sqlite3.h" |
28 #include "url/origin.h" | 27 #include "url/origin.h" |
29 | 28 |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 void DatabaseMessageFilter::OnDatabaseScheduledForDeletion( | 408 void DatabaseMessageFilter::OnDatabaseScheduledForDeletion( |
410 const std::string& origin_identifier, | 409 const std::string& origin_identifier, |
411 const base::string16& database_name) { | 410 const base::string16& database_name) { |
412 DCHECK_CURRENTLY_ON(BrowserThread::FILE); | 411 DCHECK_CURRENTLY_ON(BrowserThread::FILE); |
413 Send(new DatabaseMsg_CloseImmediately( | 412 Send(new DatabaseMsg_CloseImmediately( |
414 url::Origin(storage::GetOriginFromIdentifier(origin_identifier)), | 413 url::Origin(storage::GetOriginFromIdentifier(origin_identifier)), |
415 database_name)); | 414 database_name)); |
416 } | 415 } |
417 | 416 |
418 } // namespace content | 417 } // namespace content |
OLD | NEW |