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

Side by Side Diff: third_party/WebKit/Source/core/testing/WorkerInternals.h

Issue 2820193003: Worker: Raise an exception when an invalid feature number is passed to WorkerInternals::CountFeature (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/testing/WorkerInternals.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WorkerInternals_h 5 #ifndef WorkerInternals_h
6 #define WorkerInternals_h 6 #define WorkerInternals_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "platform/heap/GarbageCollected.h" 9 #include "platform/heap/GarbageCollected.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class ExceptionState;
13 class OriginTrialsTest; 14 class OriginTrialsTest;
14 class ScriptState; 15 class ScriptState;
15 16
16 class WorkerInternals final : public GarbageCollectedFinalized<WorkerInternals>, 17 class WorkerInternals final : public GarbageCollectedFinalized<WorkerInternals>,
17 public ScriptWrappable { 18 public ScriptWrappable {
18 DEFINE_WRAPPERTYPEINFO(); 19 DEFINE_WRAPPERTYPEINFO();
19 20
20 public: 21 public:
21 static WorkerInternals* Create() { return new WorkerInternals(); } 22 static WorkerInternals* Create() { return new WorkerInternals(); }
22 virtual ~WorkerInternals(); 23 virtual ~WorkerInternals();
23 24
24 OriginTrialsTest* originTrialsTest() const; 25 OriginTrialsTest* originTrialsTest() const;
25 void countFeature(ScriptState*, uint32_t feature); 26 void countFeature(ScriptState*, uint32_t feature, ExceptionState&);
26 void countDeprecation(ScriptState*, uint32_t feature); 27 void countDeprecation(ScriptState*, uint32_t feature, ExceptionState&);
27 28
28 void collectGarbage(ScriptState*); 29 void collectGarbage(ScriptState*);
29 30
30 DEFINE_INLINE_TRACE() {} 31 DEFINE_INLINE_TRACE() {}
31 32
32 private: 33 private:
33 explicit WorkerInternals(); 34 explicit WorkerInternals();
34 }; 35 };
35 36
36 } // namespace blink 37 } // namespace blink
37 38
38 #endif // WorkerInternals_h 39 #endif // WorkerInternals_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/testing/WorkerInternals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698