| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Intel Inc. All rights reserved. | 2 * Copyright (C) 2013 Intel Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 void setLoadFinishTime(double time) { m_loadFinishTime = time; } | 70 void setLoadFinishTime(double time) { m_loadFinishTime = time; } |
| 71 double loadFinishTime() const { return m_loadFinishTime; } | 71 double loadFinishTime() const { return m_loadFinishTime; } |
| 72 | 72 |
| 73 void setInitialRequest(const ResourceRequest& request) { m_initialRequest =
request; } | 73 void setInitialRequest(const ResourceRequest& request) { m_initialRequest =
request; } |
| 74 const ResourceRequest& initialRequest() const { return m_initialRequest; } | 74 const ResourceRequest& initialRequest() const { return m_initialRequest; } |
| 75 | 75 |
| 76 void setFinalResponse(const ResourceResponse& response) { m_finalResponse =
response; } | 76 void setFinalResponse(const ResourceResponse& response) { m_finalResponse =
response; } |
| 77 const ResourceResponse& finalResponse() const { return m_finalResponse; } | 77 const ResourceResponse& finalResponse() const { return m_finalResponse; } |
| 78 | 78 |
| 79 void addRedirect(const ResourceResponse& redirectResponse, long long encoded
DataLength, bool crossOrigin); | 79 void addRedirect(const ResourceResponse& redirectResponse, bool crossOrigin)
; |
| 80 const Vector<ResourceResponse>& redirectChain() const { return m_redirectCha
in; } | 80 const Vector<ResourceResponse>& redirectChain() const { return m_redirectCha
in; } |
| 81 | 81 |
| 82 void addFinalTransferSize(long long encodedDataLength) { m_transferSize += e
ncodedDataLength; } | 82 void addFinalTransferSize(long long encodedDataLength) { m_transferSize += e
ncodedDataLength; } |
| 83 long long transferSize() const { return m_transferSize; } | 83 long long transferSize() const { return m_transferSize; } |
| 84 | 84 |
| 85 void clearLoadTimings() | 85 void clearLoadTimings() |
| 86 { | 86 { |
| 87 m_finalResponse.setResourceLoadTiming(nullptr); | 87 m_finalResponse.setResourceLoadTiming(nullptr); |
| 88 for (ResourceResponse& redirect : m_redirectChain) | 88 for (ResourceResponse& redirect : m_redirectChain) |
| 89 redirect.setResourceLoadTiming(nullptr); | 89 redirect.setResourceLoadTiming(nullptr); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 130 |
| 131 template <> | 131 template <> |
| 132 struct CrossThreadCopier<ResourceTimingInfo> { | 132 struct CrossThreadCopier<ResourceTimingInfo> { |
| 133 typedef WTF::PassedWrapper<std::unique_ptr<CrossThreadResourceTimingInfoData
>> Type; | 133 typedef WTF::PassedWrapper<std::unique_ptr<CrossThreadResourceTimingInfoData
>> Type; |
| 134 static Type copy(const ResourceTimingInfo& info) { return passed(info.copyDa
ta()); } | 134 static Type copy(const ResourceTimingInfo& info) { return passed(info.copyDa
ta()); } |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 } // namespace blink | 137 } // namespace blink |
| 138 | 138 |
| 139 #endif | 139 #endif |
| OLD | NEW |