Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(427)

Side by Side Diff: Source/core/loader/DocumentLoader.h

Issue 779393002: Turn DocumentParser::pinToMainThread into a cleaner api (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 void appendRedirect(const KURL&); 126 void appendRedirect(const KURL&);
127 127
128 PassRefPtr<ContentSecurityPolicy> releaseContentSecurityPolicy() { retur n m_contentSecurityPolicy.release(); } 128 PassRefPtr<ContentSecurityPolicy> releaseContentSecurityPolicy() { retur n m_contentSecurityPolicy.release(); }
129 129
130 protected: 130 protected:
131 DocumentLoader(LocalFrame*, const ResourceRequest&, const SubstituteData &); 131 DocumentLoader(LocalFrame*, const ResourceRequest&, const SubstituteData &);
132 132
133 Vector<KURL> m_redirectChain; 133 Vector<KURL> m_redirectChain;
134 134
135 private: 135 private:
136 static PassRefPtrWillBeRawPtr<DocumentWriter> createWriterFor(const Docu ment* ownerDocument, const DocumentInit&, const AtomicString& mimeType, const At omicString& encoding, bool dispatch); 136 static PassRefPtrWillBeRawPtr<DocumentWriter> createWriterFor(const Docu ment* ownerDocument, const DocumentInit&, const AtomicString& mimeType, const At omicString& encoding, bool dispatch, ParserSynchronizationPolicy);
137 137
138 void ensureWriter(const AtomicString& mimeType, const KURL& overridingUR L = KURL()); 138 void ensureWriter(const AtomicString& mimeType, const KURL& overridingUR L = KURL());
139 void endWriting(DocumentWriter*); 139 void endWriting(DocumentWriter*);
140 140
141 Document* document() const; 141 Document* document() const;
142 FrameLoader* frameLoader() const; 142 FrameLoader* frameLoader() const;
143 143
144 void commitIfReady(); 144 void commitIfReady();
145 void commitData(const char* bytes, size_t length); 145 void commitData(const char* bytes, size_t length);
146 void setMainDocumentError(const ResourceError&); 146 void setMainDocumentError(const ResourceError&);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 double m_timeOfLastDataReceived; 209 double m_timeOfLastDataReceived;
210 210
211 friend class ApplicationCacheHost; // for substitute resource delivery 211 friend class ApplicationCacheHost; // for substitute resource delivery
212 OwnPtrWillBePersistent<ApplicationCacheHost> m_applicationCacheHost; 212 OwnPtrWillBePersistent<ApplicationCacheHost> m_applicationCacheHost;
213 213
214 RefPtr<ContentSecurityPolicy> m_contentSecurityPolicy; 214 RefPtr<ContentSecurityPolicy> m_contentSecurityPolicy;
215 }; 215 };
216 } 216 }
217 217
218 #endif // DocumentLoader_h 218 #endif // DocumentLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698