| 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 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 #include "core/fetch/ResourceFetcher.h" | 29 #include "core/fetch/ResourceFetcher.h" |
| 30 | 30 |
| 31 namespace blink { | 31 namespace blink { |
| 32 | 32 |
| 33 FetchRequest::FetchRequest(const ResourceRequest& resourceRequest, const AtomicS
tring& initiator, const String& charset, ResourceLoadPriority priority) | 33 FetchRequest::FetchRequest(const ResourceRequest& resourceRequest, const AtomicS
tring& initiator, const String& charset, ResourceLoadPriority priority) |
| 34 : m_resourceRequest(resourceRequest) | 34 : m_resourceRequest(resourceRequest) |
| 35 , m_charset(charset) | 35 , m_charset(charset) |
| 36 , m_options(ResourceFetcher::defaultResourceOptions()) | 36 , m_options(ResourceFetcher::defaultResourceOptions()) |
| 37 , m_priority(priority) | 37 , m_priority(priority) |
| 38 , m_forPreload(false) | |
| 39 , m_defer(NoDefer) | 38 , m_defer(NoDefer) |
| 40 , m_originRestriction(UseDefaultOriginRestrictionForType) | 39 , m_originRestriction(UseDefaultOriginRestrictionForType) |
| 41 { | 40 { |
| 42 m_options.initiatorInfo.name = initiator; | 41 m_options.initiatorInfo.name = initiator; |
| 43 } | 42 } |
| 44 | 43 |
| 45 FetchRequest::FetchRequest(const ResourceRequest& resourceRequest, const AtomicS
tring& initiator, const ResourceLoaderOptions& options) | 44 FetchRequest::FetchRequest(const ResourceRequest& resourceRequest, const AtomicS
tring& initiator, const ResourceLoaderOptions& options) |
| 46 : m_resourceRequest(resourceRequest) | 45 : m_resourceRequest(resourceRequest) |
| 47 , m_options(options) | 46 , m_options(options) |
| 48 , m_priority(ResourceLoadPriorityUnresolved) | 47 , m_priority(ResourceLoadPriorityUnresolved) |
| 49 , m_forPreload(false) | |
| 50 , m_defer(NoDefer) | 48 , m_defer(NoDefer) |
| 51 , m_originRestriction(UseDefaultOriginRestrictionForType) | 49 , m_originRestriction(UseDefaultOriginRestrictionForType) |
| 52 { | 50 { |
| 53 m_options.initiatorInfo.name = initiator; | 51 m_options.initiatorInfo.name = initiator; |
| 54 } | 52 } |
| 55 | 53 |
| 56 FetchRequest::FetchRequest(const ResourceRequest& resourceRequest, const FetchIn
itiatorInfo& initiator) | 54 FetchRequest::FetchRequest(const ResourceRequest& resourceRequest, const FetchIn
itiatorInfo& initiator) |
| 57 : m_resourceRequest(resourceRequest) | 55 : m_resourceRequest(resourceRequest) |
| 58 , m_options(ResourceFetcher::defaultResourceOptions()) | 56 , m_options(ResourceFetcher::defaultResourceOptions()) |
| 59 , m_priority(ResourceLoadPriorityUnresolved) | 57 , m_priority(ResourceLoadPriorityUnresolved) |
| 60 , m_forPreload(false) | |
| 61 , m_defer(NoDefer) | 58 , m_defer(NoDefer) |
| 62 , m_originRestriction(UseDefaultOriginRestrictionForType) | 59 , m_originRestriction(UseDefaultOriginRestrictionForType) |
| 63 { | 60 { |
| 64 m_options.initiatorInfo = initiator; | 61 m_options.initiatorInfo = initiator; |
| 65 } | 62 } |
| 66 | 63 |
| 67 FetchRequest::~FetchRequest() | 64 FetchRequest::~FetchRequest() |
| 68 { | 65 { |
| 69 } | 66 } |
| 70 | 67 |
| 71 } // namespace blink | 68 } // namespace blink |
| OLD | NEW |