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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 #include "wtf/RefPtr.h" | 53 #include "wtf/RefPtr.h" |
54 #include <memory> | 54 #include <memory> |
55 | 55 |
56 namespace blink { | 56 namespace blink { |
57 | 57 |
58 class ApplicationCacheHost; | 58 class ApplicationCacheHost; |
59 class ResourceFetcher; | 59 class ResourceFetcher; |
60 class DocumentInit; | 60 class DocumentInit; |
61 class LocalFrame; | 61 class LocalFrame; |
62 class FrameLoader; | 62 class FrameLoader; |
| 63 class ResourceTimingInfo; |
63 class WebDocumentSubresourceFilter; | 64 class WebDocumentSubresourceFilter; |
64 struct ViewportDescriptionWrapper; | 65 struct ViewportDescriptionWrapper; |
65 | 66 |
66 class CORE_EXPORT DocumentLoader | 67 class CORE_EXPORT DocumentLoader |
67 : public GarbageCollectedFinalized<DocumentLoader>, | 68 : public GarbageCollectedFinalized<DocumentLoader>, |
68 private RawResourceClient { | 69 private RawResourceClient { |
69 USING_GARBAGE_COLLECTED_MIXIN(DocumentLoader); | 70 USING_GARBAGE_COLLECTED_MIXIN(DocumentLoader); |
70 | 71 |
71 public: | 72 public: |
72 static DocumentLoader* create(LocalFrame* frame, | 73 static DocumentLoader* create(LocalFrame* frame, |
73 const ResourceRequest& request, | 74 const ResourceRequest& request, |
74 const SubstituteData& data, | 75 const SubstituteData& data, |
75 ClientRedirectPolicy clientRedirectPolicy) { | 76 ClientRedirectPolicy clientRedirectPolicy) { |
76 return new DocumentLoader(frame, request, data, clientRedirectPolicy); | 77 return new DocumentLoader(frame, request, data, clientRedirectPolicy); |
77 } | 78 } |
78 ~DocumentLoader() override; | 79 ~DocumentLoader() override; |
79 | 80 |
80 LocalFrame* frame() const { return m_frame; } | 81 LocalFrame* frame() const { return m_frame; } |
81 | 82 |
| 83 ResourceTimingInfo* getMainResourceTimingInfo() const; |
| 84 |
82 virtual void detachFromFrame(); | 85 virtual void detachFromFrame(); |
83 | 86 |
84 unsigned long mainResourceIdentifier() const; | 87 unsigned long mainResourceIdentifier() const; |
85 | 88 |
86 void replaceDocumentWhileExecutingJavaScriptURL(const DocumentInit&, | 89 void replaceDocumentWhileExecutingJavaScriptURL(const DocumentInit&, |
87 const String& source); | 90 const String& source); |
88 | 91 |
89 const AtomicString& mimeType() const; | 92 const AtomicString& mimeType() const; |
90 | 93 |
91 const ResourceRequest& originalRequest() const; | 94 const ResourceRequest& originalRequest() const; |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 // Used to protect against reentrancy into dataReceived(). | 288 // Used to protect against reentrancy into dataReceived(). |
286 bool m_inDataReceived; | 289 bool m_inDataReceived; |
287 RefPtr<SharedBuffer> m_dataBuffer; | 290 RefPtr<SharedBuffer> m_dataBuffer; |
288 }; | 291 }; |
289 | 292 |
290 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 293 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
291 | 294 |
292 } // namespace blink | 295 } // namespace blink |
293 | 296 |
294 #endif // DocumentLoader_h | 297 #endif // DocumentLoader_h |
OLD | NEW |