| 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 22 matching lines...) Expand all Loading... |
| 33 #include "platform/network/ResourceRequest.h" | 33 #include "platform/network/ResourceRequest.h" |
| 34 #include "wtf/text/AtomicString.h" | 34 #include "wtf/text/AtomicString.h" |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 class FetchRequest { | 38 class FetchRequest { |
| 39 public: | 39 public: |
| 40 enum DeferOption { NoDefer, DeferredByClient }; | 40 enum DeferOption { NoDefer, DeferredByClient }; |
| 41 enum OriginRestriction { UseDefaultOriginRestrictionForType, RestrictToSameO
rigin, NoOriginRestriction }; | 41 enum OriginRestriction { UseDefaultOriginRestrictionForType, RestrictToSameO
rigin, NoOriginRestriction }; |
| 42 | 42 |
| 43 explicit FetchRequest(const ResourceRequest&, const AtomicString& initiator,
const String& charset = String(), ResourceLoadPriority = ResourceLoadPriorityUn
resolved); | 43 explicit FetchRequest(const ResourceRequest&, const AtomicString& initiator
= AtomicString(), const String& charset = String(), ResourceLoadPriority = Resou
rceLoadPriorityUnresolved); |
| 44 FetchRequest(const ResourceRequest&, const AtomicString& initiator, const Re
sourceLoaderOptions&); | 44 FetchRequest(const ResourceRequest&, const AtomicString& initiator, const Re
sourceLoaderOptions&); |
| 45 FetchRequest(const ResourceRequest&, const FetchInitiatorInfo&); | 45 FetchRequest(const ResourceRequest&, const FetchInitiatorInfo&); |
| 46 ~FetchRequest(); | 46 ~FetchRequest(); |
| 47 | 47 |
| 48 ResourceRequest& mutableResourceRequest() { return m_resourceRequest; } | 48 ResourceRequest& mutableResourceRequest() { return m_resourceRequest; } |
| 49 const ResourceRequest& resourceRequest() const { return m_resourceRequest; } | 49 const ResourceRequest& resourceRequest() const { return m_resourceRequest; } |
| 50 const KURL& url() const { return m_resourceRequest.url(); } | 50 const KURL& url() const { return m_resourceRequest.url(); } |
| 51 const String& charset() const { return m_charset; } | 51 const String& charset() const { return m_charset; } |
| 52 void setCharset(const String& charset) { m_charset = charset; } | 52 void setCharset(const String& charset) { m_charset = charset; } |
| 53 const ResourceLoaderOptions& options() const { return m_options; } | 53 const ResourceLoaderOptions& options() const { return m_options; } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 66 ResourceLoaderOptions m_options; | 66 ResourceLoaderOptions m_options; |
| 67 ResourceLoadPriority m_priority; | 67 ResourceLoadPriority m_priority; |
| 68 bool m_forPreload; | 68 bool m_forPreload; |
| 69 DeferOption m_defer; | 69 DeferOption m_defer; |
| 70 OriginRestriction m_originRestriction; | 70 OriginRestriction m_originRestriction; |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 } // namespace blink | 73 } // namespace blink |
| 74 | 74 |
| 75 #endif | 75 #endif |
| OLD | NEW |