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 13 matching lines...) Expand all Loading... | |
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
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 "../platform/WebCanvas.h" | |
35 #include "../platform/WebFileSystem.h" | |
36 #include "../platform/WebFileSystemType.h" | |
37 #include "../platform/WebMessagePortChannel.h" | |
38 #include "../platform/WebReferrerPolicy.h" | |
39 #include "../platform/WebURL.h" | |
40 #include "WebIconURL.h" | 34 #include "WebIconURL.h" |
41 #include "WebNode.h" | 35 #include "WebNode.h" |
42 #include "WebURLLoaderOptions.h" | 36 #include "WebURLLoaderOptions.h" |
37 #include "public/platform/WebCanvas.h" | |
38 #include "public/platform/WebFileSystem.h" | |
39 #include "public/platform/WebFileSystemType.h" | |
40 #include "public/platform/WebMessagePortChannel.h" | |
41 #include "public/platform/WebReferrerPolicy.h" | |
42 #include "public/platform/WebURL.h" | |
43 #include "public/platform/WebURLRequest.h" | |
abarth-chromium
2014/01/06 22:34:02
Unfortunately, this will cause some compile failur
davidben
2014/01/06 22:42:50
That's what this is for. :-)
https://codereview.c
| |
43 | 44 |
44 struct NPObject; | 45 struct NPObject; |
45 | 46 |
46 namespace v8 { | 47 namespace v8 { |
47 class Context; | 48 class Context; |
48 class Function; | 49 class Function; |
49 class Object; | 50 class Object; |
50 class Value; | 51 class Value; |
51 template <class T> class Handle; | 52 template <class T> class Handle; |
52 template <class T> class Local; | 53 template <class T> class Local; |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
349 virtual void reload(bool ignoreCache = false) = 0; | 350 virtual void reload(bool ignoreCache = false) = 0; |
350 | 351 |
351 // This is used for situations where we want to reload a different URL becau se of a redirect. | 352 // This is used for situations where we want to reload a different URL becau se of a redirect. |
352 virtual void reloadWithOverrideURL(const WebURL& overrideUrl, bool ignoreCac he = false) = 0; | 353 virtual void reloadWithOverrideURL(const WebURL& overrideUrl, bool ignoreCac he = false) = 0; |
353 | 354 |
354 // Load the given URL. | 355 // Load the given URL. |
355 virtual void loadRequest(const WebURLRequest&) = 0; | 356 virtual void loadRequest(const WebURLRequest&) = 0; |
356 | 357 |
357 // Load the given history state, corresponding to a back/forward | 358 // Load the given history state, corresponding to a back/forward |
358 // navigation. | 359 // navigation. |
359 virtual void loadHistoryItem(const WebHistoryItem&) = 0; | 360 virtual void loadHistoryItem( |
361 const WebHistoryItem&, | |
362 WebURLRequest::CachePolicy = WebURLRequest::UseProtocolCachePolicy) = 0; | |
360 | 363 |
361 // Loads the given data with specific mime type and optional text | 364 // Loads the given data with specific mime type and optional text |
362 // encoding. For HTML data, baseURL indicates the security origin of | 365 // encoding. For HTML data, baseURL indicates the security origin of |
363 // the document and is used to resolve links. If specified, | 366 // the document and is used to resolve links. If specified, |
364 // unreachableURL is reported via WebDataSource::unreachableURL. If | 367 // unreachableURL is reported via WebDataSource::unreachableURL. If |
365 // replace is false, then this data will be loaded as a normal | 368 // replace is false, then this data will be loaded as a normal |
366 // navigation. Otherwise, the current history item will be replaced. | 369 // navigation. Otherwise, the current history item will be replaced. |
367 virtual void loadData(const WebData& data, | 370 virtual void loadData(const WebData& data, |
368 const WebString& mimeType, | 371 const WebString& mimeType, |
369 const WebString& textEncoding, | 372 const WebString& textEncoding, |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
676 // text form. This is used only by layout tests. | 679 // text form. This is used only by layout tests. |
677 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0; | 680 virtual WebString layerTreeAsText(bool showDebugInfo = false) const = 0; |
678 | 681 |
679 protected: | 682 protected: |
680 ~WebFrame() { } | 683 ~WebFrame() { } |
681 }; | 684 }; |
682 | 685 |
683 } // namespace blink | 686 } // namespace blink |
684 | 687 |
685 #endif | 688 #endif |
OLD | NEW |