Chromium Code Reviews| Index: Source/core/workers/WorkerSettings.h |
| diff --git a/Source/core/testing/InternalProfilers.h b/Source/core/workers/WorkerSettings.h |
| similarity index 69% |
| copy from Source/core/testing/InternalProfilers.h |
| copy to Source/core/workers/WorkerSettings.h |
| index f948cffd6d152a097cb680017e8f85bb9c1a6e96..e9c7c6acdb5a0213f98a35ebae113b04c1273af5 100644 |
| --- a/Source/core/testing/InternalProfilers.h |
| +++ b/Source/core/workers/WorkerSettings.h |
| @@ -1,5 +1,5 @@ |
| /* |
| - * Copyright (C) 2013 Google Inc. All rights reserved. |
| + * Copyright (C) 2014 Intel Corporation. All rights reserved. |
|
kinuko
2014/03/04 04:34:35
Can we use shorter common copyright for new files?
Pan
2014/03/06 08:50:56
Done.
|
| * |
| * 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,27 +28,28 @@ |
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| */ |
| -#ifndef InternalProfilers_h |
| -#define InternalProfilers_h |
| +#ifndef WorkerSettings_h |
| +#define WorkerSettings_h |
| -#include "wtf/Forward.h" |
| -#include "wtf/PassRefPtr.h" |
| +#include "wtf/PassOwnPtr.h" |
| #include "wtf/RefCounted.h" |
| namespace WebCore { |
| +class WorkerSettings { |
| + WTF_MAKE_NONCOPYABLE(WorkerSettings); WTF_MAKE_FAST_ALLOCATED; |
|
kinuko
2014/03/04 04:34:35
nit: looks like this could be copyable unless we w
Pan
2014/03/06 08:50:56
Done.
|
| +public: |
| + static PassOwnPtr<WorkerSettings> create() { return adoptPtr(new WorkerSettings); } |
| + void setMemoryInfoEnabled(bool memoryInfoEnabled) { m_memoryInfoEnabled = memoryInfoEnabled; } |
| + bool memoryInfoEnabled() const { return m_memoryInfoEnabled; } |
| -class InternalProfilers : public RefCounted<InternalProfilers> { |
| -public: |
| - static PassRefPtr<InternalProfilers> create() { return adoptRef(new InternalProfilers()); } |
| +private: |
| + WorkerSettings() : m_memoryInfoEnabled(false) { } |
| - void startHeapProfiling(const String& prefix); |
| - void stopHeapProfiling(); |
| - void dumpHeapProfiling(const String& reason); |
| - String getHeapProfile(); |
| + bool m_memoryInfoEnabled; |
| }; |
| } // namespace WebCore |
| -#endif |
| +#endif // WorkerSettings_h |