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

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: Created 6 years, 9 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 WebThreadedDataReceiver;
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 const NavigationAction& triggeringAction() const { return m_triggeringAc tion; } 119 const NavigationAction& triggeringAction() const { return m_triggeringAc tion; }
116 void setTriggeringAction(const NavigationAction& action) { m_triggeringA ction = action; } 120 void setTriggeringAction(const NavigationAction& action) { m_triggeringA ction = action; }
117 121
118 void setOverrideEncoding(const AtomicString& encoding) { m_overrideEncod ing = encoding; } 122 void setOverrideEncoding(const AtomicString& encoding) { m_overrideEncod ing = encoding; }
119 123
120 void setDefersLoading(bool); 124 void setDefersLoading(bool);
121 125
122 void startLoadingMainResource(); 126 void startLoadingMainResource();
123 void cancelMainResourceLoad(const ResourceError&); 127 void cancelMainResourceLoad(const ResourceError&);
124 128
129 void attachThreadedDataReceiver(blink::WebThreadedDataReceiver*);
abarth-chromium 2014/03/10 21:52:20 PassOwnPtr<blink::WebThreadedDataReceiver>
oystein (OOO til 10th of July) 2014/03/17 21:19:11 Done.
125 DocumentLoadTiming* timing() { return &m_documentLoadTiming; } 130 DocumentLoadTiming* timing() { return &m_documentLoadTiming; }
126 131
127 ApplicationCacheHost* applicationCacheHost() const { return m_applicatio nCacheHost.get(); } 132 ApplicationCacheHost* applicationCacheHost() const { return m_applicatio nCacheHost.get(); }
128 133
129 void checkLoadComplete(); 134 void checkLoadComplete();
130 135
131 bool isRedirect() const { return m_redirectChain.size() > 1; } 136 bool isRedirect() const { return m_redirectChain.size() > 1; }
132 void clearRedirectChain(); 137 void clearRedirectChain();
133 void appendRedirect(const KURL&); 138 void appendRedirect(const KURL&);
134 139
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 DocumentLoadTiming m_documentLoadTiming; 219 DocumentLoadTiming m_documentLoadTiming;
215 220
216 double m_timeOfLastDataReceived; 221 double m_timeOfLastDataReceived;
217 222
218 friend class ApplicationCacheHost; // for substitute resource delivery 223 friend class ApplicationCacheHost; // for substitute resource delivery
219 OwnPtr<ApplicationCacheHost> m_applicationCacheHost; 224 OwnPtr<ApplicationCacheHost> m_applicationCacheHost;
220 }; 225 };
221 } 226 }
222 227
223 #endif // DocumentLoader_h 228 #endif // DocumentLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698