Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: components/web_restrictions/browser/web_restrictions_client.cc

Issue 2691263002: Revert of Remove header dependencies from sequence_checker.h to sequenced_worker_pool.h (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/variations/service/variations_service.cc ('k') | content/browser/blob_storage/blob_storage_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698