| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 class ResourceLoader; | 59 class ResourceLoader; |
| 60 class ThreadedDataReceiver; | 60 class ThreadedDataReceiver; |
| 61 | 61 |
| 62 class CORE_EXPORT DocumentLoader : public RefCountedWillBeGarbageCollectedFi
nalized<DocumentLoader>, private RawResourceClient { | 62 class CORE_EXPORT DocumentLoader : public RefCountedWillBeGarbageCollectedFi
nalized<DocumentLoader>, private RawResourceClient { |
| 63 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(DocumentLoader); | 63 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(DocumentLoader); |
| 64 public: | 64 public: |
| 65 static PassRefPtrWillBeRawPtr<DocumentLoader> create(LocalFrame* frame,
const ResourceRequest& request, const SubstituteData& data) | 65 static PassRefPtrWillBeRawPtr<DocumentLoader> create(LocalFrame* frame,
const ResourceRequest& request, const SubstituteData& data) |
| 66 { | 66 { |
| 67 return adoptRefWillBeNoop(new DocumentLoader(frame, request, data)); | 67 return adoptRefWillBeNoop(new DocumentLoader(frame, request, data)); |
| 68 } | 68 } |
| 69 virtual ~DocumentLoader(); | 69 ~DocumentLoader() override; |
| 70 | 70 |
| 71 LocalFrame* frame() const { return m_frame; } | 71 LocalFrame* frame() const { return m_frame; } |
| 72 | 72 |
| 73 virtual void detachFromFrame(); | 73 virtual void detachFromFrame(); |
| 74 | 74 |
| 75 unsigned long mainResourceIdentifier() const; | 75 unsigned long mainResourceIdentifier() const; |
| 76 | 76 |
| 77 void replaceDocumentWhileExecutingJavaScriptURL(const DocumentInit&, con
st String& source, Document*); | 77 void replaceDocumentWhileExecutingJavaScriptURL(const DocumentInit&, con
st String& source, Document*); |
| 78 | 78 |
| 79 const AtomicString& mimeType() const; | 79 const AtomicString& mimeType() const; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 void clearMainResourceHandle(); | 166 void clearMainResourceHandle(); |
| 167 | 167 |
| 168 bool maybeCreateArchive(); | 168 bool maybeCreateArchive(); |
| 169 | 169 |
| 170 void prepareSubframeArchiveLoadIfNeeded(); | 170 void prepareSubframeArchiveLoadIfNeeded(); |
| 171 | 171 |
| 172 void willSendRequest(ResourceRequest&, const ResourceResponse&); | 172 void willSendRequest(ResourceRequest&, const ResourceResponse&); |
| 173 void finishedLoading(double finishTime); | 173 void finishedLoading(double finishTime); |
| 174 void mainReceivedError(const ResourceError&); | 174 void mainReceivedError(const ResourceError&); |
| 175 void cancelLoadAfterXFrameOptionsOrCSPDenied(const ResourceResponse&); | 175 void cancelLoadAfterXFrameOptionsOrCSPDenied(const ResourceResponse&); |
| 176 virtual void redirectReceived(Resource*, ResourceRequest&, const Resourc
eResponse&) override final; | 176 void redirectReceived(Resource*, ResourceRequest&, const ResourceRespons
e&) final; |
| 177 virtual void updateRequest(Resource*, const ResourceRequest&) override f
inal; | 177 void updateRequest(Resource*, const ResourceRequest&) final; |
| 178 virtual void responseReceived(Resource*, const ResourceResponse&, PassOw
nPtr<WebDataConsumerHandle>) override final; | 178 void responseReceived(Resource*, const ResourceResponse&, PassOwnPtr<Web
DataConsumerHandle>) final; |
| 179 virtual void dataReceived(Resource*, const char* data, unsigned length)
override final; | 179 void dataReceived(Resource*, const char* data, unsigned length) final; |
| 180 virtual void notifyFinished(Resource*) override final; | 180 void notifyFinished(Resource*) final; |
| 181 | 181 |
| 182 bool maybeLoadEmpty(); | 182 bool maybeLoadEmpty(); |
| 183 | 183 |
| 184 bool isRedirectAfterPost(const ResourceRequest&, const ResourceResponse&
); | 184 bool isRedirectAfterPost(const ResourceRequest&, const ResourceResponse&
); |
| 185 | 185 |
| 186 bool shouldContinueForResponse() const; | 186 bool shouldContinueForResponse() const; |
| 187 | 187 |
| 188 RawPtrWillBeMember<LocalFrame> m_frame; | 188 RawPtrWillBeMember<LocalFrame> m_frame; |
| 189 PersistentWillBeMember<ResourceFetcher> m_fetcher; | 189 PersistentWillBeMember<ResourceFetcher> m_fetcher; |
| 190 | 190 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 RefPtr<ContentSecurityPolicy> m_contentSecurityPolicy; | 226 RefPtr<ContentSecurityPolicy> m_contentSecurityPolicy; |
| 227 ClientHintsPreferences m_clientHintsPreferences; | 227 ClientHintsPreferences m_clientHintsPreferences; |
| 228 InitialScrollState m_initialScrollState; | 228 InitialScrollState m_initialScrollState; |
| 229 }; | 229 }; |
| 230 | 230 |
| 231 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 231 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
| 232 | 232 |
| 233 } // namespace blink | 233 } // namespace blink |
| 234 | 234 |
| 235 #endif // DocumentLoader_h | 235 #endif // DocumentLoader_h |
| OLD | NEW |