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

Unified Diff: content/child/blink_platform_impl.cc

Issue 1682423002: Remove WebWaitableEvent and replace it with WaitableEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android build Created 4 years, 10 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 | « content/child/blink_platform_impl.h ('k') | third_party/WebKit/Source/core/html/parser/HTMLParserThread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/blink_platform_impl.cc
diff --git a/content/child/blink_platform_impl.cc b/content/child/blink_platform_impl.cc
index 88b74059454297c6e86f1f41621e344d133014d6..a4287bfc5796513c828343490b8e3cb2c0d538d5 100644
--- a/content/child/blink_platform_impl.cc
+++ b/content/child/blink_platform_impl.cc
@@ -67,7 +67,6 @@
#include "third_party/WebKit/public/platform/WebSecurityOrigin.h"
#include "third_party/WebKit/public/platform/WebString.h"
#include "third_party/WebKit/public/platform/WebURL.h"
-#include "third_party/WebKit/public/platform/WebWaitableEvent.h"
#include "ui/base/layout.h"
#include "ui/events/gestures/blink/web_gesture_curve_impl.h"
#include "ui/events/keycodes/dom/keycode_converter.h"
@@ -86,27 +85,6 @@ namespace content {
namespace {
-class WebWaitableEventImpl : public blink::WebWaitableEvent {
- public:
- WebWaitableEventImpl(ResetPolicy policy, InitialState state) {
- bool manual_reset = policy == ResetPolicy::Manual;
- bool initially_signaled = state == InitialState::Signaled;
- impl_.reset(new base::WaitableEvent(manual_reset, initially_signaled));
- }
- ~WebWaitableEventImpl() override {}
-
- void reset() override { impl_->Reset(); }
- void wait() override { impl_->Wait(); }
- void signal() override { impl_->Signal(); }
-
- base::WaitableEvent* impl() {
- return impl_.get();
- }
-
- private:
- scoped_ptr<base::WaitableEvent> impl_;
- DISALLOW_COPY_AND_ASSIGN(WebWaitableEventImpl);
-};
} // namespace
@@ -509,22 +487,6 @@ blink::WebThread* BlinkPlatformImpl::currentThread() {
return static_cast<blink::WebThread*>(current_thread_slot_.Get());
}
-blink::WebWaitableEvent* BlinkPlatformImpl::createWaitableEvent(
- blink::WebWaitableEvent::ResetPolicy policy,
- blink::WebWaitableEvent::InitialState state) {
- return new WebWaitableEventImpl(policy, state);
-}
-
-blink::WebWaitableEvent* BlinkPlatformImpl::waitMultipleEvents(
- const blink::WebVector<blink::WebWaitableEvent*>& web_events) {
- std::vector<base::WaitableEvent*> events;
- for (size_t i = 0; i < web_events.size(); ++i)
- events.push_back(static_cast<WebWaitableEventImpl*>(web_events[i])->impl());
- size_t idx = base::WaitableEvent::WaitMany(events.data(), events.size());
- DCHECK_LT(idx, web_events.size());
- return web_events[idx];
-}
-
void BlinkPlatformImpl::registerMemoryDumpProvider(
blink::WebMemoryDumpProvider* wmdp, const char* name) {
WebMemoryDumpProviderAdapter* wmdp_adapter =
« no previous file with comments | « content/child/blink_platform_impl.h ('k') | third_party/WebKit/Source/core/html/parser/HTMLParserThread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698