| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 void setFrame(Frame*); | 73 void setFrame(Frame*); |
| 74 Frame* frame() const { return m_frame; } | 74 Frame* frame() const { return m_frame; } |
| 75 | 75 |
| 76 void detachFromFrame(); | 76 void detachFromFrame(); |
| 77 | 77 |
| 78 FrameLoader* frameLoader() const; | 78 FrameLoader* frameLoader() const; |
| 79 | 79 |
| 80 unsigned long mainResourceIdentifier() const; | 80 unsigned long mainResourceIdentifier() const; |
| 81 | 81 |
| 82 void replaceDocument(const String& source, Document*); | 82 void replaceDocument(const String& source, Document*); |
| 83 DocumentWriter* beginWriting(const AtomicString& mimeType, const AtomicS
tring& encoding, const KURL& = KURL()); | |
| 84 void endWriting(DocumentWriter*); | |
| 85 | 83 |
| 86 const AtomicString& mimeType() const; | 84 const AtomicString& mimeType() const; |
| 87 | 85 |
| 88 void setUserChosenEncoding(const String& charset); | 86 void setUserChosenEncoding(const String& charset); |
| 89 | 87 |
| 90 const ResourceRequest& originalRequest() const; | 88 const ResourceRequest& originalRequest() const; |
| 91 const ResourceRequest& originalRequestCopy() const; | 89 const ResourceRequest& originalRequestCopy() const; |
| 92 | 90 |
| 93 const ResourceRequest& request() const; | 91 const ResourceRequest& request() const; |
| 94 ResourceRequest& request(); | 92 ResourceRequest& request(); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 protected: | 155 protected: |
| 158 DocumentLoader(const ResourceRequest&, const SubstituteData&); | 156 DocumentLoader(const ResourceRequest&, const SubstituteData&); |
| 159 | 157 |
| 160 Vector<KURL> m_redirectChain; | 158 Vector<KURL> m_redirectChain; |
| 161 | 159 |
| 162 private: | 160 private: |
| 163 static PassRefPtr<DocumentWriter> createWriterFor(Frame*, const Document
* ownerDocument, const KURL&, const AtomicString& mimeType, const AtomicString&
encoding, bool userChosen, bool dispatch); | 161 static PassRefPtr<DocumentWriter> createWriterFor(Frame*, const Document
* ownerDocument, const KURL&, const AtomicString& mimeType, const AtomicString&
encoding, bool userChosen, bool dispatch); |
| 164 | 162 |
| 165 void ensureWriter(); | 163 void ensureWriter(); |
| 166 void ensureWriter(const AtomicString& mimeType, const KURL& overridingUR
L = KURL()); | 164 void ensureWriter(const AtomicString& mimeType, const KURL& overridingUR
L = KURL()); |
| 165 void endWriting(DocumentWriter*); |
| 167 | 166 |
| 168 Document* document() const; | 167 Document* document() const; |
| 169 | 168 |
| 170 void setRequest(const ResourceRequest&); | |
| 171 | |
| 172 void commitIfReady(); | 169 void commitIfReady(); |
| 173 void commitData(const char* bytes, size_t length); | 170 void commitData(const char* bytes, size_t length); |
| 174 void setMainDocumentError(const ResourceError&); | 171 void setMainDocumentError(const ResourceError&); |
| 175 void clearMainResourceLoader(); | 172 void clearMainResourceLoader(); |
| 176 ResourceLoader* mainResourceLoader() const; | 173 ResourceLoader* mainResourceLoader() const; |
| 177 void clearMainResourceHandle(); | 174 void clearMainResourceHandle(); |
| 178 | 175 |
| 179 void createArchive(); | 176 void createArchive(); |
| 180 void clearArchiveResources(); | 177 void clearArchiveResources(); |
| 181 | 178 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 DocumentLoadTiming m_documentLoadTiming; | 238 DocumentLoadTiming m_documentLoadTiming; |
| 242 | 239 |
| 243 double m_timeOfLastDataReceived; | 240 double m_timeOfLastDataReceived; |
| 244 | 241 |
| 245 friend class ApplicationCacheHost; // for substitute resource delivery | 242 friend class ApplicationCacheHost; // for substitute resource delivery |
| 246 OwnPtr<ApplicationCacheHost> m_applicationCacheHost; | 243 OwnPtr<ApplicationCacheHost> m_applicationCacheHost; |
| 247 }; | 244 }; |
| 248 } | 245 } |
| 249 | 246 |
| 250 #endif // DocumentLoader_h | 247 #endif // DocumentLoader_h |
| OLD | NEW |