OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/net/quota_policy_cookie_store.h" | 5 #include "content/browser/net/quota_policy_cookie_store.h" |
6 | 6 |
7 #include <list> | 7 #include <list> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 config.background_task_runner; | 147 config.background_task_runner; |
148 | 148 |
149 if (!client_task_runner.get()) { | 149 if (!client_task_runner.get()) { |
150 client_task_runner = | 150 client_task_runner = |
151 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO); | 151 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO); |
152 } | 152 } |
153 | 153 |
154 if (!background_task_runner.get()) { | 154 if (!background_task_runner.get()) { |
155 background_task_runner = | 155 background_task_runner = |
156 BrowserThread::GetBlockingPool()->GetSequencedTaskRunner( | 156 BrowserThread::GetBlockingPool()->GetSequencedTaskRunner( |
157 BrowserThread::GetBlockingPool()->GetSequenceToken()); | 157 base::SequencedWorkerPool::GetSequenceToken()); |
158 } | 158 } |
159 | 159 |
160 scoped_refptr<net::SQLitePersistentCookieStore> sqlite_store( | 160 scoped_refptr<net::SQLitePersistentCookieStore> sqlite_store( |
161 new net::SQLitePersistentCookieStore( | 161 new net::SQLitePersistentCookieStore( |
162 config.path, | 162 config.path, |
163 client_task_runner, | 163 client_task_runner, |
164 background_task_runner, | 164 background_task_runner, |
165 (config.session_cookie_mode == | 165 (config.session_cookie_mode == |
166 CookieStoreConfig::RESTORED_SESSION_COOKIES), | 166 CookieStoreConfig::RESTORED_SESSION_COOKIES), |
167 config.crypto_delegate)); | 167 config.crypto_delegate)); |
(...skipping 10 matching lines...) Expand all Loading... |
178 (config.session_cookie_mode == | 178 (config.session_cookie_mode == |
179 CookieStoreConfig::RESTORED_SESSION_COOKIES)) { | 179 CookieStoreConfig::RESTORED_SESSION_COOKIES)) { |
180 cookie_monster->SetPersistSessionCookies(true); | 180 cookie_monster->SetPersistSessionCookies(true); |
181 } | 181 } |
182 } | 182 } |
183 | 183 |
184 return cookie_monster; | 184 return cookie_monster; |
185 } | 185 } |
186 | 186 |
187 } // namespace content | 187 } // namespace content |
OLD | NEW |