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

Unified Diff: Source/platform/exported/WebDataConsumerHandle.cpp

Issue 1214613003: WebDataConsumerHandle shouldn't be used on non-Oilpan threads. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/blink_platform.gypi ('k') | public/platform/WebDataConsumerHandle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/exported/WebDataConsumerHandle.cpp
diff --git a/Source/platform/exported/WebDataConsumerHandle.cpp b/Source/platform/exported/WebDataConsumerHandle.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..011e4da9f501febec8311439bb8e2f74fdccc754
--- /dev/null
+++ b/Source/platform/exported/WebDataConsumerHandle.cpp
@@ -0,0 +1,29 @@
+// Copyright 2015 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 "config.h"
+#include "public/platform/WebDataConsumerHandle.h"
+
+#include "platform/heap/Handle.h"
+
+namespace blink {
+
+WebDataConsumerHandle::WebDataConsumerHandle()
+{
+ ASSERT(ThreadState::current());
+}
+
+WebDataConsumerHandle::~WebDataConsumerHandle()
+{
+ ASSERT(ThreadState::current());
+}
+
+PassOwnPtr<WebDataConsumerHandle::Reader> WebDataConsumerHandle::obtainReader(WebDataConsumerHandle::Client* client)
+{
+ ASSERT(ThreadState::current());
+ return adoptPtr(obtainReaderInternal(client));
+}
+
+} // namespace blink
+
« no previous file with comments | « Source/platform/blink_platform.gypi ('k') | public/platform/WebDataConsumerHandle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698