| Index: Source/web/WebWorkerSettingsImpl.h
|
| diff --git a/Source/web/WebScopedMicrotaskSuppression.cpp b/Source/web/WebWorkerSettingsImpl.h
|
| similarity index 73%
|
| copy from Source/web/WebScopedMicrotaskSuppression.cpp
|
| copy to Source/web/WebWorkerSettingsImpl.h
|
| index ddd5253cd0afd235977b6d3520bf71df836a86aa..cd68da5608792a277a130f96d884eab41db31906 100644
|
| --- a/Source/web/WebScopedMicrotaskSuppression.cpp
|
| +++ b/Source/web/WebWorkerSettingsImpl.h
|
| @@ -1,5 +1,5 @@
|
| /*
|
| - * Copyright (C) 2009 Google Inc. All rights reserved.
|
| + * Copyright (C) 2014 Intel Corporation. All rights reserved.
|
| *
|
| * Redistribution and use in source and binary forms, with or without
|
| * modification, are permitted provided that the following conditions are
|
| @@ -11,7 +11,7 @@
|
| * copyright notice, this list of conditions and the following disclaimer
|
| * in the documentation and/or other materials provided with the
|
| * distribution.
|
| - * * Neither the name of Google Inc. nor the names of its
|
| + * * Neither the name of Intel Corporation nor the names of its
|
| * contributors may be used to endorse or promote products derived from
|
| * this software without specific prior written permission.
|
| *
|
| @@ -28,30 +28,31 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#include "config.h"
|
| -#include "WebScopedMicrotaskSuppression.h"
|
| +#ifndef WebWorkerSettingsImpl_h
|
| +#define WebWorkerSettingsImpl_h
|
|
|
| -#include "bindings/v8/V8RecursionScope.h"
|
| +#include "WebWorkerSettings.h"
|
| #include "wtf/OwnPtr.h"
|
|
|
| +namespace WebCore {
|
| +class WorkerSettings;
|
| +}
|
| +
|
| namespace blink {
|
|
|
| -#ifndef NDEBUG
|
| -class WebScopedMicrotaskSuppression::Impl : public WebCore::V8RecursionScope::MicrotaskSuppression { };
|
| -#endif
|
| +class WebWorkerSettingsImpl FINAL : public WebWorkerSettings {
|
| +public:
|
| + WebWorkerSettingsImpl();
|
| + virtual ~WebWorkerSettingsImpl() { }
|
|
|
| -void WebScopedMicrotaskSuppression::initialize()
|
| -{
|
| -#ifndef NDEBUG
|
| - m_impl.reset(new Impl());
|
| -#endif
|
| -}
|
| + virtual void setMemoryInfoEnabled(bool) OVERRIDE;
|
|
|
| -void WebScopedMicrotaskSuppression::reset()
|
| -{
|
| -#ifndef NDEBUG
|
| - m_impl.reset(0);
|
| -#endif
|
| -}
|
| + bool memoryInfoEnabled();
|
| +
|
| +private:
|
| + OwnPtr<WebCore::WorkerSettings> m_settings;
|
| +};
|
|
|
| } // namespace blink
|
| +
|
| +#endif
|
|
|