| 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 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 cookie_monster.reset( | 142 cookie_monster.reset( |
| 143 new net::CookieMonster(nullptr, config.cookie_delegate.get())); | 143 new net::CookieMonster(nullptr, config.cookie_delegate.get())); |
| 144 } else { | 144 } else { |
| 145 scoped_refptr<base::SequencedTaskRunner> client_task_runner = | 145 scoped_refptr<base::SequencedTaskRunner> client_task_runner = |
| 146 config.client_task_runner; | 146 config.client_task_runner; |
| 147 scoped_refptr<base::SequencedTaskRunner> background_task_runner = | 147 scoped_refptr<base::SequencedTaskRunner> background_task_runner = |
| 148 config.background_task_runner; | 148 config.background_task_runner; |
| 149 | 149 |
| 150 if (!client_task_runner.get()) { | 150 if (!client_task_runner.get()) { |
| 151 client_task_runner = | 151 client_task_runner = |
| 152 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO); | 152 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO); |
| 153 } | 153 } |
| 154 | 154 |
| 155 if (!background_task_runner.get()) { | 155 if (!background_task_runner.get()) { |
| 156 background_task_runner = | 156 background_task_runner = |
| 157 BrowserThread::GetBlockingPool()->GetSequencedTaskRunner( | 157 BrowserThread::GetBlockingPool()->GetSequencedTaskRunner( |
| 158 base::SequencedWorkerPool::GetSequenceToken()); | 158 base::SequencedWorkerPool::GetSequenceToken()); |
| 159 } | 159 } |
| 160 | 160 |
| 161 scoped_refptr<net::SQLitePersistentCookieStore> sqlite_store( | 161 scoped_refptr<net::SQLitePersistentCookieStore> sqlite_store( |
| 162 new net::SQLitePersistentCookieStore( | 162 new net::SQLitePersistentCookieStore( |
| (...skipping 19 matching lines...) Expand all Loading... |
| 182 } | 182 } |
| 183 } | 183 } |
| 184 | 184 |
| 185 if (!config.cookieable_schemes.empty()) | 185 if (!config.cookieable_schemes.empty()) |
| 186 cookie_monster->SetCookieableSchemes(config.cookieable_schemes); | 186 cookie_monster->SetCookieableSchemes(config.cookieable_schemes); |
| 187 | 187 |
| 188 return std::move(cookie_monster); | 188 return std::move(cookie_monster); |
| 189 } | 189 } |
| 190 | 190 |
| 191 } // namespace content | 191 } // namespace content |
| OLD | NEW |