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

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

Issue 2567983008: FasterReload: remove default WebFrameLoadType from WebFrame::reload* (Closed)
Patch Set: Created 4 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
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 // to the given WebFrame, or false otherwise. 313 // to the given WebFrame, or false otherwise.
314 BLINK_EXPORT static bool scriptCanAccess(WebFrame*); 314 BLINK_EXPORT static bool scriptCanAccess(WebFrame*);
315 315
316 // Navigation ---------------------------------------------------------- 316 // Navigation ----------------------------------------------------------
317 // TODO(clamy): Remove the reload, reloadWithOverrideURL, and loadRequest 317 // TODO(clamy): Remove the reload, reloadWithOverrideURL, and loadRequest
318 // functions once RenderFrame only calls WebLoadFrame::load. 318 // functions once RenderFrame only calls WebLoadFrame::load.
319 319
320 // Reload the current document. 320 // Reload the current document.
321 // Note: reload() and reloadWithOverrideURL() will be deprecated. 321 // Note: reload() and reloadWithOverrideURL() will be deprecated.
322 // Do not use these APIs any more, but use loadRequest() instead. 322 // Do not use these APIs any more, but use loadRequest() instead.
323 virtual void reload(WebFrameLoadType = WebFrameLoadType::Reload) = 0; 323 virtual void reload(WebFrameLoadType) = 0;
324 324
325 // This is used for situations where we want to reload a different URL because 325 // This is used for situations where we want to reload a different URL because
326 // of a redirect. 326 // of a redirect.
327 virtual void reloadWithOverrideURL( 327 virtual void reloadWithOverrideURL(const WebURL& overrideUrl,
328 const WebURL& overrideUrl, 328 WebFrameLoadType) = 0;
329 WebFrameLoadType = WebFrameLoadType::Reload) = 0;
330 329
331 // Load the given URL. 330 // Load the given URL.
332 virtual void loadRequest(const WebURLRequest&) = 0; 331 virtual void loadRequest(const WebURLRequest&) = 0;
333 332
334 // This method is short-hand for calling LoadData, where mime_type is 333 // This method is short-hand for calling LoadData, where mime_type is
335 // "text/html" and text_encoding is "UTF-8". 334 // "text/html" and text_encoding is "UTF-8".
336 virtual void loadHTMLString(const WebData& html, 335 virtual void loadHTMLString(const WebData& html,
337 const WebURL& baseURL, 336 const WebURL& baseURL,
338 const WebURL& unreachableURL = WebURL(), 337 const WebURL& unreachableURL = WebURL(),
339 bool replace = false) = 0; 338 bool replace = false) = 0;
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 WebFrame* m_firstChild; 488 WebFrame* m_firstChild;
490 WebFrame* m_lastChild; 489 WebFrame* m_lastChild;
491 490
492 WebFrame* m_opener; 491 WebFrame* m_opener;
493 std::unique_ptr<OpenedFrameTracker> m_openedFrameTracker; 492 std::unique_ptr<OpenedFrameTracker> m_openedFrameTracker;
494 }; 493 };
495 494
496 } // namespace blink 495 } // namespace blink
497 496
498 #endif 497 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698