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

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

Issue 100563004: Redirect HTML resource bytes directly to parser thread (Blink side CL) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@parserthread_decodermove
Patch Set: Cache parser thread pointer in HTMLDocumentParser Created 6 years, 10 months 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 25 matching lines...) Expand all
36 #include "core/loader/DocumentLoadTiming.h" 36 #include "core/loader/DocumentLoadTiming.h"
37 #include "core/loader/DocumentWriter.h" 37 #include "core/loader/DocumentWriter.h"
38 #include "core/loader/NavigationAction.h" 38 #include "core/loader/NavigationAction.h"
39 #include "core/loader/SubstituteData.h" 39 #include "core/loader/SubstituteData.h"
40 #include "platform/network/ResourceError.h" 40 #include "platform/network/ResourceError.h"
41 #include "platform/network/ResourceRequest.h" 41 #include "platform/network/ResourceRequest.h"
42 #include "platform/network/ResourceResponse.h" 42 #include "platform/network/ResourceResponse.h"
43 #include "wtf/HashSet.h" 43 #include "wtf/HashSet.h"
44 #include "wtf/RefPtr.h" 44 #include "wtf/RefPtr.h"
45 45
46 namespace blink {
47 class WebThreadedResourceProvider;
48 }
49
46 namespace WTF { 50 namespace WTF {
47 class SchedulePair; 51 class SchedulePair;
48 } 52 }
49 53
50 namespace WebCore { 54 namespace WebCore {
51 class ApplicationCacheHost; 55 class ApplicationCacheHost;
52 class ArchiveResource; 56 class ArchiveResource;
53 class ArchiveResourceCollection; 57 class ArchiveResourceCollection;
54 class ResourceFetcher; 58 class ResourceFetcher;
55 class ContentFilter; 59 class ContentFilter;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 const NavigationAction& triggeringAction() const { return m_triggeringAc tion; } 120 const NavigationAction& triggeringAction() const { return m_triggeringAc tion; }
117 void setTriggeringAction(const NavigationAction& action) { m_triggeringA ction = action; } 121 void setTriggeringAction(const NavigationAction& action) { m_triggeringA ction = action; }
118 122
119 void setOverrideEncoding(const AtomicString& encoding) { m_overrideEncod ing = encoding; } 123 void setOverrideEncoding(const AtomicString& encoding) { m_overrideEncod ing = encoding; }
120 124
121 void setDefersLoading(bool); 125 void setDefersLoading(bool);
122 126
123 void startLoadingMainResource(); 127 void startLoadingMainResource();
124 void cancelMainResourceLoad(const ResourceError&); 128 void cancelMainResourceLoad(const ResourceError&);
125 129
130 PassOwnPtr<blink::WebThreadedResourceProvider> createThreadedResourcePro vider();
126 DocumentLoadTiming* timing() { return &m_documentLoadTiming; } 131 DocumentLoadTiming* timing() { return &m_documentLoadTiming; }
127 132
128 ApplicationCacheHost* applicationCacheHost() const { return m_applicatio nCacheHost.get(); } 133 ApplicationCacheHost* applicationCacheHost() const { return m_applicatio nCacheHost.get(); }
129 134
130 void checkLoadComplete(); 135 void checkLoadComplete();
131 136
132 bool isRedirect() const { return m_redirectChain.size() > 1; } 137 bool isRedirect() const { return m_redirectChain.size() > 1; }
133 void clearRedirectChain(); 138 void clearRedirectChain();
134 void appendRedirect(const KURL&); 139 void appendRedirect(const KURL&);
135 140
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 DocumentLoadTiming m_documentLoadTiming; 220 DocumentLoadTiming m_documentLoadTiming;
216 221
217 double m_timeOfLastDataReceived; 222 double m_timeOfLastDataReceived;
218 223
219 friend class ApplicationCacheHost; // for substitute resource delivery 224 friend class ApplicationCacheHost; // for substitute resource delivery
220 OwnPtr<ApplicationCacheHost> m_applicationCacheHost; 225 OwnPtr<ApplicationCacheHost> m_applicationCacheHost;
221 }; 226 };
222 } 227 }
223 228
224 #endif // DocumentLoader_h 229 #endif // DocumentLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698