| Index: third_party/WebKit/Source/core/workers/WorkerSettings.cpp
|
| diff --git a/third_party/WebKit/Source/core/workers/WorkerSettings.cpp b/third_party/WebKit/Source/core/workers/WorkerSettings.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..872434052bc57846602e9bca781336afbcba7ff8
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/workers/WorkerSettings.cpp
|
| @@ -0,0 +1,27 @@
|
| +// 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.
|
| +
|
| +#include "core/workers/WorkerSettings.h"
|
| +
|
| +namespace blink {
|
| +
|
| +WorkerSettings::WorkerSettings(Settings* settings)
|
| +{
|
| + if (settings)
|
| + this->copyFlagValuesFromSettings(settings);
|
| + else
|
| + this->setDefaultValues();
|
| +}
|
| +
|
| +void WorkerSettings::copyFlagValuesFromSettings(Settings* settings)
|
| +{
|
| + m_disableReadingFromCanvas = settings->disableReadingFromCanvas();
|
| +}
|
| +
|
| +void WorkerSettings::setDefaultValues()
|
| +{
|
| + m_disableReadingFromCanvas = false;
|
| +}
|
| +
|
| +} // namespace blink
|
|
|