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

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

Issue 690793003: Threaded data provider: Support main thread data notifications (Blink side) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Directly call InspectorInstrumentation::hasFrontends Created 6 years, 1 month 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 bool shouldContinueForNavigationPolicy(const ResourceRequest&, ContentSe curityPolicyCheck shouldCheckMainWorldContentSecurityPolicy, bool isTransitionNa vigation = false); 110 bool shouldContinueForNavigationPolicy(const ResourceRequest&, ContentSe curityPolicyCheck shouldCheckMainWorldContentSecurityPolicy, bool isTransitionNa vigation = false);
111 const NavigationAction& triggeringAction() const { return m_triggeringAc tion; } 111 const NavigationAction& triggeringAction() const { return m_triggeringAc tion; }
112 void setTriggeringAction(const NavigationAction& action) { m_triggeringA ction = action; } 112 void setTriggeringAction(const NavigationAction& action) { m_triggeringA ction = action; }
113 113
114 void setDefersLoading(bool); 114 void setDefersLoading(bool);
115 115
116 void startLoadingMainResource(); 116 void startLoadingMainResource();
117 void cancelMainResourceLoad(const ResourceError&); 117 void cancelMainResourceLoad(const ResourceError&);
118 118
119 void attachThreadedDataReceiver(PassOwnPtr<blink::WebThreadedDataReceive r>); 119 void attachThreadedDataReceiver(PassOwnPtr<blink::WebThreadedDataReceive r>);
120 void acceptDataFromThreadedReceiver(const char* data, int dataLength, in t encodedDataLength);
120 DocumentLoadTiming* timing() { return &m_documentLoadTiming; } 121 DocumentLoadTiming* timing() { return &m_documentLoadTiming; }
121 122
122 ApplicationCacheHost* applicationCacheHost() const { return m_applicatio nCacheHost.get(); } 123 ApplicationCacheHost* applicationCacheHost() const { return m_applicatio nCacheHost.get(); }
123 124
124 bool isRedirect() const { return m_redirectChain.size() > 1; } 125 bool isRedirect() const { return m_redirectChain.size() > 1; }
125 void clearRedirectChain(); 126 void clearRedirectChain();
126 void appendRedirect(const KURL&); 127 void appendRedirect(const KURL&);
127 128
128 PassRefPtr<ContentSecurityPolicy> releaseContentSecurityPolicy() { retur n m_contentSecurityPolicy.release(); } 129 PassRefPtr<ContentSecurityPolicy> releaseContentSecurityPolicy() { retur n m_contentSecurityPolicy.release(); }
129 130
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 double m_timeOfLastDataReceived; 210 double m_timeOfLastDataReceived;
210 211
211 friend class ApplicationCacheHost; // for substitute resource delivery 212 friend class ApplicationCacheHost; // for substitute resource delivery
212 OwnPtrWillBePersistent<ApplicationCacheHost> m_applicationCacheHost; 213 OwnPtrWillBePersistent<ApplicationCacheHost> m_applicationCacheHost;
213 214
214 RefPtr<ContentSecurityPolicy> m_contentSecurityPolicy; 215 RefPtr<ContentSecurityPolicy> m_contentSecurityPolicy;
215 }; 216 };
216 } 217 }
217 218
218 #endif // DocumentLoader_h 219 #endif // DocumentLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698