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

Unified Diff: sky/viewer/platform/platform_impl.cc

Issue 681173002: Delete WebWaitableEvent (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 | « sky/viewer/platform/platform_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/viewer/platform/platform_impl.cc
diff --git a/sky/viewer/platform/platform_impl.cc b/sky/viewer/platform/platform_impl.cc
index d5627768d33deda125be4f652500f85575ae0420..637849a2e3e239bb73b07cf39aff836f4b7a5e22 100644
--- a/sky/viewer/platform/platform_impl.cc
+++ b/sky/viewer/platform/platform_impl.cc
@@ -16,29 +16,11 @@
#include "net/base/mime_util.h"
#include "net/base/net_errors.h"
#include "sky/engine/public/platform/WebConvertableToTraceFormat.h"
-#include "sky/engine/public/platform/WebWaitableEvent.h"
#include "sky/viewer/platform/weburlloader_impl.h"
namespace sky {
namespace {
-class WebWaitableEventImpl : public blink::WebWaitableEvent {
- public:
- WebWaitableEventImpl() : impl_(new base::WaitableEvent(false, false)) {}
- virtual ~WebWaitableEventImpl() {}
-
- virtual void wait() { impl_->Wait(); }
- virtual void signal() { impl_->Signal(); }
-
- base::WaitableEvent* impl() {
- return impl_.get();
- }
-
- private:
- scoped_ptr<base::WaitableEvent> impl_;
- DISALLOW_COPY_AND_ASSIGN(WebWaitableEventImpl);
-};
-
class ConvertableToTraceFormatWrapper
: public base::debug::ConvertableToTraceFormat {
public:
@@ -186,21 +168,6 @@ blink::WebURLError PlatformImpl::cancelledError(const blink::WebURL& url)
return error;
}
-blink::WebWaitableEvent* PlatformImpl::createWaitableEvent() {
- return new WebWaitableEventImpl();
-}
-
-blink::WebWaitableEvent* PlatformImpl::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(
- vector_as_array(&events), events.size());
- DCHECK_LT(idx, web_events.size());
- return web_events[idx];
-}
-
const unsigned char* PlatformImpl::getTraceCategoryEnabledFlag(
const char* category_group) {
return TRACE_EVENT_API_GET_CATEGORY_GROUP_ENABLED(category_group);
« no previous file with comments | « sky/viewer/platform/platform_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698