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, 2008, 2009, 2010, 2011 Apple Inc. All | 5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
6 rights reserved. | 6 rights reserved. |
7 | 7 |
8 This library is free software; you can redistribute it and/or | 8 This library is free software; you can redistribute it and/or |
9 modify it under the terms of the GNU Library General Public | 9 modify it under the terms of the GNU Library General Public |
10 License as published by the Free Software Foundation; either | 10 License as published by the Free Software Foundation; either |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
274 bool MustReloadDueToVaryHeader(const ResourceRequest& new_request) const; | 274 bool MustReloadDueToVaryHeader(const ResourceRequest& new_request) const; |
275 | 275 |
276 bool IsEligibleForIntegrityCheck(SecurityOrigin*) const; | 276 bool IsEligibleForIntegrityCheck(SecurityOrigin*) const; |
277 | 277 |
278 void SetIntegrityMetadata(const IntegrityMetadataSet& metadata) { | 278 void SetIntegrityMetadata(const IntegrityMetadataSet& metadata) { |
279 integrity_metadata_ = metadata; | 279 integrity_metadata_ = metadata; |
280 } | 280 } |
281 const IntegrityMetadataSet& IntegrityMetadata() const { | 281 const IntegrityMetadataSet& IntegrityMetadata() const { |
282 return integrity_metadata_; | 282 return integrity_metadata_; |
283 } | 283 } |
284 void SetIntegrityValue(const String& integrity) { integrity_ = integrity; } | |
yhirano
2017/06/28 04:55:09
Please remove these and use ResourceRequet's membe
xiaofengzhang
2017/06/29 02:26:06
Done. Thanks.
| |
285 String IntegrityValue() const { return integrity_; } | |
284 // The argument must never be |NotChecked|. | 286 // The argument must never be |NotChecked|. |
285 void SetIntegrityDisposition(ResourceIntegrityDisposition); | 287 void SetIntegrityDisposition(ResourceIntegrityDisposition); |
286 ResourceIntegrityDisposition IntegrityDisposition() const { | 288 ResourceIntegrityDisposition IntegrityDisposition() const { |
287 return integrity_disposition_; | 289 return integrity_disposition_; |
288 } | 290 } |
289 bool MustRefetchDueToIntegrityMetadata(const FetchParameters&) const; | 291 bool MustRefetchDueToIntegrityMetadata(const FetchParameters&) const; |
290 | 292 |
291 bool IsAlive() const { return is_alive_; } | 293 bool IsAlive() const { return is_alive_; } |
292 | 294 |
293 void SetCacheIdentifier(const String& cache_identifier) { | 295 void SetCacheIdentifier(const String& cache_identifier) { |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
466 | 468 |
467 bool needs_synchronous_cache_hit_; | 469 bool needs_synchronous_cache_hit_; |
468 bool link_preload_; | 470 bool link_preload_; |
469 bool is_revalidating_; | 471 bool is_revalidating_; |
470 bool is_alive_; | 472 bool is_alive_; |
471 bool is_add_remove_client_prohibited_; | 473 bool is_add_remove_client_prohibited_; |
472 bool is_revalidation_start_forbidden_ = false; | 474 bool is_revalidation_start_forbidden_ = false; |
473 | 475 |
474 ResourceIntegrityDisposition integrity_disposition_; | 476 ResourceIntegrityDisposition integrity_disposition_; |
475 IntegrityMetadataSet integrity_metadata_; | 477 IntegrityMetadataSet integrity_metadata_; |
478 String integrity_; | |
shimazu
2017/06/26 06:13:32
Is this necessary to be kept here?
xiaofengzhang
2017/06/29 02:26:06
Not necessary, thanks for pointing out!
| |
476 | 479 |
477 // Ordered list of all redirects followed while fetching this resource. | 480 // Ordered list of all redirects followed while fetching this resource. |
478 Vector<RedirectPair> redirect_chain_; | 481 Vector<RedirectPair> redirect_chain_; |
479 | 482 |
480 HeapHashCountedSet<WeakMember<ResourceClient>> clients_; | 483 HeapHashCountedSet<WeakMember<ResourceClient>> clients_; |
481 HeapHashCountedSet<WeakMember<ResourceClient>> clients_awaiting_callback_; | 484 HeapHashCountedSet<WeakMember<ResourceClient>> clients_awaiting_callback_; |
482 HeapHashCountedSet<WeakMember<ResourceClient>> finished_clients_; | 485 HeapHashCountedSet<WeakMember<ResourceClient>> finished_clients_; |
483 HeapHashSet<WeakMember<ResourceFinishObserver>> finish_observers_; | 486 HeapHashSet<WeakMember<ResourceFinishObserver>> finish_observers_; |
484 | 487 |
485 ResourceLoaderOptions options_; | 488 ResourceLoaderOptions options_; |
(...skipping 26 matching lines...) Expand all Loading... | |
512 }; | 515 }; |
513 | 516 |
514 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ | 517 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ |
515 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ | 518 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ |
516 resource->GetType() == Resource::k##typeName, \ | 519 resource->GetType() == Resource::k##typeName, \ |
517 resource.GetType() == Resource::k##typeName); | 520 resource.GetType() == Resource::k##typeName); |
518 | 521 |
519 } // namespace blink | 522 } // namespace blink |
520 | 523 |
521 #endif | 524 #endif |
OLD | NEW |