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 "config.h" | 5 #include "config.h" |
6 #include "public/web/WebPageImportanceSignals.h" | 6 #include "public/web/WebPageImportanceSignals.h" |
7 | 7 |
8 #include "core/dom/Document.h" | |
9 #include "core/dom/ExecutionContext.h" | |
10 #include "core/frame/FrameHost.h" | |
11 #include "core/frame/LocalFrame.h" | |
12 #include "core/page/ChromeClient.h" | |
tyoshino (SeeGerritForStatus)
2015/09/24 08:14:11
remove
kouhei (in TOK)
2015/09/25 03:22:00
Done.
| |
8 #include "public/platform/Platform.h" | 13 #include "public/platform/Platform.h" |
9 | 14 |
10 namespace blink { | 15 namespace blink { |
11 | 16 |
12 void WebPageImportanceSignals::reset() | 17 void WebPageImportanceSignals::reset() |
13 { | 18 { |
14 m_hadFormInteraction = false; | 19 m_hadFormInteraction = false; |
20 m_issuedNonGetFetchFromScript = false; | |
15 } | 21 } |
16 | 22 |
17 void WebPageImportanceSignals::onCommitLoad() | 23 void WebPageImportanceSignals::onCommitLoad() |
18 { | 24 { |
19 Platform::current()->histogramEnumeration("PageImportanceSignals.HadFormInte raction.OnCommitLoad", m_hadFormInteraction, 2); | 25 Platform::current()->histogramEnumeration("PageImportanceSignals.HadFormInte raction.OnCommitLoad", m_hadFormInteraction, 2); |
26 Platform::current()->histogramEnumeration("PageImportanceSignals.IssuedNonGe tFetchFromScript.OnCommitLoad", m_issuedNonGetFetchFromScript, 2); | |
20 | 27 |
21 reset(); | 28 reset(); |
22 } | 29 } |
23 | 30 |
24 } // namespace blink | 31 } // namespace blink |
OLD | NEW |