| Index: chrome/browser/android/provider/blocking_ui_thread_async_request.cc
|
| diff --git a/chrome/browser/android/provider/blocking_ui_thread_async_request.cc b/chrome/browser/android/provider/blocking_ui_thread_async_request.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7267e583ef55d4d8ae29219d8fcf466f6ab83ec3
|
| --- /dev/null
|
| +++ b/chrome/browser/android/provider/blocking_ui_thread_async_request.cc
|
| @@ -0,0 +1,17 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "chrome/browser/android/provider/blocking_ui_thread_async_request.h"
|
| +
|
| +BlockingUIThreadAsyncRequest::BlockingUIThreadAsyncRequest()
|
| + : request_completed_(false, false) {
|
| +}
|
| +
|
| +void BlockingUIThreadAsyncRequest::RequestCompleted() {
|
| + // Currently all our use cases receive their request response in the UI
|
| + // thread (the same thread that made the request). However this is not
|
| + // a design constraint and can be changed if ever needed.
|
| + DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
|
| + request_completed_.Signal();
|
| +}
|
|
|