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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
109 NavigationType navigationType() const { return m_navigationType; } | 109 NavigationType navigationType() const { return m_navigationType; } |
110 void setNavigationType(NavigationType navigationType) { m_navigationType = navigationType; } | 110 void setNavigationType(NavigationType navigationType) { m_navigationType = navigationType; } |
111 | 111 |
112 void setDefersLoading(bool); | 112 void setDefersLoading(bool); |
113 | 113 |
114 void startLoadingMainResource(); | 114 void startLoadingMainResource(); |
115 void cancelMainResourceLoad(const ResourceError&); | 115 void cancelMainResourceLoad(const ResourceError&); |
116 | 116 |
117 void attachThreadedDataReceiver(PassRefPtrWillBeRawPtr<ThreadedDataRecei ver>); | 117 void attachThreadedDataReceiver(PassRefPtrWillBeRawPtr<ThreadedDataRecei ver>); |
118 void acceptDataFromThreadedReceiver(const char* data, int dataLength, in t encodedDataLength); | 118 void acceptDataFromThreadedReceiver(const char* data, int dataLength, in t encodedDataLength); |
119 DocumentLoadTiming* timing() { return &m_documentLoadTiming; } | 119 DocumentLoadTiming& timing() { return m_documentLoadTiming; } |
120 const DocumentLoadTiming& timing() const { return m_documentLoadTiming; } | |
Nate Chapin
2015/02/12 18:14:31
It also makes me sad to need separate const and no
| |
120 | 121 |
121 ApplicationCacheHost* applicationCacheHost() const { return m_applicatio nCacheHost.get(); } | 122 ApplicationCacheHost* applicationCacheHost() const { return m_applicatio nCacheHost.get(); } |
122 | 123 |
123 bool isRedirect() const { return m_redirectChain.size() > 1; } | 124 bool isRedirect() const { return m_redirectChain.size() > 1; } |
124 void clearRedirectChain(); | 125 void clearRedirectChain(); |
125 void appendRedirect(const KURL&); | 126 void appendRedirect(const KURL&); |
126 | 127 |
127 PassRefPtr<ContentSecurityPolicy> releaseContentSecurityPolicy() { retur n m_contentSecurityPolicy.release(); } | 128 PassRefPtr<ContentSecurityPolicy> releaseContentSecurityPolicy() { retur n m_contentSecurityPolicy.release(); } |
128 | 129 |
129 protected: | 130 protected: |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
205 double m_timeOfLastDataReceived; | 206 double m_timeOfLastDataReceived; |
206 | 207 |
207 friend class ApplicationCacheHost; // for substitute resource delivery | 208 friend class ApplicationCacheHost; // for substitute resource delivery |
208 OwnPtrWillBePersistent<ApplicationCacheHost> m_applicationCacheHost; | 209 OwnPtrWillBePersistent<ApplicationCacheHost> m_applicationCacheHost; |
209 | 210 |
210 RefPtr<ContentSecurityPolicy> m_contentSecurityPolicy; | 211 RefPtr<ContentSecurityPolicy> m_contentSecurityPolicy; |
211 }; | 212 }; |
212 } | 213 } |
213 | 214 |
214 #endif // DocumentLoader_h | 215 #endif // DocumentLoader_h |
OLD | NEW |