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

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

Issue 916273002: Make DocumentLoader::timing return a reference (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase against ToT Created 5 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
« no previous file with comments | « Source/core/inspector/InspectorResourceAgent.cpp ('k') | Source/core/loader/DocumentLoader.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 NavigationType navigationType() const { return m_navigationType; } 106 NavigationType navigationType() const { return m_navigationType; }
107 void setNavigationType(NavigationType navigationType) { m_navigationType = navigationType; } 107 void setNavigationType(NavigationType navigationType) { m_navigationType = navigationType; }
108 108
109 void setDefersLoading(bool); 109 void setDefersLoading(bool);
110 110
111 void startLoadingMainResource(); 111 void startLoadingMainResource();
112 void cancelMainResourceLoad(const ResourceError&); 112 void cancelMainResourceLoad(const ResourceError&);
113 113
114 void attachThreadedDataReceiver(PassRefPtrWillBeRawPtr<ThreadedDataRecei ver>); 114 void attachThreadedDataReceiver(PassRefPtrWillBeRawPtr<ThreadedDataRecei ver>);
115 void acceptDataFromThreadedReceiver(const char* data, int dataLength, in t encodedDataLength); 115 void acceptDataFromThreadedReceiver(const char* data, int dataLength, in t encodedDataLength);
116 DocumentLoadTiming* timing() { return &m_documentLoadTiming; } 116 DocumentLoadTiming& timing() { return m_documentLoadTiming; }
117 const DocumentLoadTiming& timing() const { return m_documentLoadTiming; }
117 118
118 ApplicationCacheHost* applicationCacheHost() const { return m_applicatio nCacheHost.get(); } 119 ApplicationCacheHost* applicationCacheHost() const { return m_applicatio nCacheHost.get(); }
119 120
120 bool isRedirect() const { return m_redirectChain.size() > 1; } 121 bool isRedirect() const { return m_redirectChain.size() > 1; }
121 void clearRedirectChain(); 122 void clearRedirectChain();
122 void appendRedirect(const KURL&); 123 void appendRedirect(const KURL&);
123 124
124 PassRefPtr<ContentSecurityPolicy> releaseContentSecurityPolicy() { retur n m_contentSecurityPolicy.release(); } 125 PassRefPtr<ContentSecurityPolicy> releaseContentSecurityPolicy() { retur n m_contentSecurityPolicy.release(); }
125 126
126 protected: 127 protected:
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 double m_timeOfLastDataReceived; 201 double m_timeOfLastDataReceived;
201 202
202 friend class ApplicationCacheHost; // for substitute resource delivery 203 friend class ApplicationCacheHost; // for substitute resource delivery
203 OwnPtrWillBePersistent<ApplicationCacheHost> m_applicationCacheHost; 204 OwnPtrWillBePersistent<ApplicationCacheHost> m_applicationCacheHost;
204 205
205 RefPtr<ContentSecurityPolicy> m_contentSecurityPolicy; 206 RefPtr<ContentSecurityPolicy> m_contentSecurityPolicy;
206 }; 207 };
207 } 208 }
208 209
209 #endif // DocumentLoader_h 210 #endif // DocumentLoader_h
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorResourceAgent.cpp ('k') | Source/core/loader/DocumentLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698