Chromium Code Reviews| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 52 public: | 52 public: |
| 53 static History* create(LocalFrame* frame) { return new History(frame); } | 53 static History* create(LocalFrame* frame) { return new History(frame); } |
| 54 | 54 |
| 55 unsigned length() const; | 55 unsigned length() const; |
| 56 SerializedScriptValue* state(); | 56 SerializedScriptValue* state(); |
| 57 | 57 |
| 58 void back(ScriptState*); | 58 void back(ScriptState*); |
| 59 void forward(ScriptState*); | 59 void forward(ScriptState*); |
| 60 void go(ScriptState*, int delta); | 60 void go(ScriptState*, int delta); |
| 61 | 61 |
| 62 void pushState(PassRefPtr<SerializedScriptValue> data, | 62 void pushState(PassRefPtr<SerializedScriptValue>, |
|
tdresser
2017/01/26 21:30:52
We do need parameter names here:
https://www.chro
sunjian
2017/01/26 22:50:07
Done.
| |
| 63 const String& title, | 63 const String&, |
| 64 const String& url, | 64 const String&, |
| 65 ExceptionState& exceptionState) { | 65 ExceptionState&); |
| 66 stateObjectAdded(std::move(data), title, url, scrollRestorationInternal(), | |
| 67 FrameLoadTypeStandard, exceptionState); | |
| 68 } | |
| 69 | 66 |
| 70 void replaceState(PassRefPtr<SerializedScriptValue> data, | 67 void replaceState(PassRefPtr<SerializedScriptValue> data, |
| 71 const String& title, | 68 const String& title, |
| 72 const String& url, | 69 const String& url, |
| 73 ExceptionState& exceptionState) { | 70 ExceptionState& exceptionState) { |
| 74 stateObjectAdded(std::move(data), title, url, scrollRestorationInternal(), | 71 stateObjectAdded(std::move(data), title, url, scrollRestorationInternal(), |
| 75 FrameLoadTypeReplaceCurrentItem, exceptionState); | 72 FrameLoadTypeReplaceCurrentItem, exceptionState); |
| 76 } | 73 } |
| 77 | 74 |
| 78 void setScrollRestoration(const String& value); | 75 void setScrollRestoration(const String& value); |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 104 ExceptionState&); | 101 ExceptionState&); |
| 105 SerializedScriptValue* stateInternal() const; | 102 SerializedScriptValue* stateInternal() const; |
| 106 HistoryScrollRestorationType scrollRestorationInternal() const; | 103 HistoryScrollRestorationType scrollRestorationInternal() const; |
| 107 | 104 |
| 108 RefPtr<SerializedScriptValue> m_lastStateObjectRequested; | 105 RefPtr<SerializedScriptValue> m_lastStateObjectRequested; |
| 109 }; | 106 }; |
| 110 | 107 |
| 111 } // namespace blink | 108 } // namespace blink |
| 112 | 109 |
| 113 #endif // History_h | 110 #endif // History_h |
| OLD | NEW |