OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/renderer_host/database_dispatcher_host.h" | 5 #include "chrome/browser/renderer_host/database_dispatcher_host.h" |
6 | 6 |
7 #if defined(OS_POSIX) | 7 #if defined(OS_POSIX) |
8 #include "base/file_descriptor_posix.h" | 8 #include "base/file_descriptor_posix.h" |
9 #endif | 9 #endif |
10 | 10 |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "base/thread.h" | 12 #include "base/thread.h" |
13 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
14 #include "chrome/browser/browser_thread.h" | 14 #include "chrome/browser/browser_thread.h" |
15 #include "chrome/browser/host_content_settings_map.h" | 15 #include "chrome/browser/content_settings/host_content_settings_map.h" |
16 #include "chrome/browser/net/chrome_url_request_context.h" | 16 #include "chrome/browser/net/chrome_url_request_context.h" |
17 #include "chrome/browser/renderer_host/browser_render_process_host.h" | 17 #include "chrome/browser/renderer_host/browser_render_process_host.h" |
18 #include "chrome/common/render_messages.h" | 18 #include "chrome/common/render_messages.h" |
19 #include "googleurl/src/gurl.h" | 19 #include "googleurl/src/gurl.h" |
20 #include "third_party/sqlite/sqlite3.h" | 20 #include "third_party/sqlite/sqlite3.h" |
21 #include "third_party/WebKit/WebKit/chromium/public/WebSecurityOrigin.h" | 21 #include "third_party/WebKit/WebKit/chromium/public/WebSecurityOrigin.h" |
22 #include "webkit/database/database_util.h" | 22 #include "webkit/database/database_util.h" |
23 #include "webkit/database/vfs_backend.h" | 23 #include "webkit/database/vfs_backend.h" |
24 | 24 |
25 using WebKit::WebSecurityOrigin; | 25 using WebKit::WebSecurityOrigin; |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 database_size, space_available)); | 428 database_size, space_available)); |
429 } | 429 } |
430 } | 430 } |
431 | 431 |
432 void DatabaseDispatcherHost::OnDatabaseScheduledForDeletion( | 432 void DatabaseDispatcherHost::OnDatabaseScheduledForDeletion( |
433 const string16& origin_identifier, | 433 const string16& origin_identifier, |
434 const string16& database_name) { | 434 const string16& database_name) { |
435 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE)); | 435 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE)); |
436 Send(new ViewMsg_DatabaseCloseImmediately(origin_identifier, database_name)); | 436 Send(new ViewMsg_DatabaseCloseImmediately(origin_identifier, database_name)); |
437 } | 437 } |
OLD | NEW |