OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google, Inc. All rights reserved. | 2 * Copyright (C) 2011 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 10 matching lines...) Expand all Loading... |
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef DOMSecurityPolicy_h | 26 #ifndef DOMSecurityPolicy_h |
27 #define DOMSecurityPolicy_h | 27 #define DOMSecurityPolicy_h |
28 | 28 |
29 #include "bindings/v8/ScriptWrappable.h" | 29 #include "bindings/v8/ScriptWrappable.h" |
30 #include "core/dom/ContextLifecycleObserver.h" | 30 #include "core/dom/ContextLifecycleObserver.h" |
31 #include <wtf/PassOwnPtr.h> | 31 #include "wtf/RefCounted.h" |
32 #include <wtf/RefCounted.h> | 32 #include "wtf/text/WTFString.h" |
33 #include <wtf/text/WTFString.h> | |
34 #include <wtf/Vector.h> | |
35 | 33 |
36 namespace WebCore { | 34 namespace WebCore { |
37 | 35 |
38 class ContentSecurityPolicy; | 36 class ContentSecurityPolicy; |
39 class DOMStringList; | 37 class DOMStringList; |
40 class Frame; | 38 class Frame; |
41 | 39 |
42 class DOMSecurityPolicy : public RefCounted<DOMSecurityPolicy>, public ScriptWra
ppable, public ContextLifecycleObserver { | 40 class DOMSecurityPolicy : public RefCounted<DOMSecurityPolicy>, public ScriptWra
ppable, public ContextLifecycleObserver { |
43 public: | 41 public: |
44 static PassRefPtr<DOMSecurityPolicy> create(ScriptExecutionContext* context) | 42 static PassRefPtr<DOMSecurityPolicy> create(ScriptExecutionContext* context) |
(...skipping 20 matching lines...) Expand all Loading... |
65 bool allowsScriptFrom(const String& url) const; | 63 bool allowsScriptFrom(const String& url) const; |
66 bool allowsStyleFrom(const String& url) const; | 64 bool allowsStyleFrom(const String& url) const; |
67 | 65 |
68 private: | 66 private: |
69 explicit DOMSecurityPolicy(ScriptExecutionContext*); | 67 explicit DOMSecurityPolicy(ScriptExecutionContext*); |
70 }; | 68 }; |
71 | 69 |
72 } | 70 } |
73 | 71 |
74 #endif | 72 #endif |
OLD | NEW |