| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #ifndef History_h | 26 #ifndef History_h |
| 27 #define History_h | 27 #define History_h |
| 28 | 28 |
| 29 #include "base/gtest_prod_util.h" | 29 #include "base/gtest_prod_util.h" |
| 30 #include "bindings/core/v8/serialization/SerializedScriptValue.h" | 30 #include "bindings/core/v8/serialization/SerializedScriptValue.h" |
| 31 #include "core/dom/ContextLifecycleObserver.h" | 31 #include "core/dom/ContextLifecycleObserver.h" |
| 32 #include "core/loader/FrameLoaderTypes.h" | 32 #include "core/loader/FrameLoaderTypes.h" |
| 33 #include "platform/bindings/ScriptWrappable.h" | 33 #include "platform/bindings/ScriptWrappable.h" |
| 34 #include "platform/heap/Handle.h" | 34 #include "platform/heap/Handle.h" |
| 35 #include "platform/wtf/Forward.h" | 35 #include "platform/wtf/Forward.h" |
| 36 #include "platform/wtf/Time.h" |
| 36 | 37 |
| 37 namespace blink { | 38 namespace blink { |
| 38 | 39 |
| 39 class LocalFrame; | 40 class LocalFrame; |
| 40 class KURL; | 41 class KURL; |
| 41 class ExceptionState; | 42 class ExceptionState; |
| 42 class SecurityOrigin; | 43 class SecurityOrigin; |
| 43 class ScriptState; | 44 class ScriptState; |
| 44 | 45 |
| 45 // This class corresponds to the History interface. | 46 // This class corresponds to the History interface. |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 96 |
| 96 void StateObjectAdded(PassRefPtr<SerializedScriptValue>, | 97 void StateObjectAdded(PassRefPtr<SerializedScriptValue>, |
| 97 const String& title, | 98 const String& title, |
| 98 const String& url, | 99 const String& url, |
| 99 HistoryScrollRestorationType, | 100 HistoryScrollRestorationType, |
| 100 FrameLoadType, | 101 FrameLoadType, |
| 101 ExceptionState&); | 102 ExceptionState&); |
| 102 SerializedScriptValue* StateInternal() const; | 103 SerializedScriptValue* StateInternal() const; |
| 103 HistoryScrollRestorationType ScrollRestorationInternal() const; | 104 HistoryScrollRestorationType ScrollRestorationInternal() const; |
| 104 | 105 |
| 106 bool ShouldThrottleStateObjectChanges(); |
| 107 |
| 105 RefPtr<SerializedScriptValue> last_state_object_requested_; | 108 RefPtr<SerializedScriptValue> last_state_object_requested_; |
| 109 struct { |
| 110 int count; |
| 111 TimeTicks last_updated; |
| 112 } state_flood_guard; |
| 106 }; | 113 }; |
| 107 | 114 |
| 108 } // namespace blink | 115 } // namespace blink |
| 109 | 116 |
| 110 #endif // History_h | 117 #endif // History_h |
| OLD | NEW |