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 18 matching lines...) Expand all Loading... |
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 "WebURLLoaderOptions.h" | 38 #include "WebURLLoaderOptions.h" |
| 39 #include "public/platform/WebCachePolicy.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" |
45 #include "public/web/WebFrameLoadType.h" | 46 #include "public/web/WebFrameLoadType.h" |
46 #include "public/web/WebTreeScopeType.h" | 47 #include "public/web/WebTreeScopeType.h" |
47 | 48 |
48 struct NPObject; | 49 struct NPObject; |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 virtual void reloadWithOverrideURL(const WebURL& overrideUrl, WebFrameLoadTy
pe = WebFrameLoadType::Reload) = 0; | 347 virtual void reloadWithOverrideURL(const WebURL& overrideUrl, WebFrameLoadTy
pe = WebFrameLoadType::Reload) = 0; |
347 | 348 |
348 // Load the given URL. | 349 // Load the given URL. |
349 virtual void loadRequest(const WebURLRequest&) = 0; | 350 virtual void loadRequest(const WebURLRequest&) = 0; |
350 | 351 |
351 // Load the given history state, corresponding to a back/forward | 352 // Load the given history state, corresponding to a back/forward |
352 // navigation of a frame. Multiple frames may be navigated via separate call
s. | 353 // navigation of a frame. Multiple frames may be navigated via separate call
s. |
353 virtual void loadHistoryItem( | 354 virtual void loadHistoryItem( |
354 const WebHistoryItem&, | 355 const WebHistoryItem&, |
355 WebHistoryLoadType, | 356 WebHistoryLoadType, |
356 WebURLRequest::CachePolicy = WebURLRequest::UseProtocolCachePolicy) = 0; | 357 WebCachePolicy = WebCachePolicy::UseProtocolCachePolicy) |
| 358 = 0; |
357 | 359 |
358 // This method is short-hand for calling LoadData, where mime_type is | 360 // This method is short-hand for calling LoadData, where mime_type is |
359 // "text/html" and text_encoding is "UTF-8". | 361 // "text/html" and text_encoding is "UTF-8". |
360 virtual void loadHTMLString(const WebData& html, | 362 virtual void loadHTMLString(const WebData& html, |
361 const WebURL& baseURL, | 363 const WebURL& baseURL, |
362 const WebURL& unreachableURL = WebURL(), | 364 const WebURL& unreachableURL = WebURL(), |
363 bool replace = false) = 0; | 365 bool replace = false) = 0; |
364 | 366 |
365 // Stops any pending loads on the frame and its children. | 367 // Stops any pending loads on the frame and its children. |
366 virtual void stopLoading() = 0; | 368 virtual void stopLoading() = 0; |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
605 WebFrame* m_firstChild; | 607 WebFrame* m_firstChild; |
606 WebFrame* m_lastChild; | 608 WebFrame* m_lastChild; |
607 | 609 |
608 WebFrame* m_opener; | 610 WebFrame* m_opener; |
609 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; | 611 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; |
610 }; | 612 }; |
611 | 613 |
612 } // namespace blink | 614 } // namespace blink |
613 | 615 |
614 #endif | 616 #endif |
OLD | NEW |