OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef WorkerSettings_h |
| 6 #define WorkerSettings_h |
| 7 |
| 8 #include "core/CoreExport.h" |
| 9 #include "core/frame/Settings.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 class CORE_EXPORT WorkerSettings { |
| 14 public: |
| 15 WorkerSettings(Settings*); |
| 16 virtual ~WorkerSettings() {} |
| 17 |
| 18 bool disableReadingFromCanvas() const { return m_disableReadingFromCanvas; } |
| 19 |
| 20 private: |
| 21 void copyFlagValuesFromSettings(Settings*); |
| 22 void setDefaultValues(); |
| 23 |
| 24 // The settings that are to be copied from main thread to worker thread |
| 25 // These setting's flag values must remain unchanged throughout the document |
| 26 // lifecycle. |
| 27 // We hard-code the flags as there're very few flags at this moment. |
| 28 bool m_disableReadingFromCanvas; |
| 29 }; |
| 30 |
| 31 } // namespace blink |
| 32 |
| 33 #endif // WorkerSettings_h |
OLD | NEW |