| 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/in_process_webkit/webkit_context.h" | 5 #include "chrome/browser/in_process_webkit/webkit_context.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "chrome/browser/browser_thread.h" | 8 #include "chrome/browser/browser_thread.h" |
| 9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 10 #include "chrome/common/chrome_switches.h" | |
| 11 | 10 |
| 12 WebKitContext::WebKitContext(Profile* profile, bool clear_local_state_on_exit) | 11 WebKitContext::WebKitContext(Profile* profile, bool clear_local_state_on_exit) |
| 13 : data_path_(profile->IsOffTheRecord() ? FilePath() : profile->GetPath()), | 12 : data_path_(profile->IsOffTheRecord() ? FilePath() : profile->GetPath()), |
| 14 is_incognito_(profile->IsOffTheRecord()), | 13 is_incognito_(profile->IsOffTheRecord()), |
| 15 clear_local_state_on_exit_(clear_local_state_on_exit), | 14 clear_local_state_on_exit_(clear_local_state_on_exit), |
| 16 ALLOW_THIS_IN_INITIALIZER_LIST( | 15 ALLOW_THIS_IN_INITIALIZER_LIST( |
| 17 dom_storage_context_(new DOMStorageContext(this))), | 16 dom_storage_context_(new DOMStorageContext(this))), |
| 18 ALLOW_THIS_IN_INITIALIZER_LIST( | 17 ALLOW_THIS_IN_INITIALIZER_LIST( |
| 19 indexed_db_context_(new IndexedDBContext(this))) { | 18 indexed_db_context_(new IndexedDBContext(this))) { |
| 20 } | 19 } |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 BrowserThread::PostTask( | 75 BrowserThread::PostTask( |
| 77 BrowserThread::WEBKIT, FROM_HERE, | 76 BrowserThread::WEBKIT, FROM_HERE, |
| 78 NewRunnableMethod(this, &WebKitContext::DeleteSessionStorageNamespace, | 77 NewRunnableMethod(this, &WebKitContext::DeleteSessionStorageNamespace, |
| 79 session_storage_namespace_id)); | 78 session_storage_namespace_id)); |
| 80 return; | 79 return; |
| 81 } | 80 } |
| 82 | 81 |
| 83 dom_storage_context_->DeleteSessionStorageNamespace( | 82 dom_storage_context_->DeleteSessionStorageNamespace( |
| 84 session_storage_namespace_id); | 83 session_storage_namespace_id); |
| 85 } | 84 } |
| OLD | NEW |