Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Side by Side Diff: public/web/WebPageImportanceSignals.h

Issue 1303833002: Add WebPageImportanceSignals::issuedNonGetFetchFromScript() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: hook DocumentThreadableLoader Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #ifndef WebPageImportanceSignals_h 5 #ifndef WebPageImportanceSignals_h
6 #define WebPageImportanceSignals_h 6 #define WebPageImportanceSignals_h
7 7
8 #include "public/platform/WebCommon.h" 8 #include "public/platform/WebCommon.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 // WebPageImportanceSignals indicate the importance of the page state to user. 12 // WebPageImportanceSignals indicate the importance of the page state to user.
13 // This signal is propagated to embedder so that it can prioritize preserving 13 // This signal is propagated to embedder so that it can prioritize preserving
14 // state of certain page over the others. 14 // state of certain page over the others.
15 class WebPageImportanceSignals { 15 class WebPageImportanceSignals {
16 public: 16 public:
17 WebPageImportanceSignals() { reset(); } 17 WebPageImportanceSignals() { reset(); }
18 18
19 bool hadFormInteraction() const { return m_hadFormInteraction; } 19 bool hadFormInteraction() const { return m_hadFormInteraction; }
20 void setHadFormInteraction() { m_hadFormInteraction = true; } 20 void setHadFormInteraction() { m_hadFormInteraction = true; }
21 bool issuedNonGetFetchFromScript() const { return m_issuedNonGetFetchFromScr ipt; }
22 void setIssuedNonGetFetchFromScript() { m_issuedNonGetFetchFromScript = true ; }
21 23
22 BLINK_EXPORT void reset(); 24 BLINK_EXPORT void reset();
23 #if BLINK_IMPLEMENTATION 25 #if BLINK_IMPLEMENTATION
24 void onCommitLoad(); 26 void onCommitLoad();
25 #endif 27 #endif
26 28
27 private: 29 private:
28 bool m_hadFormInteraction : 1; 30 bool m_hadFormInteraction : 1;
31 bool m_issuedNonGetFetchFromScript : 1;
29 }; 32 };
30 33
31 } // namespace blink 34 } // namespace blink
32 35
33 #endif // WebPageImportancesignals_h 36 #endif // WebPageImportancesignals_h
OLDNEW
« Source/web/WebPageImportanceSignals.cpp ('K') | « Source/web/WebPageImportanceSignals.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698