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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 bool stateChanged() const; | 72 bool stateChanged() const; |
73 bool isSameAsCurrentState(SerializedScriptValue*) const; | 73 bool isSameAsCurrentState(SerializedScriptValue*) const; |
74 | 74 |
75 | 75 |
76 DECLARE_VIRTUAL_TRACE(); | 76 DECLARE_VIRTUAL_TRACE(); |
77 | 77 |
78 private: | 78 private: |
79 explicit History(LocalFrame*); | 79 explicit History(LocalFrame*); |
80 | 80 |
81 KURL urlForState(const String& url); | 81 KURL urlForState(const String& url); |
| 82 bool canChangeToUrl(const KURL& url); |
82 | 83 |
83 void stateObjectAdded(PassRefPtr<SerializedScriptValue>, const String& title
, const String& url, HistoryScrollRestorationType, FrameLoadType, ExceptionState
&); | 84 void stateObjectAdded(PassRefPtr<SerializedScriptValue>, const String& title
, const String& url, HistoryScrollRestorationType, FrameLoadType, ExceptionState
&); |
84 SerializedScriptValue* stateInternal() const; | 85 SerializedScriptValue* stateInternal() const; |
85 HistoryScrollRestorationType scrollRestorationInternal() const; | 86 HistoryScrollRestorationType scrollRestorationInternal() const; |
86 | 87 |
87 RefPtr<SerializedScriptValue> m_lastStateObjectRequested; | 88 RefPtr<SerializedScriptValue> m_lastStateObjectRequested; |
88 }; | 89 }; |
89 | 90 |
90 } // namespace blink | 91 } // namespace blink |
91 | 92 |
92 #endif // History_h | 93 #endif // History_h |
OLD | NEW |