summaryrefslogtreecommitdiffstats
path: root/chrome/browser/android/provider/blocking_ui_thread_async_request.cc
blob: 4eb9811ed63aa68e8a87b5f1d713d36fe82df0d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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_CURRENTLY_ON(content::BrowserThread::UI);
  request_completed_.Signal();
}