| Index: public/web/WebPageImportanceSignals.h
|
| diff --git a/public/web/WebPageImportanceSignals.h b/public/web/WebPageImportanceSignals.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6e50ff9d9f7b044d8ab1b44250ac5df630683c98
|
| --- /dev/null
|
| +++ b/public/web/WebPageImportanceSignals.h
|
| @@ -0,0 +1,33 @@
|
| +// 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.
|
| +
|
| +#ifndef WebPageImportanceSignals_h
|
| +#define WebPageImportanceSignals_h
|
| +
|
| +#include "public/platform/WebCommon.h"
|
| +
|
| +namespace blink {
|
| +
|
| +// WebPageImportanceSignals indicate the importance of the page state to user.
|
| +// This signal is propagated to embedder so that it can prioritize preserving
|
| +// state of certain page over the others.
|
| +class WebPageImportanceSignals {
|
| +public:
|
| + WebPageImportanceSignals() { reset(); }
|
| +
|
| + bool hadFormInteraction() const { return m_hadFormInteraction; }
|
| + void setHadFormInteraction() { m_hadFormInteraction = true; }
|
| +
|
| + BLINK_EXPORT void reset();
|
| +#if BLINK_IMPLEMENTATION
|
| + void onCommitLoad();
|
| +#endif
|
| +
|
| +private:
|
| + bool m_hadFormInteraction : 1;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // WebPageImportancesignals_h
|
|
|