OLD | NEW |
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 Loading... |
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::getMainResourceTimingInfo() const { |
| 152 return fetcher()->getMainResourceTimingInfo(); |
| 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 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
794 m_writer ? m_writer->encoding() : emptyAtom, true, | 798 m_writer ? m_writer->encoding() : emptyAtom, true, |
795 ForceSynchronousParsing); | 799 ForceSynchronousParsing); |
796 if (!source.isNull()) | 800 if (!source.isNull()) |
797 m_writer->appendReplacingData(source); | 801 m_writer->appendReplacingData(source); |
798 endWriting(); | 802 endWriting(); |
799 } | 803 } |
800 | 804 |
801 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 805 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
802 | 806 |
803 } // namespace blink | 807 } // namespace blink |
OLD | NEW |