OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All Rights Reserved. | 2 * Copyright (C) 2011 Google 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 ASSERT(request.resourceRequest().frameType() == WebURLRequest::FrameTypeNone
); | 83 ASSERT(request.resourceRequest().frameType() == WebURLRequest::FrameTypeNone
); |
84 ASSERT(request.resourceRequest().requestContext() == WebURLRequest::RequestC
ontextManifest); | 84 ASSERT(request.resourceRequest().requestContext() == WebURLRequest::RequestC
ontextManifest); |
85 return toRawResource(fetcher->requestResource(request, RawResourceFactory(Re
source::Manifest))); | 85 return toRawResource(fetcher->requestResource(request, RawResourceFactory(Re
source::Manifest))); |
86 } | 86 } |
87 | 87 |
88 RawResource::RawResource(const ResourceRequest& resourceRequest, Type type) | 88 RawResource::RawResource(const ResourceRequest& resourceRequest, Type type) |
89 : Resource(resourceRequest, type) | 89 : Resource(resourceRequest, type) |
90 { | 90 { |
91 } | 91 } |
92 | 92 |
93 void RawResource::appendDataInternal(const char* data, size_t length) | 93 void RawResource::appendData(const char* data, size_t length) |
94 { | 94 { |
95 Resource::appendDataInternal(data, length); | 95 Resource::appendData(data, length); |
96 | 96 |
97 RefPtrWillBeRawPtr<RawResource> protect(this); | 97 RefPtrWillBeRawPtr<RawResource> protect(this); |
98 ResourceClientWalker<RawResourceClient> w(m_clients); | 98 ResourceClientWalker<RawResourceClient> w(m_clients); |
99 while (RawResourceClient* c = w.next()) | 99 while (RawResourceClient* c = w.next()) |
100 c->dataReceived(this, data, length); | 100 c->dataReceived(this, data, length); |
101 } | 101 } |
102 | 102 |
103 void RawResource::didAddClient(ResourceClient* c) | 103 void RawResource::didAddClient(ResourceClient* c) |
104 { | 104 { |
105 if (!hasClient(c)) | 105 if (!hasClient(c)) |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 for (const auto& header : oldHeaders) { | 266 for (const auto& header : oldHeaders) { |
267 AtomicString headerName = header.key; | 267 AtomicString headerName = header.key; |
268 if (!shouldIgnoreHeaderForCacheReuse(headerName) && header.value != newH
eaders.get(headerName)) | 268 if (!shouldIgnoreHeaderForCacheReuse(headerName) && header.value != newH
eaders.get(headerName)) |
269 return false; | 269 return false; |
270 } | 270 } |
271 | 271 |
272 return true; | 272 return true; |
273 } | 273 } |
274 | 274 |
275 } // namespace blink | 275 } // namespace blink |
OLD | NEW |