| 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/chrome_thread.h" |   14 #include "chrome/browser/chrome_thread.h" | 
|   15 #include "chrome/browser/host_content_settings_map.h" |   15 #include "chrome/browser/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/browser/renderer_host/database_permission_request.h" |   18 #include "chrome/browser/renderer_host/database_permission_request.h" | 
|   19 #include "chrome/common/render_messages.h" |   19 #include "chrome/common/render_messages.h" | 
|   20 #include "googleurl/src/gurl.h" |   20 #include "googleurl/src/gurl.h" | 
|   21 #include "third_party/sqlite/preprocessed/sqlite3.h" |   21 #include "third_party/sqlite/sqlite3.h" | 
|   22 #include "third_party/WebKit/WebKit/chromium/public/WebSecurityOrigin.h" |   22 #include "third_party/WebKit/WebKit/chromium/public/WebSecurityOrigin.h" | 
|   23 #include "webkit/database/database_util.h" |   23 #include "webkit/database/database_util.h" | 
|   24 #include "webkit/database/vfs_backend.h" |   24 #include "webkit/database/vfs_backend.h" | 
|   25  |   25  | 
|   26 using WebKit::WebSecurityOrigin; |   26 using WebKit::WebSecurityOrigin; | 
|   27 using webkit_database::DatabaseTracker; |   27 using webkit_database::DatabaseTracker; | 
|   28 using webkit_database::DatabaseUtil; |   28 using webkit_database::DatabaseUtil; | 
|   29 using webkit_database::VfsBackend; |   29 using webkit_database::VfsBackend; | 
|   30  |   30  | 
|   31 const int kNumDeleteRetries = 2; |   31 const int kNumDeleteRetries = 2; | 
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  447                                         database_size, space_available)); |  447                                         database_size, space_available)); | 
|  448   } |  448   } | 
|  449 } |  449 } | 
|  450  |  450  | 
|  451 void DatabaseDispatcherHost::OnDatabaseScheduledForDeletion( |  451 void DatabaseDispatcherHost::OnDatabaseScheduledForDeletion( | 
|  452     const string16& origin_identifier, |  452     const string16& origin_identifier, | 
|  453     const string16& database_name) { |  453     const string16& database_name) { | 
|  454   DCHECK(ChromeThread::CurrentlyOn(ChromeThread::FILE)); |  454   DCHECK(ChromeThread::CurrentlyOn(ChromeThread::FILE)); | 
|  455   Send(new ViewMsg_DatabaseCloseImmediately(origin_identifier, database_name)); |  455   Send(new ViewMsg_DatabaseCloseImmediately(origin_identifier, database_name)); | 
|  456 } |  456 } | 
| OLD | NEW |