| OLD | NEW |
| 1 /* | 1 /* |
| 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) | 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) |
| 3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> | 3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> |
| 4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 5 Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. | 5 Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. |
| 6 | 6 |
| 7 This library is free software; you can redistribute it and/or | 7 This library is free software; you can redistribute it and/or |
| 8 modify it under the terms of the GNU Library General Public | 8 modify it under the terms of the GNU Library General Public |
| 9 License as published by the Free Software Foundation; either | 9 License as published by the Free Software Foundation; either |
| 10 version 2 of the License, or (at your option) any later version. | 10 version 2 of the License, or (at your option) any later version. |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 bool ShouldIgnoreHTTPStatusCodeErrors() const override { | 86 bool ShouldIgnoreHTTPStatusCodeErrors() const override { |
| 87 return !IsLinkPreload(); | 87 return !IsLinkPreload(); |
| 88 } | 88 } |
| 89 void WillNotFollowRedirect() override; | 89 void WillNotFollowRedirect() override; |
| 90 void ResponseReceived(const ResourceResponse&, | 90 void ResponseReceived(const ResourceResponse&, |
| 91 std::unique_ptr<WebDataConsumerHandle>) override; | 91 std::unique_ptr<WebDataConsumerHandle>) override; |
| 92 void SetSerializedCachedMetadata(const char*, size_t) override; | 92 void SetSerializedCachedMetadata(const char*, size_t) override; |
| 93 void DidSendData(unsigned long long bytes_sent, | 93 void DidSendData(unsigned long long bytes_sent, |
| 94 unsigned long long total_bytes_to_be_sent) override; | 94 unsigned long long total_bytes_to_be_sent) override; |
| 95 void DidDownloadData(int) override; | 95 void DidDownloadData(int) override; |
| 96 bool IsShareable() const override { return false; } |
| 96 void ReportResourceTimingToClients(const ResourceTimingInfo&) override; | 97 void ReportResourceTimingToClients(const ResourceTimingInfo&) override; |
| 97 }; | 98 }; |
| 98 | 99 |
| 99 #if ENABLE(SECURITY_ASSERT) | 100 #if ENABLE(SECURITY_ASSERT) |
| 100 inline bool IsRawResource(const Resource& resource) { | 101 inline bool IsRawResource(const Resource& resource) { |
| 101 Resource::Type type = resource.GetType(); | 102 Resource::Type type = resource.GetType(); |
| 102 return type == Resource::kMainResource || type == Resource::kRaw || | 103 return type == Resource::kMainResource || type == Resource::kRaw || |
| 103 type == Resource::kTextTrack || type == Resource::kMedia || | 104 type == Resource::kTextTrack || type == Resource::kMedia || |
| 104 type == Resource::kManifest || type == Resource::kImportResource; | 105 type == Resource::kManifest || type == Resource::kImportResource; |
| 105 } | 106 } |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 kDataReceived, | 188 kDataReceived, |
| 188 kDataDownloaded, | 189 kDataDownloaded, |
| 189 kNotifyFinished | 190 kNotifyFinished |
| 190 }; | 191 }; |
| 191 State state_; | 192 State state_; |
| 192 }; | 193 }; |
| 193 | 194 |
| 194 } // namespace blink | 195 } // namespace blink |
| 195 | 196 |
| 196 #endif // RawResource_h | 197 #endif // RawResource_h |
| OLD | NEW |