OLD | NEW |
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 #include "core/frame/HostsUsingFeatures.h" | 5 #include "core/frame/HostsUsingFeatures.h" |
6 | 6 |
7 #include "bindings/core/v8/ScriptState.h" | 7 #include "bindings/core/v8/ScriptState.h" |
8 #include "core/dom/Document.h" | 8 #include "core/dom/Document.h" |
| 9 #include "core/frame/LocalDOMWindow.h" |
9 #include "core/page/Page.h" | 10 #include "core/page/Page.h" |
10 #include "public/platform/Platform.h" | 11 #include "public/platform/Platform.h" |
11 | 12 |
12 namespace blink { | 13 namespace blink { |
13 | 14 |
14 HostsUsingFeatures::~HostsUsingFeatures() | 15 HostsUsingFeatures::~HostsUsingFeatures() |
15 { | 16 { |
16 updateMeasurementsAndClear(); | 17 updateMeasurementsAndClear(); |
17 } | 18 } |
18 | 19 |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 Platform::current()->recordRappor("PowerfulFeatureUse.Host.ApplicationCa
cheAPI.Insecure", host); | 165 Platform::current()->recordRappor("PowerfulFeatureUse.Host.ApplicationCa
cheAPI.Insecure", host); |
165 } | 166 } |
166 | 167 |
167 void HostsUsingFeatures::Value::recordNameToRappor(const String& name) | 168 void HostsUsingFeatures::Value::recordNameToRappor(const String& name) |
168 { | 169 { |
169 if (get(Feature::EventPath)) | 170 if (get(Feature::EventPath)) |
170 Platform::current()->recordRappor("WebComponents.EventPath.Extensions",
name); | 171 Platform::current()->recordRappor("WebComponents.EventPath.Extensions",
name); |
171 } | 172 } |
172 | 173 |
173 } // namespace blink | 174 } // namespace blink |
OLD | NEW |