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

Side by Side Diff: third_party/WebKit/Source/core/loader/DocumentLoader.cpp

Issue 2511313002: transferSize implementation (Closed)
Patch Set: addressed comments Created 4 years 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 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 visitor->trace(m_documentLoadTiming); 141 visitor->trace(m_documentLoadTiming);
142 visitor->trace(m_applicationCacheHost); 142 visitor->trace(m_applicationCacheHost);
143 visitor->trace(m_contentSecurityPolicy); 143 visitor->trace(m_contentSecurityPolicy);
144 RawResourceClient::trace(visitor); 144 RawResourceClient::trace(visitor);
145 } 145 }
146 146
147 unsigned long DocumentLoader::mainResourceIdentifier() const { 147 unsigned long DocumentLoader::mainResourceIdentifier() const {
148 return m_mainResource ? m_mainResource->identifier() : 0; 148 return m_mainResource ? m_mainResource->identifier() : 0;
149 } 149 }
150 150
151 ResourceTimingInfo* DocumentLoader::getNavigationTimingInfo() const {
152 return fetcher()->getNavigationTimingInfo();
153 }
154
151 const ResourceRequest& DocumentLoader::originalRequest() const { 155 const ResourceRequest& DocumentLoader::originalRequest() const {
152 return m_originalRequest; 156 return m_originalRequest;
153 } 157 }
154 158
155 const ResourceRequest& DocumentLoader::request() const { 159 const ResourceRequest& DocumentLoader::request() const {
156 return m_request; 160 return m_request;
157 } 161 }
158 162
159 const KURL& DocumentLoader::url() const { 163 const KURL& DocumentLoader::url() const {
160 return m_request.url(); 164 return m_request.url();
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
801 m_writer ? m_writer->encoding() : emptyAtom, true, 805 m_writer ? m_writer->encoding() : emptyAtom, true,
802 ForceSynchronousParsing); 806 ForceSynchronousParsing);
803 if (!source.isNull()) 807 if (!source.isNull())
804 m_writer->appendReplacingData(source); 808 m_writer->appendReplacingData(source);
805 endWriting(); 809 endWriting();
806 } 810 }
807 811
808 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); 812 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader);
809 813
810 } // namespace blink 814 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/DocumentLoader.h ('k') | third_party/WebKit/Source/core/timing/PerformanceBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698