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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; } |
54 void setOptions(const ResourceLoaderOptions& options) { m_options = options;
} | 54 void setOptions(const ResourceLoaderOptions& options) { m_options = options;
} |
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 setContentSecurityCheck(ContentSecurityPolicyCheck contentSecurityPolic
yOption) { m_options.contentSecurityPolicyOption = contentSecurityPolicyOption;
} | 60 void setContentSecurityCheck(ContentSecurityPolicyCheck contentSecurityPolic
yOption) { m_options.contentSecurityPolicyOption = contentSecurityPolicyOption;
} |
61 void setPotentiallyCrossOriginEnabled(SecurityOrigin*, StoredCredentials); | 61 void setCrossOriginAccessControl(SecurityOrigin*, StoredCredentials); |
62 | 62 |
63 private: | 63 private: |
64 ResourceRequest m_resourceRequest; | 64 ResourceRequest m_resourceRequest; |
65 String m_charset; | 65 String m_charset; |
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 }; | 70 }; |
71 | 71 |
72 } // namespace WebCore | 72 } // namespace WebCore |
73 | 73 |
74 #endif | 74 #endif |
OLD | NEW |