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 #include "platform/network/ResourceLoadPriority.h" | 32 #include "platform/network/ResourceLoadPriority.h" |
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 WebCore { | 36 namespace WebCore { |
37 class SecurityOrigin; | 37 class SecurityOrigin; |
38 | 38 |
39 class FetchRequest { | 39 class FetchRequest { |
40 public: | 40 public: |
41 enum DeferOption { NoDefer, DeferredByClient }; | 41 enum DeferOption { NoDefer, DeferredByClient }; |
42 enum OriginRestriction { UseDefaultOriginRestrictionForType, RestrictToSameO
rigin }; | 42 enum OriginRestriction { UseDefaultOriginRestrictionForType, RestrictToSameO
rigin, NoOriginRestriction }; |
43 | 43 |
44 explicit FetchRequest(const ResourceRequest&, const AtomicString& initiator,
const String& charset = String(), ResourceLoadPriority = ResourceLoadPriorityUn
resolved); | 44 explicit FetchRequest(const ResourceRequest&, const AtomicString& initiator,
const String& charset = String(), ResourceLoadPriority = ResourceLoadPriorityUn
resolved); |
45 FetchRequest(const ResourceRequest&, const AtomicString& initiator, const Re
sourceLoaderOptions&); | 45 FetchRequest(const ResourceRequest&, const AtomicString& initiator, const Re
sourceLoaderOptions&); |
46 FetchRequest(const ResourceRequest&, const FetchInitiatorInfo&); | 46 FetchRequest(const ResourceRequest&, const FetchInitiatorInfo&); |
47 ~FetchRequest(); | 47 ~FetchRequest(); |
48 | 48 |
49 ResourceRequest& mutableResourceRequest() { return m_resourceRequest; } | 49 ResourceRequest& mutableResourceRequest() { return m_resourceRequest; } |
50 const ResourceRequest& resourceRequest() const { return m_resourceRequest; } | 50 const ResourceRequest& resourceRequest() const { return m_resourceRequest; } |
51 const KURL& url() const { return m_resourceRequest.url(); } | 51 const KURL& url() const { return m_resourceRequest.url(); } |
52 const String& charset() const { return m_charset; } | 52 const String& charset() const { return m_charset; } |
(...skipping 18 matching lines...) Expand all Loading... |
71 ResourceLoaderOptions m_options; | 71 ResourceLoaderOptions m_options; |
72 ResourceLoadPriority m_priority; | 72 ResourceLoadPriority m_priority; |
73 bool m_forPreload; | 73 bool m_forPreload; |
74 DeferOption m_defer; | 74 DeferOption m_defer; |
75 OriginRestriction m_originRestriction; | 75 OriginRestriction m_originRestriction; |
76 }; | 76 }; |
77 | 77 |
78 } // namespace WebCore | 78 } // namespace WebCore |
79 | 79 |
80 #endif | 80 #endif |
OLD | NEW |