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