Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Side by Side Diff: Source/core/loader/cache/CachedResourceRequest.h

Issue 14949017: Implementation of W3C compliant CSP script-src nonce. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Minor fixes based on Adam's comments Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 contentSecurityPolic yOption) { m_options.contentSecurityPolicyOption = contentSecurityPolicyOption; }
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698