Index: third_party/WebKit/Source/core/workers/WorkerSettings.h |
diff --git a/third_party/WebKit/Source/core/workers/WorkerSettings.h b/third_party/WebKit/Source/core/workers/WorkerSettings.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..31443c50cb8e08a028e6aa4cfb781fe7b17780a6 |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/workers/WorkerSettings.h |
@@ -0,0 +1,33 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef WorkerSettings_h |
+#define WorkerSettings_h |
+ |
+#include "core/CoreExport.h" |
+#include "core/frame/Settings.h" |
+ |
+namespace blink { |
+ |
+class CORE_EXPORT WorkerSettings { |
+public: |
+ WorkerSettings(Settings*); |
+ virtual ~WorkerSettings() {} |
+ |
+ bool disableReadingFromCanvas() const { return m_disableReadingFromCanvas; } |
+ |
+private: |
+ void copyFlagValuesFromSettings(Settings*); |
+ void setDefaultValues(); |
+ |
+ // The settings that are to be copied from main thread to worker thread |
+ // These setting's flag values must remain unchanged throughout the document |
+ // lifecycle. |
+ // We hard-code the flags as there're very few flags at this moment. |
+ bool m_disableReadingFromCanvas; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // WorkerSettings_h |