Chromium Code Reviews| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 52 const String& charset() const { return m_charset; } | 52 const String& charset() const { return m_charset; } |
| 53 void setCharset(const String& charset) { m_charset = charset; } | 53 void setCharset(const String& charset) { m_charset = charset; } |
| 54 const ResourceLoaderOptions& options() const { return m_options; } | 54 const ResourceLoaderOptions& options() const { return m_options; } |
| 55 void setOptions(const ResourceLoaderOptions& options) { m_options = options; } | 55 void setOptions(const ResourceLoaderOptions& options) { m_options = options; } |
| 56 ResourceLoadPriority priority() const { return m_priority; } | 56 ResourceLoadPriority priority() const { return m_priority; } |
| 57 bool forPreload() const { return m_forPreload; } | 57 bool forPreload() const { return m_forPreload; } |
| 58 void setForPreload(bool forPreload) { m_forPreload = forPreload; } | 58 void setForPreload(bool forPreload) { m_forPreload = forPreload; } |
| 59 DeferOption defer() const { return m_defer; } | 59 DeferOption defer() const { return m_defer; } |
| 60 void setDefer(DeferOption defer) { m_defer = defer; } | 60 void setDefer(DeferOption defer) { m_defer = defer; } |
| 61 void setContentSecurityCheck(ContentSecurityPolicyCheck contentSecurityPolic yOption) { m_options.contentSecurityPolicyOption = contentSecurityPolicyOption; } | 61 void setContentSecurityCheck(ContentSecurityPolicyCheck contentSecurityPolic yOption) { m_options.contentSecurityPolicyOption = contentSecurityPolicyOption; } |
| 62 void setCrossOriginAccessControl(SecurityOrigin*, StoredCredentials, Credent ialRequest); | |
| 62 void setCrossOriginAccessControl(SecurityOrigin*, StoredCredentials); | 63 void setCrossOriginAccessControl(SecurityOrigin*, StoredCredentials); |
|
abarth-chromium
2014/03/12 18:49:32
Can we remove this function and just supply a defa
Hajime Morrita
2014/03/12 18:56:11
We cannot. The default for the third parameter dep
| |
| 63 void setCrossOriginAccessControl(SecurityOrigin*, const AtomicString& crossO riginMode); | 64 void setCrossOriginAccessControl(SecurityOrigin*, const AtomicString& crossO riginMode); |
| 64 OriginRestriction originRestriction() const { return m_originRestriction; } | 65 OriginRestriction originRestriction() const { return m_originRestriction; } |
| 65 void setOriginRestriction(OriginRestriction restriction) { m_originRestricti on = restriction; } | 66 void setOriginRestriction(OriginRestriction restriction) { m_originRestricti on = restriction; } |
| 66 | 67 |
| 67 private: | 68 private: |
| 68 ResourceRequest m_resourceRequest; | 69 ResourceRequest m_resourceRequest; |
| 69 String m_charset; | 70 String m_charset; |
| 70 ResourceLoaderOptions m_options; | 71 ResourceLoaderOptions m_options; |
| 71 ResourceLoadPriority m_priority; | 72 ResourceLoadPriority m_priority; |
| 72 bool m_forPreload; | 73 bool m_forPreload; |
| 73 DeferOption m_defer; | 74 DeferOption m_defer; |
| 74 OriginRestriction m_originRestriction; | 75 OriginRestriction m_originRestriction; |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 } // namespace WebCore | 78 } // namespace WebCore |
| 78 | 79 |
| 79 #endif | 80 #endif |
| OLD | NEW |