| 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 24 matching lines...) Expand all Loading... |
| 35 #include "core/fetch/ClientHintsPreferences.h" | 35 #include "core/fetch/ClientHintsPreferences.h" |
| 36 #include "core/fetch/RawResource.h" | 36 #include "core/fetch/RawResource.h" |
| 37 #include "core/fetch/ResourceLoaderOptions.h" | 37 #include "core/fetch/ResourceLoaderOptions.h" |
| 38 #include "core/fetch/ResourcePtr.h" | 38 #include "core/fetch/ResourcePtr.h" |
| 39 #include "core/fetch/SubstituteData.h" | 39 #include "core/fetch/SubstituteData.h" |
| 40 #include "core/frame/csp/ContentSecurityPolicy.h" | 40 #include "core/frame/csp/ContentSecurityPolicy.h" |
| 41 #include "core/loader/DocumentLoadTiming.h" | 41 #include "core/loader/DocumentLoadTiming.h" |
| 42 #include "core/loader/DocumentWriter.h" | 42 #include "core/loader/DocumentWriter.h" |
| 43 #include "core/loader/FrameLoaderTypes.h" | 43 #include "core/loader/FrameLoaderTypes.h" |
| 44 #include "core/loader/NavigationPolicy.h" | 44 #include "core/loader/NavigationPolicy.h" |
| 45 #include "core/loader/appcache/ApplicationCacheHost.h" | |
| 46 #include "platform/SharedBuffer.h" | 45 #include "platform/SharedBuffer.h" |
| 47 #include "platform/network/ResourceError.h" | 46 #include "platform/network/ResourceError.h" |
| 48 #include "platform/network/ResourceRequest.h" | 47 #include "platform/network/ResourceRequest.h" |
| 49 #include "platform/network/ResourceResponse.h" | 48 #include "platform/network/ResourceResponse.h" |
| 50 #include "wtf/HashSet.h" | 49 #include "wtf/HashSet.h" |
| 51 #include "wtf/RefPtr.h" | 50 #include "wtf/RefPtr.h" |
| 52 | 51 |
| 53 namespace blink { | 52 namespace blink { |
| 54 | 53 |
| 54 class ApplicationCacheHost; |
| 55 class ResourceFetcher; | 55 class ResourceFetcher; |
| 56 class DocumentInit; | 56 class DocumentInit; |
| 57 class LocalFrame; | 57 class LocalFrame; |
| 58 class FrameLoader; | 58 class FrameLoader; |
| 59 class MHTMLArchive; | 59 class MHTMLArchive; |
| 60 class ResourceLoader; | 60 class ResourceLoader; |
| 61 class ThreadedDataReceiver; | 61 class ThreadedDataReceiver; |
| 62 | 62 |
| 63 class CORE_EXPORT DocumentLoader : public RefCountedWillBeGarbageCollectedFinali
zed<DocumentLoader>, private RawResourceClient { | 63 class CORE_EXPORT DocumentLoader : public RefCountedWillBeGarbageCollectedFinali
zed<DocumentLoader>, private RawResourceClient { |
| 64 USING_FAST_MALLOC_WILL_BE_REMOVED(DocumentLoader); | 64 USING_FAST_MALLOC_WILL_BE_REMOVED(DocumentLoader); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 76 unsigned long mainResourceIdentifier() const; | 76 unsigned long mainResourceIdentifier() const; |
| 77 | 77 |
| 78 void replaceDocumentWhileExecutingJavaScriptURL(const DocumentInit&, const S
tring& source, Document*); | 78 void replaceDocumentWhileExecutingJavaScriptURL(const DocumentInit&, const S
tring& source, Document*); |
| 79 | 79 |
| 80 const AtomicString& mimeType() const; | 80 const AtomicString& mimeType() const; |
| 81 | 81 |
| 82 const ResourceRequest& originalRequest() const; | 82 const ResourceRequest& originalRequest() const; |
| 83 | 83 |
| 84 const ResourceRequest& request() const; | 84 const ResourceRequest& request() const; |
| 85 | 85 |
| 86 ResourceFetcher* fetcher() const; | 86 ResourceFetcher* fetcher() const { return m_fetcher.get(); } |
| 87 | 87 |
| 88 const SubstituteData& substituteData() const { return m_substituteData; } | 88 const SubstituteData& substituteData() const { return m_substituteData; } |
| 89 | 89 |
| 90 const KURL& url() const; | 90 const KURL& url() const; |
| 91 const KURL& unreachableURL() const; | 91 const KURL& unreachableURL() const; |
| 92 const KURL& urlForHistory() const; | 92 const KURL& urlForHistory() const; |
| 93 | 93 |
| 94 const AtomicString& responseMIMEType() const; | 94 const AtomicString& responseMIMEType() const; |
| 95 | 95 |
| 96 void didChangePerformanceTiming(); | 96 void didChangePerformanceTiming(); |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 // Used to protect against reentrancy into dataReceived(). | 245 // Used to protect against reentrancy into dataReceived(). |
| 246 bool m_inDataReceived; | 246 bool m_inDataReceived; |
| 247 RefPtr<SharedBuffer> m_dataBuffer; | 247 RefPtr<SharedBuffer> m_dataBuffer; |
| 248 }; | 248 }; |
| 249 | 249 |
| 250 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 250 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
| 251 | 251 |
| 252 } // namespace blink | 252 } // namespace blink |
| 253 | 253 |
| 254 #endif // DocumentLoader_h | 254 #endif // DocumentLoader_h |
| OLD | NEW |