| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google, Inc. All rights reserved. | 2 * Copyright (C) 2012 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 21 matching lines...) Expand all Loading... |
| 32 namespace blink { | 32 namespace blink { |
| 33 | 33 |
| 34 FetchRequest::FetchRequest(const ResourceRequest& resourceRequest, const AtomicS
tring& initiator, const String& charset, ResourceLoadPriority priority) | 34 FetchRequest::FetchRequest(const ResourceRequest& resourceRequest, const AtomicS
tring& initiator, const String& charset, ResourceLoadPriority priority) |
| 35 : m_resourceRequest(resourceRequest) | 35 : m_resourceRequest(resourceRequest) |
| 36 , m_charset(charset) | 36 , m_charset(charset) |
| 37 , m_options(ResourceFetcher::defaultResourceOptions()) | 37 , m_options(ResourceFetcher::defaultResourceOptions()) |
| 38 , m_priority(priority) | 38 , m_priority(priority) |
| 39 , m_forPreload(false) | 39 , m_forPreload(false) |
| 40 , m_defer(NoDefer) | 40 , m_defer(NoDefer) |
| 41 , m_originRestriction(UseDefaultOriginRestrictionForType) | 41 , m_originRestriction(UseDefaultOriginRestrictionForType) |
| 42 , m_resourceWidth(-1) |
| 42 { | 43 { |
| 43 m_options.initiatorInfo.name = initiator; | 44 m_options.initiatorInfo.name = initiator; |
| 44 } | 45 } |
| 45 | 46 |
| 46 FetchRequest::FetchRequest(const ResourceRequest& resourceRequest, const AtomicS
tring& initiator, const ResourceLoaderOptions& options) | 47 FetchRequest::FetchRequest(const ResourceRequest& resourceRequest, const AtomicS
tring& initiator, const ResourceLoaderOptions& options) |
| 47 : m_resourceRequest(resourceRequest) | 48 : m_resourceRequest(resourceRequest) |
| 48 , m_options(options) | 49 , m_options(options) |
| 49 , m_priority(ResourceLoadPriorityUnresolved) | 50 , m_priority(ResourceLoadPriorityUnresolved) |
| 50 , m_forPreload(false) | 51 , m_forPreload(false) |
| 51 , m_defer(NoDefer) | 52 , m_defer(NoDefer) |
| 52 , m_originRestriction(UseDefaultOriginRestrictionForType) | 53 , m_originRestriction(UseDefaultOriginRestrictionForType) |
| 54 , m_resourceWidth(-1) |
| 53 { | 55 { |
| 54 m_options.initiatorInfo.name = initiator; | 56 m_options.initiatorInfo.name = initiator; |
| 55 } | 57 } |
| 56 | 58 |
| 57 FetchRequest::FetchRequest(const ResourceRequest& resourceRequest, const FetchIn
itiatorInfo& initiator) | 59 FetchRequest::FetchRequest(const ResourceRequest& resourceRequest, const FetchIn
itiatorInfo& initiator) |
| 58 : m_resourceRequest(resourceRequest) | 60 : m_resourceRequest(resourceRequest) |
| 59 , m_options(ResourceFetcher::defaultResourceOptions()) | 61 , m_options(ResourceFetcher::defaultResourceOptions()) |
| 60 , m_priority(ResourceLoadPriorityUnresolved) | 62 , m_priority(ResourceLoadPriorityUnresolved) |
| 61 , m_forPreload(false) | 63 , m_forPreload(false) |
| 62 , m_defer(NoDefer) | 64 , m_defer(NoDefer) |
| 63 , m_originRestriction(UseDefaultOriginRestrictionForType) | 65 , m_originRestriction(UseDefaultOriginRestrictionForType) |
| 66 , m_resourceWidth(-1) |
| 64 { | 67 { |
| 65 m_options.initiatorInfo = initiator; | 68 m_options.initiatorInfo = initiator; |
| 66 } | 69 } |
| 67 | 70 |
| 68 FetchRequest::~FetchRequest() | 71 FetchRequest::~FetchRequest() |
| 69 { | 72 { |
| 70 } | 73 } |
| 71 | 74 |
| 72 void FetchRequest::setCrossOriginAccessControl(SecurityOrigin* origin, StoredCre
dentials allowCredentials, CredentialRequest requested) | 75 void FetchRequest::setCrossOriginAccessControl(SecurityOrigin* origin, StoredCre
dentials allowCredentials, CredentialRequest requested) |
| 73 { | 76 { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 84 { | 87 { |
| 85 setCrossOriginAccessControl(origin, allowCredentials, allowCredentials == Al
lowStoredCredentials ? ClientRequestedCredentials : ClientDidNotRequestCredentia
ls); | 88 setCrossOriginAccessControl(origin, allowCredentials, allowCredentials == Al
lowStoredCredentials ? ClientRequestedCredentials : ClientDidNotRequestCredentia
ls); |
| 86 } | 89 } |
| 87 | 90 |
| 88 void FetchRequest::setCrossOriginAccessControl(SecurityOrigin* origin, const Ato
micString& crossOriginMode) | 91 void FetchRequest::setCrossOriginAccessControl(SecurityOrigin* origin, const Ato
micString& crossOriginMode) |
| 89 { | 92 { |
| 90 setCrossOriginAccessControl(origin, equalIgnoringCase(crossOriginMode, "use-
credentials") ? AllowStoredCredentials : DoNotAllowStoredCredentials); | 93 setCrossOriginAccessControl(origin, equalIgnoringCase(crossOriginMode, "use-
credentials") ? AllowStoredCredentials : DoNotAllowStoredCredentials); |
| 91 } | 94 } |
| 92 | 95 |
| 93 } // namespace blink | 96 } // namespace blink |
| OLD | NEW |