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

Unified Diff: chrome/browser/android/provider/blocking_ui_thread_async_request.cc

Issue 10912172: [Android] Upstream ChromeBrowserProvider, the Android port ContentProvider implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: temporarily removing tests until we can compile and run them (soon) Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
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();
+}

Powered by Google App Engine
This is Rietveld 408576698