| 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 14 matching lines...) Expand all Loading... |
| 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 WebDataSource_h | 31 #ifndef WebDataSource_h |
| 32 #define WebDataSource_h | 32 #define WebDataSource_h |
| 33 | 33 |
| 34 #include "../platform/WebCommon.h" | 34 #include "../platform/WebCommon.h" |
| 35 #include "WebNavigationType.h" | |
| 36 #include "WebTextDirection.h" | |
| 37 | 35 |
| 38 namespace blink { | 36 namespace blink { |
| 39 | 37 |
| 40 class WebDocumentSubresourceFilter; | 38 class WebDocumentSubresourceFilter; |
| 41 class WebURL; | 39 class WebURL; |
| 42 class WebURLRequest; | 40 class WebURLRequest; |
| 43 class WebURLResponse; | 41 class WebURLResponse; |
| 44 template <typename T> | 42 template <typename T> |
| 45 class WebVector; | 43 class WebVector; |
| 46 | 44 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 77 // for each intermediate URL, and one entry for the last URL (so if | 75 // for each intermediate URL, and one entry for the last URL (so if |
| 78 // there are no redirects, it will contain exactly the current URL, and | 76 // there are no redirects, it will contain exactly the current URL, and |
| 79 // if there is one redirect, it will contain the source and destination | 77 // if there is one redirect, it will contain the source and destination |
| 80 // URL). | 78 // URL). |
| 81 virtual void redirectChain(WebVector<WebURL>&) const = 0; | 79 virtual void redirectChain(WebVector<WebURL>&) const = 0; |
| 82 | 80 |
| 83 // Returns whether the navigation associated with this datasource is a | 81 // Returns whether the navigation associated with this datasource is a |
| 84 // client redirect. | 82 // client redirect. |
| 85 virtual bool isClientRedirect() const = 0; | 83 virtual bool isClientRedirect() const = 0; |
| 86 | 84 |
| 87 // Returns whether the navigation associated with this datasource should | |
| 88 // replace the current history item. | |
| 89 virtual bool replacesCurrentHistoryItem() const = 0; | |
| 90 | |
| 91 // The type of navigation that triggered the creation of this datasource. | |
| 92 virtual WebNavigationType navigationType() const = 0; | |
| 93 | |
| 94 // Extra data associated with this datasource. If non-null, the extra | 85 // Extra data associated with this datasource. If non-null, the extra |
| 95 // data pointer will be deleted when the datasource is destroyed. | 86 // data pointer will be deleted when the datasource is destroyed. |
| 96 // Setting the extra data pointer will cause any existing non-null | 87 // Setting the extra data pointer will cause any existing non-null |
| 97 // extra data pointer to be deleted. | 88 // extra data pointer to be deleted. |
| 98 virtual ExtraData* getExtraData() const = 0; | 89 virtual ExtraData* getExtraData() const = 0; |
| 99 virtual void setExtraData(ExtraData*) = 0; | 90 virtual void setExtraData(ExtraData*) = 0; |
| 100 | 91 |
| 101 // Sets the navigation start time for this datasource. Ordinarily, | 92 // Sets the navigation start time for this datasource. Ordinarily, |
| 102 // navigation start is determined in WebCore. But, in some situations, | 93 // navigation start is determined in WebCore. But, in some situations, |
| 103 // the embedder might have a better value and can override it here. This | 94 // the embedder might have a better value and can override it here. This |
| (...skipping 16 matching lines...) Expand all Loading... |
| 120 // datasource is destroyed or when a new filter is set. | 111 // datasource is destroyed or when a new filter is set. |
| 121 virtual void setSubresourceFilter(WebDocumentSubresourceFilter*) = 0; | 112 virtual void setSubresourceFilter(WebDocumentSubresourceFilter*) = 0; |
| 122 | 113 |
| 123 protected: | 114 protected: |
| 124 ~WebDataSource() {} | 115 ~WebDataSource() {} |
| 125 }; | 116 }; |
| 126 | 117 |
| 127 } // namespace blink | 118 } // namespace blink |
| 128 | 119 |
| 129 #endif | 120 #endif |
| OLD | NEW |