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/public/browser/browser_thread.h" | 9 #include "content/public/browser/browser_thread.h" |
10 | 10 |
| 11 using content::BrowserThread; |
| 12 |
11 WebKitContext::WebKitContext( | 13 WebKitContext::WebKitContext( |
12 bool is_incognito, const FilePath& data_path, | 14 bool is_incognito, const FilePath& data_path, |
13 quota::SpecialStoragePolicy* special_storage_policy, | 15 quota::SpecialStoragePolicy* special_storage_policy, |
14 bool clear_local_state_on_exit, | 16 bool clear_local_state_on_exit, |
15 quota::QuotaManagerProxy* quota_manager_proxy, | 17 quota::QuotaManagerProxy* quota_manager_proxy, |
16 base::MessageLoopProxy* webkit_thread_loop) | 18 base::MessageLoopProxy* webkit_thread_loop) |
17 : data_path_(is_incognito ? FilePath() : data_path), | 19 : data_path_(is_incognito ? FilePath() : data_path), |
18 is_incognito_(is_incognito), | 20 is_incognito_(is_incognito), |
19 clear_local_state_on_exit_(clear_local_state_on_exit), | 21 clear_local_state_on_exit_(clear_local_state_on_exit), |
20 ALLOW_THIS_IN_INITIALIZER_LIST( | 22 ALLOW_THIS_IN_INITIALIZER_LIST( |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 BrowserThread::PostTask( | 85 BrowserThread::PostTask( |
84 BrowserThread::WEBKIT, FROM_HERE, | 86 BrowserThread::WEBKIT, FROM_HERE, |
85 base::Bind(&WebKitContext::DeleteSessionStorageNamespace, this, | 87 base::Bind(&WebKitContext::DeleteSessionStorageNamespace, this, |
86 session_storage_namespace_id)); | 88 session_storage_namespace_id)); |
87 return; | 89 return; |
88 } | 90 } |
89 | 91 |
90 dom_storage_context_->DeleteSessionStorageNamespace( | 92 dom_storage_context_->DeleteSessionStorageNamespace( |
91 session_storage_namespace_id); | 93 session_storage_namespace_id); |
92 } | 94 } |
OLD | NEW |