OLD | NEW |
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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 virtual v8::Local<v8::Object> GlobalProxy() const = 0; | 206 virtual v8::Local<v8::Object> GlobalProxy() const = 0; |
207 | 207 |
208 // Returns true if the WebFrame currently executing JavaScript has access | 208 // Returns true if the WebFrame currently executing JavaScript has access |
209 // to the given WebFrame, or false otherwise. | 209 // to the given WebFrame, or false otherwise. |
210 static bool ScriptCanAccess(WebFrame*); | 210 static bool ScriptCanAccess(WebFrame*); |
211 | 211 |
212 // Navigation ---------------------------------------------------------- | 212 // Navigation ---------------------------------------------------------- |
213 // TODO(clamy): Remove the reload, reloadWithOverrideURL, and loadRequest | 213 // TODO(clamy): Remove the reload, reloadWithOverrideURL, and loadRequest |
214 // functions once RenderFrame only calls WebLoadFrame::load. | 214 // functions once RenderFrame only calls WebLoadFrame::load. |
215 | 215 |
216 // Reload the current document. | |
217 // Note: reload() and reloadWithOverrideURL() will be deprecated. | |
218 // Do not use these APIs any more, but use loadRequest() instead. | |
219 virtual void Reload(WebFrameLoadType) = 0; | |
220 | |
221 // This is used for situations where we want to reload a different URL because | |
222 // of a redirect. | |
223 virtual void ReloadWithOverrideURL(const WebURL& override_url, | |
224 WebFrameLoadType) = 0; | |
225 | |
226 // Load the given URL. | |
227 virtual void LoadRequest(const WebURLRequest&) = 0; | |
228 | |
229 // Stops any pending loads on the frame and its children. | 216 // Stops any pending loads on the frame and its children. |
230 virtual void StopLoading() = 0; | 217 virtual void StopLoading() = 0; |
231 | 218 |
232 // View-source rendering mode. Set this before loading an URL to cause | 219 // View-source rendering mode. Set this before loading an URL to cause |
233 // it to be rendered in view-source mode. | 220 // it to be rendered in view-source mode. |
234 virtual void EnableViewSourceMode(bool) = 0; | 221 virtual void EnableViewSourceMode(bool) = 0; |
235 virtual bool IsViewSourceModeEnabled() const = 0; | 222 virtual bool IsViewSourceModeEnabled() const = 0; |
236 | 223 |
237 // Sets the referrer for the given request to be the specified URL or | 224 // Sets the referrer for the given request to be the specified URL or |
238 // if that is null, then it sets the referrer to the referrer that the | 225 // 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 Loading... |
312 WebFrame* first_child_; | 299 WebFrame* first_child_; |
313 WebFrame* last_child_; | 300 WebFrame* last_child_; |
314 | 301 |
315 WebFrame* opener_; | 302 WebFrame* opener_; |
316 std::unique_ptr<OpenedFrameTracker> opened_frame_tracker_; | 303 std::unique_ptr<OpenedFrameTracker> opened_frame_tracker_; |
317 }; | 304 }; |
318 | 305 |
319 } // namespace blink | 306 } // namespace blink |
320 | 307 |
321 #endif | 308 #endif |
OLD | NEW |