| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 virtual ~ExtraData() {} | 51 virtual ~ExtraData() {} |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 // Returns the original request that resulted in this datasource. | 54 // Returns the original request that resulted in this datasource. |
| 55 virtual const WebURLRequest& originalRequest() const = 0; | 55 virtual const WebURLRequest& originalRequest() const = 0; |
| 56 | 56 |
| 57 // Returns the request corresponding to this datasource. It may | 57 // Returns the request corresponding to this datasource. It may |
| 58 // include additional request headers added by WebKit that were not | 58 // include additional request headers added by WebKit that were not |
| 59 // present in the original request. This request may also correspond | 59 // present in the original request. This request may also correspond |
| 60 // to a location specified by a redirect that was followed. | 60 // to a location specified by a redirect that was followed. |
| 61 virtual const WebURLRequest& request() const = 0; | 61 virtual const WebURLRequest& getRequest() const = 0; |
| 62 | 62 |
| 63 // Returns the response associated with this datasource. | 63 // Returns the response associated with this datasource. |
| 64 virtual const WebURLResponse& response() const = 0; | 64 virtual const WebURLResponse& response() const = 0; |
| 65 | 65 |
| 66 // When this datasource was created as a result of WebFrame::loadData, | 66 // When this datasource was created as a result of WebFrame::loadData, |
| 67 // there may be an associated unreachableURL. | 67 // there may be an associated unreachableURL. |
| 68 virtual bool hasUnreachableURL() const = 0; | 68 virtual bool hasUnreachableURL() const = 0; |
| 69 virtual WebURL unreachableURL() const = 0; | 69 virtual WebURL unreachableURL() const = 0; |
| 70 | 70 |
| 71 // Allows the embedder to append redirects to the chain as a navigation | 71 // Allows the embedder to append redirects to the chain as a navigation |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 // datasource is destroyed or when a new filter is set. | 120 // datasource is destroyed or when a new filter is set. |
| 121 virtual void setSubresourceFilter(WebDocumentSubresourceFilter*) = 0; | 121 virtual void setSubresourceFilter(WebDocumentSubresourceFilter*) = 0; |
| 122 | 122 |
| 123 protected: | 123 protected: |
| 124 ~WebDataSource() {} | 124 ~WebDataSource() {} |
| 125 }; | 125 }; |
| 126 | 126 |
| 127 } // namespace blink | 127 } // namespace blink |
| 128 | 128 |
| 129 #endif | 129 #endif |
| OLD | NEW |