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

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

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 #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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698