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 27 matching lines...) Expand all Loading... |
38 #include "platform/weborigin/KURL.h" | 38 #include "platform/weborigin/KURL.h" |
39 #include "public/web/WebDataSource.h" | 39 #include "public/web/WebDataSource.h" |
40 #include "wtf/OwnPtr.h" | 40 #include "wtf/OwnPtr.h" |
41 #include "wtf/PassOwnPtr.h" | 41 #include "wtf/PassOwnPtr.h" |
42 #include "wtf/Vector.h" | 42 #include "wtf/Vector.h" |
43 | 43 |
44 namespace blink { | 44 namespace blink { |
45 | 45 |
46 class WebDataSourceImpl final : public DocumentLoader, public WebDataSource { | 46 class WebDataSourceImpl final : public DocumentLoader, public WebDataSource { |
47 public: | 47 public: |
48 static RawPtr<WebDataSourceImpl> create(LocalFrame*, const ResourceRequest&,
const SubstituteData&); | 48 static WebDataSourceImpl* create(LocalFrame*, const ResourceRequest&, const
SubstituteData&); |
49 | 49 |
50 static WebDataSourceImpl* fromDocumentLoader(DocumentLoader* loader) | 50 static WebDataSourceImpl* fromDocumentLoader(DocumentLoader* loader) |
51 { | 51 { |
52 return static_cast<WebDataSourceImpl*>(loader); | 52 return static_cast<WebDataSourceImpl*>(loader); |
53 } | 53 } |
54 | 54 |
55 // WebDataSource methods: | 55 // WebDataSource methods: |
56 const WebURLRequest& originalRequest() const override; | 56 const WebURLRequest& originalRequest() const override; |
57 const WebURLRequest& request() const override; | 57 const WebURLRequest& request() const override; |
58 const WebURLResponse& response() const override; | 58 const WebURLResponse& response() const override; |
(...skipping 23 matching lines...) Expand all Loading... |
82 mutable WrappedResourceRequest m_originalRequestWrapper; | 82 mutable WrappedResourceRequest m_originalRequestWrapper; |
83 mutable WrappedResourceRequest m_requestWrapper; | 83 mutable WrappedResourceRequest m_requestWrapper; |
84 mutable WrappedResourceResponse m_responseWrapper; | 84 mutable WrappedResourceResponse m_responseWrapper; |
85 | 85 |
86 OwnPtr<ExtraData> m_extraData; | 86 OwnPtr<ExtraData> m_extraData; |
87 }; | 87 }; |
88 | 88 |
89 } // namespace blink | 89 } // namespace blink |
90 | 90 |
91 #endif // WebDataSourceImpl_h | 91 #endif // WebDataSourceImpl_h |
OLD | NEW |