| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "webkit/glue/webkitplatformsupport_impl.h" | 5 #include "webkit/glue/webkitplatformsupport_impl.h" |
| 6 | 6 |
| 7 #if defined(OS_LINUX) | 7 #if defined(OS_LINUX) |
| 8 #include <malloc.h> | 8 #include <malloc.h> |
| 9 #endif | 9 #endif |
| 10 | 10 |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 void WebKitPlatformSupportImpl::traceEventBegin(const char* name, void* id, | 298 void WebKitPlatformSupportImpl::traceEventBegin(const char* name, void* id, |
| 299 const char* extra) { | 299 const char* extra) { |
| 300 TRACE_EVENT_BEGIN_ETW(name, id, extra); | 300 TRACE_EVENT_BEGIN_ETW(name, id, extra); |
| 301 } | 301 } |
| 302 | 302 |
| 303 void WebKitPlatformSupportImpl::traceEventEnd(const char* name, void* id, | 303 void WebKitPlatformSupportImpl::traceEventEnd(const char* name, void* id, |
| 304 const char* extra) { | 304 const char* extra) { |
| 305 TRACE_EVENT_END_ETW(name, id, extra); | 305 TRACE_EVENT_END_ETW(name, id, extra); |
| 306 } | 306 } |
| 307 | 307 |
| 308 const unsigned char* WebKitPlatformSupportImpl::getCategoryEnabled( | 308 const unsigned char* WebKitPlatformSupportImpl::getTraceCategoryEnabledFlag( |
| 309 const char* category_name) { | 309 const char* category_name) { |
| 310 return TRACE_EVENT_API_GET_CATEGORY_ENABLED(category_name); | 310 return TRACE_EVENT_API_GET_CATEGORY_ENABLED(category_name); |
| 311 } | 311 } |
| 312 | 312 |
| 313 int WebKitPlatformSupportImpl::addTraceEvent( | 313 int WebKitPlatformSupportImpl::addTraceEvent( |
| 314 char phase, | 314 char phase, |
| 315 const unsigned char* category_enabled, | 315 const unsigned char* category_enabled, |
| 316 const char* name, | 316 const char* name, |
| 317 unsigned long long id, | 317 unsigned long long id, |
| 318 int num_args, | 318 int num_args, |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 worker_task_runner->OnWorkerRunLoopStarted(runLoop); | 721 worker_task_runner->OnWorkerRunLoopStarted(runLoop); |
| 722 } | 722 } |
| 723 | 723 |
| 724 void WebKitPlatformSupportImpl::didStopWorkerRunLoop( | 724 void WebKitPlatformSupportImpl::didStopWorkerRunLoop( |
| 725 const WebKit::WebWorkerRunLoop& runLoop) { | 725 const WebKit::WebWorkerRunLoop& runLoop) { |
| 726 WorkerTaskRunner* worker_task_runner = WorkerTaskRunner::Instance(); | 726 WorkerTaskRunner* worker_task_runner = WorkerTaskRunner::Instance(); |
| 727 worker_task_runner->OnWorkerRunLoopStopped(runLoop); | 727 worker_task_runner->OnWorkerRunLoopStopped(runLoop); |
| 728 } | 728 } |
| 729 | 729 |
| 730 } // namespace webkit_glue | 730 } // namespace webkit_glue |
| OLD | NEW |