Chromium Code Reviews| Index: content/public/common/page_importance_signals.h |
| diff --git a/content/public/common/page_importance_signals.h b/content/public/common/page_importance_signals.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4e2e72d9dfc32b28219a700b29d5c65745039b96 |
| --- /dev/null |
| +++ b/content/public/common/page_importance_signals.h |
| @@ -0,0 +1,19 @@ |
| +// 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 CONTENT_PUBLIC_COMMON_PAGE_IMPORTANCE_SIGNALS_H_ |
| +#define CONTENT_PUBLIC_COMMON_PAGE_IMPORTANCE_SIGNALS_H_ |
| + |
| +namespace content { |
| + |
| +// PageImportanceSignals contains useful signals for judging relative importance |
| +// of a tab. This information is provided from renderer to browser. |
| +// This struct is a subset of Blink's WebPageImportanceSignals, containing only |
| +// the signals used in Chromium side. |
| +struct PageImportanceSignals { |
| + bool had_form_interaction; |
|
kinuko
2015/09/24 00:26:22
nit: are you sure this'd be a bool rather than enu
kouhei (in TOK)
2015/09/24 01:13:46
Yes.
|
| +}; |
| +}; |
| + |
| +#endif // CONTENT_PUBLIC_COMMON_PAGE_IMPORTANCE_SIGNALS_H_ |