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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 void setPriority(ResourceLoadPriority priority) { m_priority = priority; } | 54 void setPriority(ResourceLoadPriority priority) { m_priority = priority; } |
55 ResourceLoadPriority priority() const { return m_priority; } | 55 ResourceLoadPriority priority() const { return m_priority; } |
56 bool forPreload() const { return m_forPreload; } | 56 bool forPreload() const { return m_forPreload; } |
57 void setForPreload(bool forPreload) { m_forPreload = forPreload; } | 57 void setForPreload(bool forPreload) { m_forPreload = forPreload; } |
58 DeferOption defer() const { return m_defer; } | 58 DeferOption defer() const { return m_defer; } |
59 void setDefer(DeferOption defer) { m_defer = defer; } | 59 void setDefer(DeferOption defer) { m_defer = defer; } |
60 void setInitiator(PassRefPtr<Element>); | 60 void setInitiator(PassRefPtr<Element>); |
61 void setInitiator(const AtomicString& name); | 61 void setInitiator(const AtomicString& name); |
62 const AtomicString& initiatorName() const; | 62 const AtomicString& initiatorName() const; |
63 PassRefPtr<Element> initiatorElement(); | 63 PassRefPtr<Element> initiatorElement(); |
| 64 void setContentSecurityCheck(ContentSecurityPolicyCheck cspCheck) { m_option
s.cspCheck = cspCheck; } |
64 | 65 |
65 private: | 66 private: |
66 ResourceRequest m_resourceRequest; | 67 ResourceRequest m_resourceRequest; |
67 String m_charset; | 68 String m_charset; |
68 ResourceLoaderOptions m_options; | 69 ResourceLoaderOptions m_options; |
69 ResourceLoadPriority m_priority; | 70 ResourceLoadPriority m_priority; |
70 bool m_forPreload; | 71 bool m_forPreload; |
71 DeferOption m_defer; | 72 DeferOption m_defer; |
72 RefPtr<Element> m_initiatorElement; | 73 RefPtr<Element> m_initiatorElement; |
73 AtomicString m_initiatorName; | 74 AtomicString m_initiatorName; |
74 }; | 75 }; |
75 | 76 |
76 } // namespace WebCore | 77 } // namespace WebCore |
77 | 78 |
78 #endif | 79 #endif |
OLD | NEW |