| Index: Source/core/workers/WorkerSettings.h
|
| diff --git a/Source/modules/filesystem/DataTransferItemFileSystem.h b/Source/core/workers/WorkerSettings.h
|
| similarity index 73%
|
| copy from Source/modules/filesystem/DataTransferItemFileSystem.h
|
| copy to Source/core/workers/WorkerSettings.h
|
| index 42f9d686f2db879e5a7982e964fb78cc9825322d..f9b0d6b17132cf278ba3c4666f2a656ac8905525 100644
|
| --- a/Source/modules/filesystem/DataTransferItemFileSystem.h
|
| +++ b/Source/core/workers/WorkerSettings.h
|
| @@ -1,5 +1,5 @@
|
| /*
|
| - * Copyright (C) 2012 Google Inc. All rights reserved.
|
| + * Copyright (C) 2014 Intel Inc. All rights reserved.
|
| *
|
| * Redistribution and use in source and binary forms, with or without
|
| * modification, are permitted provided that the following conditions are
|
| @@ -28,26 +28,25 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef DataTransferItemFileSystem_h
|
| -#define DataTransferItemFileSystem_h
|
| -
|
| -#include "wtf/PassRefPtr.h"
|
| +#ifndef WorkerSettings_h
|
| +#define WorkerSettings_h
|
|
|
| namespace WebCore {
|
|
|
| -class DataTransferItem;
|
| -class Entry;
|
| -class ExecutionContext;
|
| -
|
| -class DataTransferItemFileSystem {
|
| +class WorkerSettings {
|
| + WTF_MAKE_NONCOPYABLE(WorkerSettings); WTF_MAKE_FAST_ALLOCATED;
|
| public:
|
| - static PassRefPtr<Entry> webkitGetAsEntry(ExecutionContext*, DataTransferItem&);
|
| + static PassOwnPtr<WorkerSettings> create() { return adoptPtr(new WorkerSettings); }
|
| +
|
| + void setMemoryInfoEnabled(bool memoryInfoEnabled) { m_memoryInfoEnabled = memoryInfoEnabled; }
|
| + bool memoryInfoEnabled() const { return m_memoryInfoEnabled; }
|
|
|
| private:
|
| - DataTransferItemFileSystem();
|
| - ~DataTransferItemFileSystem();
|
| + WorkerSettings() : m_memoryInfoEnabled(false) { }
|
| +
|
| + bool m_memoryInfoEnabled;
|
| };
|
|
|
| } // namespace WebCore
|
|
|
| -#endif // DataTransferItemFileSystem_h
|
| +#endif // WorkerSettings_h
|
|
|