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