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

Side by Side Diff: third_party/WebKit/Source/core/frame/History.h

Issue 1495013002: Check for equality of the URL's origin in replaceState/pushState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Put all logic in History.cpp, change tests to testharness Created 5 years 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698