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

Unified 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: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/inspector/InspectorResourceAgent.cpp ('k') | Source/core/loader/DocumentLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/DocumentLoader.h
diff --git a/Source/core/loader/DocumentLoader.h b/Source/core/loader/DocumentLoader.h
index e0220b6f489fa9decc703bedec5478939056f439..284a8d2ee67b879b520c3b55469c60e79ed9a658 100644
--- a/Source/core/loader/DocumentLoader.h
+++ b/Source/core/loader/DocumentLoader.h
@@ -116,7 +116,8 @@ namespace blink {
void attachThreadedDataReceiver(PassRefPtrWillBeRawPtr<ThreadedDataReceiver>);
void acceptDataFromThreadedReceiver(const char* data, int dataLength, int encodedDataLength);
- DocumentLoadTiming* timing() { return &m_documentLoadTiming; }
+ DocumentLoadTiming& timing() { return m_documentLoadTiming; }
+ 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
ApplicationCacheHost* applicationCacheHost() const { return m_applicationCacheHost.get(); }
« 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