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

Side by Side Diff: android_webview/browser/net/aw_cookie_store_wrapper.cc

Issue 2962443002: Rename TaskRunner::RunsTasksOnCurrentThread() in //remoting, //android_webview (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « no previous file | remoting/host/it2me/it2me_native_messaging_host_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "android_webview/browser/net/aw_cookie_store_wrapper.h" 5 #include "android_webview/browser/net/aw_cookie_store_wrapper.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "android_webview/browser/net/init_native_callback.h" 9 #include "android_webview/browser/net/init_native_callback.h"
10 #include "base/memory/ref_counted_delete_on_sequence.h" 10 #include "base/memory/ref_counted_delete_on_sequence.h"
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 &SetCookieWithDetailsAsyncOnCookieThread, url, name, value, domain, path, 239 &SetCookieWithDetailsAsyncOnCookieThread, url, name, value, domain, path,
240 creation_time, expiration_time, last_access_time, secure, http_only, 240 creation_time, expiration_time, last_access_time, secure, http_only,
241 same_site, priority, CreateWrappedCallback<bool>(std::move(callback)))); 241 same_site, priority, CreateWrappedCallback<bool>(std::move(callback))));
242 } 242 }
243 243
244 void AwCookieStoreWrapper::SetCanonicalCookieAsync( 244 void AwCookieStoreWrapper::SetCanonicalCookieAsync(
245 std::unique_ptr<net::CanonicalCookie> cookie, 245 std::unique_ptr<net::CanonicalCookie> cookie,
246 bool secure_source, 246 bool secure_source,
247 bool modify_http_only, 247 bool modify_http_only,
248 SetCookiesCallback callback) { 248 SetCookiesCallback callback) {
249 DCHECK(client_task_runner_->RunsTasksOnCurrentThread()); 249 DCHECK(client_task_runner_->RunsTasksInCurrentSequence());
250 PostTaskToCookieStoreTaskRunner(base::BindOnce( 250 PostTaskToCookieStoreTaskRunner(base::BindOnce(
251 &SetCanonicalCookieAsyncOnCookieThread, std::move(cookie), secure_source, 251 &SetCanonicalCookieAsyncOnCookieThread, std::move(cookie), secure_source,
252 modify_http_only, CreateWrappedCallback<bool>(std::move(callback)))); 252 modify_http_only, CreateWrappedCallback<bool>(std::move(callback))));
253 } 253 }
254 254
255 void AwCookieStoreWrapper::GetCookiesWithOptionsAsync( 255 void AwCookieStoreWrapper::GetCookiesWithOptionsAsync(
256 const GURL& url, 256 const GURL& url,
257 const net::CookieOptions& options, 257 const net::CookieOptions& options,
258 GetCookiesCallback callback) { 258 GetCookiesCallback callback) {
259 DCHECK(client_task_runner_->RunsTasksInCurrentSequence()); 259 DCHECK(client_task_runner_->RunsTasksInCurrentSequence());
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 base::BindOnce(&AwCookieStoreWrapper::RunClosureCallback, 369 base::BindOnce(&AwCookieStoreWrapper::RunClosureCallback,
370 weak_factory_.GetWeakPtr(), std::move(callback))); 370 weak_factory_.GetWeakPtr(), std::move(callback)));
371 } 371 }
372 372
373 void AwCookieStoreWrapper::RunClosureCallback(base::OnceClosure callback) { 373 void AwCookieStoreWrapper::RunClosureCallback(base::OnceClosure callback) {
374 DCHECK(client_task_runner_->RunsTasksInCurrentSequence()); 374 DCHECK(client_task_runner_->RunsTasksInCurrentSequence());
375 std::move(callback).Run(); 375 std::move(callback).Run();
376 } 376 }
377 377
378 } // namespace android_webview 378 } // namespace android_webview
OLDNEW
« no previous file with comments | « no previous file | remoting/host/it2me/it2me_native_messaging_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698