OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "core/loader/FrameLoader.h" | 33 #include "core/loader/FrameLoader.h" |
34 #include "platform/weborigin/SchemeRegistry.h" | 34 #include "platform/weborigin/SchemeRegistry.h" |
35 #include "platform/weborigin/SecurityOrigin.h" | 35 #include "platform/weborigin/SecurityOrigin.h" |
36 #include "platform/weborigin/SecurityPolicy.h" | 36 #include "platform/weborigin/SecurityPolicy.h" |
37 #include "public/platform/WebSecurityOrigin.h" | 37 #include "public/platform/WebSecurityOrigin.h" |
38 #include "public/platform/WebString.h" | 38 #include "public/platform/WebString.h" |
39 #include "public/platform/WebURL.h" | 39 #include "public/platform/WebURL.h" |
40 | 40 |
41 namespace blink { | 41 namespace blink { |
42 | 42 |
43 void WebSecurityPolicy::registerURLSchemeAsLocal(const WebString& scheme) { | |
44 SchemeRegistry::registerURLSchemeAsLocal(scheme); | |
45 } | |
46 | |
47 void WebSecurityPolicy::registerURLSchemeAsNoAccess(const WebString& scheme) { | |
48 SchemeRegistry::registerURLSchemeAsNoAccess(scheme); | |
49 } | |
50 | |
51 void WebSecurityPolicy::registerURLSchemeAsDisplayIsolated( | 43 void WebSecurityPolicy::registerURLSchemeAsDisplayIsolated( |
52 const WebString& scheme) { | 44 const WebString& scheme) { |
53 SchemeRegistry::registerURLSchemeAsDisplayIsolated(scheme); | 45 SchemeRegistry::registerURLSchemeAsDisplayIsolated(scheme); |
54 } | 46 } |
55 | 47 |
56 void WebSecurityPolicy::registerURLSchemeAsSecure(const WebString& scheme) { | |
57 SchemeRegistry::registerURLSchemeAsSecure(scheme); | |
58 } | |
59 | |
60 void WebSecurityPolicy::registerURLSchemeAsCORSEnabled( | |
61 const WebString& scheme) { | |
62 SchemeRegistry::registerURLSchemeAsCORSEnabled(scheme); | |
63 } | |
64 | |
65 void WebSecurityPolicy::registerURLSchemeAsAllowingServiceWorkers( | 48 void WebSecurityPolicy::registerURLSchemeAsAllowingServiceWorkers( |
66 const WebString& scheme) { | 49 const WebString& scheme) { |
67 SchemeRegistry::registerURLSchemeAsAllowingServiceWorkers(scheme); | 50 SchemeRegistry::registerURLSchemeAsAllowingServiceWorkers(scheme); |
68 } | 51 } |
69 | 52 |
70 void WebSecurityPolicy::registerURLSchemeAsSupportingFetchAPI( | 53 void WebSecurityPolicy::registerURLSchemeAsSupportingFetchAPI( |
71 const WebString& scheme) { | 54 const WebString& scheme) { |
72 SchemeRegistry::registerURLSchemeAsSupportingFetchAPI(scheme); | 55 SchemeRegistry::registerURLSchemeAsSupportingFetchAPI(scheme); |
73 } | 56 } |
74 | 57 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 const WebString& scheme) { | 124 const WebString& scheme) { |
142 SchemeRegistry::registerURLSchemeAsNotAllowingJavascriptURLs(scheme); | 125 SchemeRegistry::registerURLSchemeAsNotAllowingJavascriptURLs(scheme); |
143 } | 126 } |
144 | 127 |
145 void WebSecurityPolicy::registerURLSchemeAsAllowedForReferrer( | 128 void WebSecurityPolicy::registerURLSchemeAsAllowedForReferrer( |
146 const WebString& scheme) { | 129 const WebString& scheme) { |
147 SchemeRegistry::registerURLSchemeAsAllowedForReferrer(scheme); | 130 SchemeRegistry::registerURLSchemeAsAllowedForReferrer(scheme); |
148 } | 131 } |
149 | 132 |
150 } // namespace blink | 133 } // namespace blink |
OLD | NEW |