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 "components/web_restrictions/browser/web_restrictions_client.h" | 5 #include "components/web_restrictions/browser/web_restrictions_client.h" |
6 | 6 |
7 #include "base/android/jni_string.h" | 7 #include "base/android/jni_string.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/task_scheduler/post_task.h" | 11 #include "base/task_scheduler/post_task.h" |
| 12 #include "base/threading/sequenced_worker_pool.h" |
12 #include "base/threading/thread_restrictions.h" | 13 #include "base/threading/thread_restrictions.h" |
13 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
14 #include "jni/WebRestrictionsClient_jni.h" | 15 #include "jni/WebRestrictionsClient_jni.h" |
15 | 16 |
16 using base::android::ScopedJavaGlobalRef; | 17 using base::android::ScopedJavaGlobalRef; |
17 | 18 |
18 namespace web_restrictions { | 19 namespace web_restrictions { |
19 | 20 |
20 namespace { | 21 namespace { |
21 | 22 |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 base::AutoLock lock(lock_); | 244 base::AutoLock lock(lock_); |
244 cache_data_.erase(url); | 245 cache_data_.erase(url); |
245 } | 246 } |
246 | 247 |
247 void WebRestrictionsClient::Cache::Clear() { | 248 void WebRestrictionsClient::Cache::Clear() { |
248 base::AutoLock lock(lock_); | 249 base::AutoLock lock(lock_); |
249 cache_data_.clear(); | 250 cache_data_.clear(); |
250 } | 251 } |
251 | 252 |
252 } // namespace web_restrictions | 253 } // namespace web_restrictions |
OLD | NEW |