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 14 matching lines...) Expand all Loading... | |
| 25 | 25 |
| 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/ScriptWrappable.h" | 30 #include "bindings/core/v8/ScriptWrappable.h" |
| 31 #include "bindings/core/v8/SerializedScriptValue.h" | 31 #include "bindings/core/v8/SerializedScriptValue.h" |
| 32 #include "core/dom/ContextLifecycleObserver.h" | 32 #include "core/dom/ContextLifecycleObserver.h" |
| 33 #include "core/loader/FrameLoaderTypes.h" | 33 #include "core/loader/FrameLoaderTypes.h" |
| 34 #include "platform/heap/Handle.h" | 34 #include "platform/heap/Handle.h" |
| 35 #include "platform/instrumentation/tracing/TraceEvent.h" | |
| 35 #include "wtf/Forward.h" | 36 #include "wtf/Forward.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 |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 56 SerializedScriptValue* state(); | 57 SerializedScriptValue* state(); |
| 57 | 58 |
| 58 void back(ScriptState*); | 59 void back(ScriptState*); |
| 59 void forward(ScriptState*); | 60 void forward(ScriptState*); |
| 60 void go(ScriptState*, int delta); | 61 void go(ScriptState*, int delta); |
| 61 | 62 |
| 62 void pushState(PassRefPtr<SerializedScriptValue> data, | 63 void pushState(PassRefPtr<SerializedScriptValue> data, |
| 63 const String& title, | 64 const String& title, |
| 64 const String& url, | 65 const String& url, |
| 65 ExceptionState& exceptionState) { | 66 ExceptionState& exceptionState) { |
| 67 TRACE_EVENT0("spa:navigation", "History::pushState"); | |
|
tdresser
2017/01/26 20:01:53
I think we can just use "blink" as the category.
L
| |
| 66 stateObjectAdded(std::move(data), title, url, scrollRestorationInternal(), | 68 stateObjectAdded(std::move(data), title, url, scrollRestorationInternal(), |
| 67 FrameLoadTypeStandard, exceptionState); | 69 FrameLoadTypeStandard, exceptionState); |
| 68 } | 70 } |
| 69 | 71 |
| 70 void replaceState(PassRefPtr<SerializedScriptValue> data, | 72 void replaceState(PassRefPtr<SerializedScriptValue> data, |
| 71 const String& title, | 73 const String& title, |
| 72 const String& url, | 74 const String& url, |
| 73 ExceptionState& exceptionState) { | 75 ExceptionState& exceptionState) { |
| 74 stateObjectAdded(std::move(data), title, url, scrollRestorationInternal(), | 76 stateObjectAdded(std::move(data), title, url, scrollRestorationInternal(), |
| 75 FrameLoadTypeReplaceCurrentItem, exceptionState); | 77 FrameLoadTypeReplaceCurrentItem, exceptionState); |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 104 ExceptionState&); | 106 ExceptionState&); |
| 105 SerializedScriptValue* stateInternal() const; | 107 SerializedScriptValue* stateInternal() const; |
| 106 HistoryScrollRestorationType scrollRestorationInternal() const; | 108 HistoryScrollRestorationType scrollRestorationInternal() const; |
| 107 | 109 |
| 108 RefPtr<SerializedScriptValue> m_lastStateObjectRequested; | 110 RefPtr<SerializedScriptValue> m_lastStateObjectRequested; |
| 109 }; | 111 }; |
| 110 | 112 |
| 111 } // namespace blink | 113 } // namespace blink |
| 112 | 114 |
| 113 #endif // History_h | 115 #endif // History_h |
| OLD | NEW |