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

Side by Side Diff: third_party/WebKit/public/web/WebFrame.h

Issue 2940863005: Move loading methods from WebFrame to WebLocalFrame. (Closed)
Patch Set: Fixing build problems introduced by rebasing... Created 3 years, 6 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 virtual v8::Local<v8::Object> GlobalProxy() const = 0; 203 virtual v8::Local<v8::Object> GlobalProxy() const = 0;
204 204
205 // Returns true if the WebFrame currently executing JavaScript has access 205 // Returns true if the WebFrame currently executing JavaScript has access
206 // to the given WebFrame, or false otherwise. 206 // to the given WebFrame, or false otherwise.
207 static bool ScriptCanAccess(WebFrame*); 207 static bool ScriptCanAccess(WebFrame*);
208 208
209 // Navigation ---------------------------------------------------------- 209 // Navigation ----------------------------------------------------------
210 // TODO(clamy): Remove the reload, reloadWithOverrideURL, and loadRequest 210 // TODO(clamy): Remove the reload, reloadWithOverrideURL, and loadRequest
211 // functions once RenderFrame only calls WebLoadFrame::load. 211 // functions once RenderFrame only calls WebLoadFrame::load.
212 212
213 // Reload the current document.
214 // Note: reload() and reloadWithOverrideURL() will be deprecated.
215 // Do not use these APIs any more, but use loadRequest() instead.
216 virtual void Reload(WebFrameLoadType) = 0;
217
218 // This is used for situations where we want to reload a different URL because
219 // of a redirect.
220 virtual void ReloadWithOverrideURL(const WebURL& override_url,
221 WebFrameLoadType) = 0;
222
223 // Load the given URL.
224 virtual void LoadRequest(const WebURLRequest&) = 0;
225
226 // Stops any pending loads on the frame and its children. 213 // Stops any pending loads on the frame and its children.
227 virtual void StopLoading() = 0; 214 virtual void StopLoading() = 0;
228 215
229 // View-source rendering mode. Set this before loading an URL to cause 216 // View-source rendering mode. Set this before loading an URL to cause
230 // it to be rendered in view-source mode. 217 // it to be rendered in view-source mode.
231 virtual void EnableViewSourceMode(bool) = 0; 218 virtual void EnableViewSourceMode(bool) = 0;
232 virtual bool IsViewSourceModeEnabled() const = 0; 219 virtual bool IsViewSourceModeEnabled() const = 0;
233 220
234 // Sets the referrer for the given request to be the specified URL or 221 // Sets the referrer for the given request to be the specified URL or
235 // if that is null, then it sets the referrer to the referrer that the 222 // if that is null, then it sets the referrer to the referrer that the
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 WebFrame* first_child_; 296 WebFrame* first_child_;
310 WebFrame* last_child_; 297 WebFrame* last_child_;
311 298
312 WebFrame* opener_; 299 WebFrame* opener_;
313 std::unique_ptr<OpenedFrameTracker> opened_frame_tracker_; 300 std::unique_ptr<OpenedFrameTracker> opened_frame_tracker_;
314 }; 301 };
315 302
316 } // namespace blink 303 } // namespace blink
317 304
318 #endif 305 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698