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 17 matching lines...) Expand all Loading... | |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebFrame_h | 31 #ifndef WebFrame_h |
32 #define WebFrame_h | 32 #define WebFrame_h |
33 | 33 |
34 #include "WebCompositionUnderline.h" | 34 #include "WebCompositionUnderline.h" |
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 "WebSerializedScriptValue.h" | |
38 #include "WebURLLoaderOptions.h" | 39 #include "WebURLLoaderOptions.h" |
39 #include "public/platform/WebCanvas.h" | 40 #include "public/platform/WebCanvas.h" |
40 #include "public/platform/WebMessagePortChannel.h" | 41 #include "public/platform/WebMessagePortChannel.h" |
41 #include "public/platform/WebPrivateOwnPtr.h" | 42 #include "public/platform/WebPrivateOwnPtr.h" |
42 #include "public/platform/WebReferrerPolicy.h" | 43 #include "public/platform/WebReferrerPolicy.h" |
43 #include "public/platform/WebURL.h" | 44 #include "public/platform/WebURL.h" |
44 #include "public/platform/WebURLRequest.h" | 45 #include "public/platform/WebURLRequest.h" |
46 #include "public/web/WebFrameLoadType.h" | |
45 #include "public/web/WebTreeScopeType.h" | 47 #include "public/web/WebTreeScopeType.h" |
46 | 48 |
47 struct NPObject; | 49 struct NPObject; |
48 | 50 |
49 namespace v8 { | 51 namespace v8 { |
50 class Context; | 52 class Context; |
51 class Function; | 53 class Function; |
52 class Object; | 54 class Object; |
53 class Value; | 55 class Value; |
54 template <class T> class Local; | 56 template <class T> class Local; |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
349 // Navigation ---------------------------------------------------------- | 351 // Navigation ---------------------------------------------------------- |
350 | 352 |
351 // Reload the current document. | 353 // Reload the current document. |
352 // True |ignoreCache| explicitly bypasses caches. | 354 // True |ignoreCache| explicitly bypasses caches. |
353 // False |ignoreCache| revalidates any existing cache entries. | 355 // False |ignoreCache| revalidates any existing cache entries. |
354 virtual void reload(bool ignoreCache = false) = 0; | 356 virtual void reload(bool ignoreCache = false) = 0; |
355 | 357 |
356 // This is used for situations where we want to reload a different URL becau se of a redirect. | 358 // This is used for situations where we want to reload a different URL becau se of a redirect. |
357 virtual void reloadWithOverrideURL(const WebURL& overrideUrl, bool ignoreCac he = false) = 0; | 359 virtual void reloadWithOverrideURL(const WebURL& overrideUrl, bool ignoreCac he = false) = 0; |
358 | 360 |
359 // Load the given URL. | 361 // Load the given URL. For history navigations, a valid WebHistoryItem |
360 virtual void loadRequest(const WebURLRequest&) = 0; | 362 // should be given, as well as a WebHistoryLoadType. |
363 // TODO(clamy): Remove the reload, reloadWithOverrideURL and loadHistoryItem | |
364 // functions once RenderFrame only calls loadRequest. | |
365 virtual void loadRequest(const WebURLRequest&, WebFrameLoadType = Standard, | |
366 const WebHistoryItem& = WebHistoryItem(), | |
367 WebHistoryLoadType = WebHistoryDifferentDocumentLoad) = 0; | |
dcheng
2015/06/02 18:42:02
Since we're changing this interface anyway, any ch
clamy
2015/06/03 14:39:14
Done. I've also reordered the new methods in Weblo
| |
361 | 368 |
362 // Load the given history state, corresponding to a back/forward | 369 // Load the given history state, corresponding to a back/forward |
363 // navigation of a frame. Multiple frames may be navigated via separate call s. | 370 // navigation of a frame. Multiple frames may be navigated via separate call s. |
364 virtual void loadHistoryItem( | 371 virtual void loadHistoryItem( |
365 const WebHistoryItem&, | 372 const WebHistoryItem&, |
366 WebHistoryLoadType, | 373 WebHistoryLoadType, |
367 WebURLRequest::CachePolicy = WebURLRequest::UseProtocolCachePolicy) = 0; | 374 WebURLRequest::CachePolicy = WebURLRequest::UseProtocolCachePolicy) = 0; |
368 | 375 |
369 // Loads the given data with specific mime type and optional text | 376 // Loads the given data with specific mime type and optional text |
370 // encoding. For HTML data, baseURL indicates the security origin of | 377 // encoding. For HTML data, baseURL indicates the security origin of |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
732 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; | 739 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; |
733 }; | 740 }; |
734 | 741 |
735 #if BLINK_IMPLEMENTATION | 742 #if BLINK_IMPLEMENTATION |
736 Frame* toCoreFrame(const WebFrame*); | 743 Frame* toCoreFrame(const WebFrame*); |
737 #endif | 744 #endif |
738 | 745 |
739 } // namespace blink | 746 } // namespace blink |
740 | 747 |
741 #endif | 748 #endif |
OLD | NEW |