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

Side by Side Diff: Source/core/frame/OriginsUsingFeatures.h

Issue 1170963002: Componentization: make core classes visible for blink_tests and blink_web. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 | « Source/core/events/TreeScopeEventContext.h ('k') | Source/core/frame/PageScaleConstraintsSet.h » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 OriginsUsingFeatures_h 5 #ifndef OriginsUsingFeatures_h
6 #define OriginsUsingFeatures_h 6 #define OriginsUsingFeatures_h
7 7
8 #include "core/CoreExport.h"
8 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
9 #include "wtf/HashMap.h" 10 #include "wtf/HashMap.h"
10 #include "wtf/Vector.h" 11 #include "wtf/Vector.h"
11 #include "wtf/text/StringHash.h" 12 #include "wtf/text/StringHash.h"
12 #include "wtf/text/WTFString.h" 13 #include "wtf/text/WTFString.h"
13 14
14 namespace blink { 15 namespace blink {
15 16
16 class Document; 17 class Document;
17 class EventTarget; 18 class EventTarget;
18 class ScriptState; 19 class ScriptState;
19 20
20 class OriginsUsingFeatures { 21 class CORE_EXPORT OriginsUsingFeatures {
21 DISALLOW_ALLOCATION(); 22 DISALLOW_ALLOCATION();
22 public: 23 public:
23 ~OriginsUsingFeatures(); 24 ~OriginsUsingFeatures();
24 25
25 enum class Feature { 26 enum class Feature {
26 ElementCreateShadowRoot, 27 ElementCreateShadowRoot,
27 DocumentRegisterElement, 28 DocumentRegisterElement,
28 EventPath, 29 EventPath,
29 30
30 NumberOfFeatures // This must be the last item. 31 NumberOfFeatures // This must be the last item.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 void recordOriginsToRappor(); 63 void recordOriginsToRappor();
63 void recordNamesToRappor(); 64 void recordNamesToRappor();
64 65
65 Vector<std::pair<String, OriginsUsingFeatures::Value>, 1> m_originAndValues; 66 Vector<std::pair<String, OriginsUsingFeatures::Value>, 1> m_originAndValues;
66 HashMap<String, OriginsUsingFeatures::Value> m_valueByName; 67 HashMap<String, OriginsUsingFeatures::Value> m_valueByName;
67 }; 68 };
68 69
69 } // namespace blink 70 } // namespace blink
70 71
71 #endif // OriginsUsingFeatures_h 72 #endif // OriginsUsingFeatures_h
OLDNEW
« no previous file with comments | « Source/core/events/TreeScopeEventContext.h ('k') | Source/core/frame/PageScaleConstraintsSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698