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

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

Issue 1843663005: Change bool ignoreCache to WebFrameLoadType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 24 matching lines...) Expand all
35 #include "WebHistoryItem.h" 35 #include "WebHistoryItem.h"
36 #include "WebIconURL.h" 36 #include "WebIconURL.h"
37 #include "WebNode.h" 37 #include "WebNode.h"
38 #include "WebURLLoaderOptions.h" 38 #include "WebURLLoaderOptions.h"
39 #include "public/platform/WebCanvas.h" 39 #include "public/platform/WebCanvas.h"
40 #include "public/platform/WebMessagePortChannel.h" 40 #include "public/platform/WebMessagePortChannel.h"
41 #include "public/platform/WebPrivateOwnPtr.h" 41 #include "public/platform/WebPrivateOwnPtr.h"
42 #include "public/platform/WebReferrerPolicy.h" 42 #include "public/platform/WebReferrerPolicy.h"
43 #include "public/platform/WebURL.h" 43 #include "public/platform/WebURL.h"
44 #include "public/platform/WebURLRequest.h" 44 #include "public/platform/WebURLRequest.h"
45 #include "public/web/WebFrameLoadType.h"
45 #include "public/web/WebTreeScopeType.h" 46 #include "public/web/WebTreeScopeType.h"
46 47
47 struct NPObject; 48 struct NPObject;
48 49
49 namespace v8 { 50 namespace v8 {
50 class Context; 51 class Context;
51 class Function; 52 class Function;
52 class Object; 53 class Object;
53 class Value; 54 class Value;
54 template <class T> class Local; 55 template <class T> class Local;
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 331
331 332
332 // Returns true if the WebFrame currently executing JavaScript has access 333 // Returns true if the WebFrame currently executing JavaScript has access
333 // to the given WebFrame, or false otherwise. 334 // to the given WebFrame, or false otherwise.
334 BLINK_EXPORT static bool scriptCanAccess(WebFrame*); 335 BLINK_EXPORT static bool scriptCanAccess(WebFrame*);
335 336
336 337
337 // Navigation ---------------------------------------------------------- 338 // Navigation ----------------------------------------------------------
338 339
339 // Reload the current document. 340 // Reload the current document.
340 // True |ignoreCache| explicitly bypasses caches. 341 // Note: reload() and reloadWithOverrideURL() will be deprecated.
341 // False |ignoreCache| revalidates any existing cache entries. 342 // Do not use these APIs any more, but use loadRequest() instead.
342 virtual void reload(bool ignoreCache = false) = 0; 343 virtual void reload(WebFrameLoadType = WebFrameLoadType::Reload) = 0;
343 344
344 // This is used for situations where we want to reload a different URL becau se of a redirect. 345 // This is used for situations where we want to reload a different URL becau se of a redirect.
345 virtual void reloadWithOverrideURL(const WebURL& overrideUrl, bool ignoreCac he = false) = 0; 346 virtual void reloadWithOverrideURL(const WebURL& overrideUrl, WebFrameLoadTy pe = WebFrameLoadType::Reload) = 0;
346 347
347 // Load the given URL. 348 // Load the given URL.
348 virtual void loadRequest(const WebURLRequest&) = 0; 349 virtual void loadRequest(const WebURLRequest&) = 0;
349 350
350 // Load the given history state, corresponding to a back/forward 351 // Load the given history state, corresponding to a back/forward
351 // navigation of a frame. Multiple frames may be navigated via separate call s. 352 // navigation of a frame. Multiple frames may be navigated via separate call s.
352 virtual void loadHistoryItem( 353 virtual void loadHistoryItem(
353 const WebHistoryItem&, 354 const WebHistoryItem&,
354 WebHistoryLoadType, 355 WebHistoryLoadType,
355 WebURLRequest::CachePolicy = WebURLRequest::UseProtocolCachePolicy) = 0; 356 WebURLRequest::CachePolicy = WebURLRequest::UseProtocolCachePolicy) = 0;
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 WebFrame* m_firstChild; 605 WebFrame* m_firstChild;
605 WebFrame* m_lastChild; 606 WebFrame* m_lastChild;
606 607
607 WebFrame* m_opener; 608 WebFrame* m_opener;
608 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; 609 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker;
609 }; 610 };
610 611
611 } // namespace blink 612 } // namespace blink
612 613
613 #endif 614 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebClientRedirectPolicy.h ('k') | third_party/WebKit/public/web/WebRemoteFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698