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

Unified Diff: Source/core/workers/WorkerSettings.h

Issue 106353005: Expose performance.memory in workers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@Perf-Memory-SharedWorker
Patch Set: Created 6 years, 10 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
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

Powered by Google App Engine
This is Rietveld 408576698