| Index: third_party/WebKit/Source/web/WebPageImportanceSignals.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebPageImportanceSignals.cpp b/third_party/WebKit/Source/web/WebPageImportanceSignals.cpp
|
| deleted file mode 100644
|
| index a1efd77780839a2b1c7380b9210560a2f0cb853b..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/Source/web/WebPageImportanceSignals.cpp
|
| +++ /dev/null
|
| @@ -1,45 +0,0 @@
|
| -// Copyright 2015 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -#include "public/web/WebPageImportanceSignals.h"
|
| -
|
| -#include "platform/Histogram.h"
|
| -#include "public/web/WebViewClient.h"
|
| -
|
| -namespace blink {
|
| -
|
| -void WebPageImportanceSignals::Reset() {
|
| - had_form_interaction_ = false;
|
| - issued_non_get_fetch_from_script_ = false;
|
| - if (observer_)
|
| - observer_->PageImportanceSignalsChanged();
|
| -}
|
| -
|
| -void WebPageImportanceSignals::SetHadFormInteraction() {
|
| - had_form_interaction_ = true;
|
| - if (observer_)
|
| - observer_->PageImportanceSignalsChanged();
|
| -}
|
| -
|
| -void WebPageImportanceSignals::SetIssuedNonGetFetchFromScript() {
|
| - issued_non_get_fetch_from_script_ = true;
|
| - if (observer_)
|
| - observer_->PageImportanceSignalsChanged();
|
| -}
|
| -
|
| -void WebPageImportanceSignals::OnCommitLoad() {
|
| - DEFINE_STATIC_LOCAL(
|
| - EnumerationHistogram, had_form_interaction_histogram,
|
| - ("PageImportanceSignals.HadFormInteraction.OnCommitLoad", 2));
|
| - had_form_interaction_histogram.Count(had_form_interaction_);
|
| -
|
| - DEFINE_STATIC_LOCAL(
|
| - EnumerationHistogram, issued_non_get_histogram,
|
| - ("PageImportanceSignals.IssuedNonGetFetchFromScript.OnCommitLoad", 2));
|
| - issued_non_get_histogram.Count(issued_non_get_fetch_from_script_);
|
| -
|
| - Reset();
|
| -}
|
| -
|
| -} // namespace blink
|
|
|