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

Side by Side Diff: third_party/WebKit/Source/core/workers/WorkerSettings.cpp

Issue 2171563002: Add WorkerSettings to expose certain flag values in WorkerGlobalScope (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 4 years, 4 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 unified diff | Download patch
OLDNEW
(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 #include "core/workers/WorkerSettings.h"
6
7 namespace blink {
8
9 WorkerSettings::WorkerSettings(Settings* settings)
10 {
11 if (settings)
12 this->copyFlagValuesFromSettings(settings);
13 else
14 this->setDefaultValues();
15 }
16
17 void WorkerSettings::copyFlagValuesFromSettings(Settings* settings)
18 {
19 m_disableReadingFromCanvas = settings->disableReadingFromCanvas();
20 }
21
22 void WorkerSettings::setDefaultValues()
23 {
24 m_disableReadingFromCanvas = false;
25 }
26
27 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698