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 29 matching lines...) Expand all Loading... |
40 public: | 40 public: |
41 enum DeferOption { NoDefer, DeferredByClient }; | 41 enum DeferOption { NoDefer, DeferredByClient }; |
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,
const String& charset = String(), ResourceLoadPriority = ResourceLoadPriorityUn
resolved); |
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 String& charset() const { return m_charset; } | 51 const String& charset() const { return m_charset; } |
51 void setCharset(const String& charset) { m_charset = charset; } | 52 void setCharset(const String& charset) { m_charset = charset; } |
52 const ResourceLoaderOptions& options() const { return m_options; } | 53 const ResourceLoaderOptions& options() const { return m_options; } |
53 void setOptions(const ResourceLoaderOptions& options) { m_options = options;
} | 54 void setOptions(const ResourceLoaderOptions& options) { m_options = options;
} |
54 ResourceLoadPriority priority() const { return m_priority; } | 55 ResourceLoadPriority priority() const { return m_priority; } |
55 bool forPreload() const { return m_forPreload; } | 56 bool forPreload() const { return m_forPreload; } |
56 void setForPreload(bool forPreload) { m_forPreload = forPreload; } | 57 void setForPreload(bool forPreload) { m_forPreload = forPreload; } |
57 DeferOption defer() const { return m_defer; } | 58 DeferOption defer() const { return m_defer; } |
58 void setDefer(DeferOption defer) { m_defer = defer; } | 59 void setDefer(DeferOption defer) { m_defer = defer; } |
59 void setContentSecurityCheck(ContentSecurityPolicyCheck contentSecurityPolic
yOption) { m_options.contentSecurityPolicyOption = contentSecurityPolicyOption;
} | 60 void setContentSecurityCheck(ContentSecurityPolicyCheck contentSecurityPolic
yOption) { m_options.contentSecurityPolicyOption = contentSecurityPolicyOption;
} |
60 void setPotentiallyCrossOriginEnabled(SecurityOrigin*, StoredCredentials); | 61 void setPotentiallyCrossOriginEnabled(SecurityOrigin*, StoredCredentials); |
61 | 62 |
62 private: | 63 private: |
63 ResourceRequest m_resourceRequest; | 64 ResourceRequest m_resourceRequest; |
64 String m_charset; | 65 String m_charset; |
65 ResourceLoaderOptions m_options; | 66 ResourceLoaderOptions m_options; |
66 ResourceLoadPriority m_priority; | 67 ResourceLoadPriority m_priority; |
67 bool m_forPreload; | 68 bool m_forPreload; |
68 DeferOption m_defer; | 69 DeferOption m_defer; |
69 }; | 70 }; |
70 | 71 |
71 } // namespace WebCore | 72 } // namespace WebCore |
72 | 73 |
73 #endif | 74 #endif |
OLD | NEW |