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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 class WebDataSourceImpl final : public DocumentLoader, public WebDataSource { | 49 class WebDataSourceImpl final : public DocumentLoader, public WebDataSource { |
50 public: | 50 public: |
51 static PassRefPtrWillBeRawPtr<WebDataSourceImpl> create(LocalFrame*, const R
esourceRequest&, const SubstituteData&); | 51 static PassRefPtrWillBeRawPtr<WebDataSourceImpl> create(LocalFrame*, const R
esourceRequest&, const SubstituteData&); |
52 | 52 |
53 static WebDataSourceImpl* fromDocumentLoader(DocumentLoader* loader) | 53 static WebDataSourceImpl* fromDocumentLoader(DocumentLoader* loader) |
54 { | 54 { |
55 return static_cast<WebDataSourceImpl*>(loader); | 55 return static_cast<WebDataSourceImpl*>(loader); |
56 } | 56 } |
57 | 57 |
58 // WebDataSource methods: | 58 // WebDataSource methods: |
59 virtual const WebURLRequest& originalRequest() const override; | 59 const WebURLRequest& originalRequest() const override; |
60 virtual const WebURLRequest& request() const override; | 60 const WebURLRequest& request() const override; |
61 virtual const WebURLResponse& response() const override; | 61 const WebURLResponse& response() const override; |
62 virtual bool hasUnreachableURL() const override; | 62 bool hasUnreachableURL() const override; |
63 virtual WebURL unreachableURL() const override; | 63 WebURL unreachableURL() const override; |
64 virtual void appendRedirect(const WebURL&) override; | 64 void appendRedirect(const WebURL&) override; |
65 virtual void redirectChain(WebVector<WebURL>&) const override; | 65 void redirectChain(WebVector<WebURL>&) const override; |
66 virtual bool isClientRedirect() const override; | 66 bool isClientRedirect() const override; |
67 virtual bool replacesCurrentHistoryItem() const override; | 67 bool replacesCurrentHistoryItem() const override; |
68 virtual WebNavigationType navigationType() const override; | 68 WebNavigationType navigationType() const override; |
69 virtual ExtraData* extraData() const override; | 69 ExtraData* extraData() const override; |
70 virtual void setExtraData(ExtraData*) override; | 70 void setExtraData(ExtraData*) override; |
71 virtual void setNavigationStartTime(double) override; | 71 void setNavigationStartTime(double) override; |
72 | 72 |
73 static WebNavigationType toWebNavigationType(NavigationType); | 73 static WebNavigationType toWebNavigationType(NavigationType); |
74 | 74 |
75 PassOwnPtr<WebPluginLoadObserver> releasePluginLoadObserver() { return m_plu
ginLoadObserver.release(); } | 75 PassOwnPtr<WebPluginLoadObserver> releasePluginLoadObserver() { return m_plu
ginLoadObserver.release(); } |
76 static void setNextPluginLoadObserver(PassOwnPtr<WebPluginLoadObserver>); | 76 static void setNextPluginLoadObserver(PassOwnPtr<WebPluginLoadObserver>); |
77 | 77 |
78 DECLARE_VIRTUAL_TRACE(); | 78 DECLARE_VIRTUAL_TRACE(); |
79 | 79 |
80 private: | 80 private: |
81 WebDataSourceImpl(LocalFrame*, const ResourceRequest&, const SubstituteData&
); | 81 WebDataSourceImpl(LocalFrame*, const ResourceRequest&, const SubstituteData&
); |
82 virtual ~WebDataSourceImpl(); | 82 ~WebDataSourceImpl() override; |
83 virtual void detachFromFrame() override; | 83 void detachFromFrame() override; |
84 | 84 |
85 // Mutable because the const getters will magically sync these to the | 85 // Mutable because the const getters will magically sync these to the |
86 // latest version from WebKit. | 86 // latest version from WebKit. |
87 mutable WrappedResourceRequest m_originalRequestWrapper; | 87 mutable WrappedResourceRequest m_originalRequestWrapper; |
88 mutable WrappedResourceRequest m_requestWrapper; | 88 mutable WrappedResourceRequest m_requestWrapper; |
89 mutable WrappedResourceResponse m_responseWrapper; | 89 mutable WrappedResourceResponse m_responseWrapper; |
90 | 90 |
91 OwnPtr<ExtraData> m_extraData; | 91 OwnPtr<ExtraData> m_extraData; |
92 OwnPtr<WebPluginLoadObserver> m_pluginLoadObserver; | 92 OwnPtr<WebPluginLoadObserver> m_pluginLoadObserver; |
93 }; | 93 }; |
94 | 94 |
95 } // namespace blink | 95 } // namespace blink |
96 | 96 |
97 #endif // WebDataSourceImpl_h | 97 #endif // WebDataSourceImpl_h |
OLD | NEW |