Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / android / provider / blocking_ui_thread_async_request.cc
blob4eb9811ed63aa68e8a87b5f1d713d36fe82df0d9
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/android/provider/blocking_ui_thread_async_request.h"
7 BlockingUIThreadAsyncRequest::BlockingUIThreadAsyncRequest()
8 : request_completed_(false, false) {
11 void BlockingUIThreadAsyncRequest::RequestCompleted() {
12 // Currently all our use cases receive their request response in the UI
13 // thread (the same thread that made the request). However this is not
14 // a design constraint and can be changed if ever needed.
15 DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
16 request_completed_.Signal();