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

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

Issue 2616923002: Replace [CallWith=ExecutionContext] with [CallWith=ScriptState] (Closed)
Patch Set: Fix errors Created 3 years, 11 months 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 20 matching lines...) Expand all
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 "wtf/Forward.h" 35 #include "wtf/Forward.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 class LocalFrame; 39 class LocalFrame;
40 class KURL; 40 class KURL;
41 class ExecutionContext;
42 class ExceptionState; 41 class ExceptionState;
43 class SecurityOrigin; 42 class SecurityOrigin;
43 class ScriptState;
44 44
45 // This class corresponds to the History interface. 45 // This class corresponds to the History interface.
46 class CORE_EXPORT History final : public GarbageCollectedFinalized<History>, 46 class CORE_EXPORT History final : public GarbageCollectedFinalized<History>,
47 public ScriptWrappable, 47 public ScriptWrappable,
48 public ContextClient { 48 public ContextClient {
49 DEFINE_WRAPPERTYPEINFO(); 49 DEFINE_WRAPPERTYPEINFO();
50 USING_GARBAGE_COLLECTED_MIXIN(History); 50 USING_GARBAGE_COLLECTED_MIXIN(History);
51 51
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(ExecutionContext*); 58 void back(ScriptState*);
59 void forward(ExecutionContext*); 59 void forward(ScriptState*);
60 void go(ExecutionContext*, int delta); 60 void go(ScriptState*, int delta);
61 61
62 void pushState(PassRefPtr<SerializedScriptValue> data, 62 void pushState(PassRefPtr<SerializedScriptValue> data,
63 const String& title, 63 const String& title,
64 const String& url, 64 const String& url,
65 ExceptionState& exceptionState) { 65 ExceptionState& exceptionState) {
66 stateObjectAdded(std::move(data), title, url, scrollRestorationInternal(), 66 stateObjectAdded(std::move(data), title, url, scrollRestorationInternal(),
67 FrameLoadTypeStandard, exceptionState); 67 FrameLoadTypeStandard, exceptionState);
68 } 68 }
69 69
70 void replaceState(PassRefPtr<SerializedScriptValue> data, 70 void replaceState(PassRefPtr<SerializedScriptValue> data,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 ExceptionState&); 104 ExceptionState&);
105 SerializedScriptValue* stateInternal() const; 105 SerializedScriptValue* stateInternal() const;
106 HistoryScrollRestorationType scrollRestorationInternal() const; 106 HistoryScrollRestorationType scrollRestorationInternal() const;
107 107
108 RefPtr<SerializedScriptValue> m_lastStateObjectRequested; 108 RefPtr<SerializedScriptValue> m_lastStateObjectRequested;
109 }; 109 };
110 110
111 } // namespace blink 111 } // namespace blink
112 112
113 #endif // History_h 113 #endif // History_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/fileapi/FileReaderSync.idl ('k') | third_party/WebKit/Source/core/frame/History.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698