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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 const SubstituteData&, | 50 const SubstituteData&, |
51 ClientRedirectPolicy); | 51 ClientRedirectPolicy); |
52 | 52 |
53 static WebDataSourceImpl* fromDocumentLoader(DocumentLoader* loader) { | 53 static WebDataSourceImpl* fromDocumentLoader(DocumentLoader* loader) { |
54 return static_cast<WebDataSourceImpl*>(loader); | 54 return static_cast<WebDataSourceImpl*>(loader); |
55 } | 55 } |
56 | 56 |
57 // WebDataSource methods: | 57 // WebDataSource methods: |
58 const WebURLRequest& originalRequest() const override; | 58 const WebURLRequest& originalRequest() const override; |
59 const WebURLRequest& getRequest() const override; | 59 const WebURLRequest& getRequest() const override; |
| 60 WebURLRequest& getRequestWritable() override; |
60 const WebURLResponse& response() const override; | 61 const WebURLResponse& response() const override; |
61 bool hasUnreachableURL() const override; | 62 bool hasUnreachableURL() const override; |
62 WebURL unreachableURL() const override; | 63 WebURL unreachableURL() const override; |
63 void appendRedirect(const WebURL&) override; | 64 void appendRedirect(const WebURL&) override; |
64 void redirectChain(WebVector<WebURL>&) const override; | 65 void redirectChain(WebVector<WebURL>&) const override; |
65 bool isClientRedirect() const override; | 66 bool isClientRedirect() const override; |
66 bool replacesCurrentHistoryItem() const override; | 67 bool replacesCurrentHistoryItem() const override; |
67 WebNavigationType navigationType() const override; | 68 WebNavigationType navigationType() const override; |
68 ExtraData* getExtraData() const override; | 69 ExtraData* getExtraData() const override; |
69 void setExtraData(ExtraData*) override; | 70 void setExtraData(ExtraData*) override; |
(...skipping 22 matching lines...) Expand all Loading... |
92 mutable WrappedResourceRequest m_originalRequestWrapper; | 93 mutable WrappedResourceRequest m_originalRequestWrapper; |
93 mutable WrappedResourceRequest m_requestWrapper; | 94 mutable WrappedResourceRequest m_requestWrapper; |
94 mutable WrappedResourceResponse m_responseWrapper; | 95 mutable WrappedResourceResponse m_responseWrapper; |
95 | 96 |
96 std::unique_ptr<ExtraData> m_extraData; | 97 std::unique_ptr<ExtraData> m_extraData; |
97 }; | 98 }; |
98 | 99 |
99 } // namespace blink | 100 } // namespace blink |
100 | 101 |
101 #endif // WebDataSourceImpl_h | 102 #endif // WebDataSourceImpl_h |
OLD | NEW |