| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/in_process_webkit/webkit_context.h" | 5 #include "content/browser/in_process_webkit/webkit_context.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "content/browser/browser_thread.h" | 9 #include "content/public/browser/browser_thread.h" |
| 10 | 10 |
| 11 WebKitContext::WebKitContext( | 11 WebKitContext::WebKitContext( |
| 12 bool is_incognito, const FilePath& data_path, | 12 bool is_incognito, const FilePath& data_path, |
| 13 quota::SpecialStoragePolicy* special_storage_policy, | 13 quota::SpecialStoragePolicy* special_storage_policy, |
| 14 bool clear_local_state_on_exit, | 14 bool clear_local_state_on_exit, |
| 15 quota::QuotaManagerProxy* quota_manager_proxy, | 15 quota::QuotaManagerProxy* quota_manager_proxy, |
| 16 base::MessageLoopProxy* webkit_thread_loop) | 16 base::MessageLoopProxy* webkit_thread_loop) |
| 17 : data_path_(is_incognito ? FilePath() : data_path), | 17 : data_path_(is_incognito ? FilePath() : data_path), |
| 18 is_incognito_(is_incognito), | 18 is_incognito_(is_incognito), |
| 19 clear_local_state_on_exit_(clear_local_state_on_exit), | 19 clear_local_state_on_exit_(clear_local_state_on_exit), |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 BrowserThread::PostTask( | 83 BrowserThread::PostTask( |
| 84 BrowserThread::WEBKIT, FROM_HERE, | 84 BrowserThread::WEBKIT, FROM_HERE, |
| 85 base::Bind(&WebKitContext::DeleteSessionStorageNamespace, this, | 85 base::Bind(&WebKitContext::DeleteSessionStorageNamespace, this, |
| 86 session_storage_namespace_id)); | 86 session_storage_namespace_id)); |
| 87 return; | 87 return; |
| 88 } | 88 } |
| 89 | 89 |
| 90 dom_storage_context_->DeleteSessionStorageNamespace( | 90 dom_storage_context_->DeleteSessionStorageNamespace( |
| 91 session_storage_namespace_id); | 91 session_storage_namespace_id); |
| 92 } | 92 } |
| OLD | NEW |