OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, Google Inc. All rights reserved. | 2 * Copyright (C) 2011, Google Inc. All rights reserved. |
3 * Copyright (C) 2012, Samsung Electronics. All rights reserved. | 3 * Copyright (C) 2012, Samsung Electronics. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 29 matching lines...) Expand all Loading... |
40 namespace WebCore { | 40 namespace WebCore { |
41 | 41 |
42 static HashSet<String>* protocolWhitelist; | 42 static HashSet<String>* protocolWhitelist; |
43 | 43 |
44 static void initProtocolHandlerWhitelist() | 44 static void initProtocolHandlerWhitelist() |
45 { | 45 { |
46 protocolWhitelist = new HashSet<String>; | 46 protocolWhitelist = new HashSet<String>; |
47 static const char* protocols[] = { | 47 static const char* protocols[] = { |
48 "bitcoin", | 48 "bitcoin", |
49 "geo", | 49 "geo", |
| 50 "im", |
50 "irc", | 51 "irc", |
| 52 "ircs", |
| 53 "magnet", |
51 "mailto", | 54 "mailto", |
52 "magnet", | |
53 "mms", | 55 "mms", |
54 "news", | 56 "news", |
55 "nntp", | 57 "nntp", |
56 "sip", | 58 "sip", |
57 "sms", | 59 "sms", |
58 "smsto", | 60 "smsto", |
59 "ssh", | 61 "ssh", |
60 "tel", | 62 "tel", |
61 "urn", | 63 "urn", |
62 "webcal", | 64 "webcal", |
| 65 "webtai", |
63 "xmpp", | 66 "xmpp", |
64 }; | 67 }; |
65 for (size_t i = 0; i < WTF_ARRAY_LENGTH(protocols); ++i) | 68 for (size_t i = 0; i < WTF_ARRAY_LENGTH(protocols); ++i) |
66 protocolWhitelist->add(protocols[i]); | 69 protocolWhitelist->add(protocols[i]); |
67 } | 70 } |
68 | 71 |
69 static bool verifyCustomHandlerURL(const String& baseURL, const String& url, Exc
eptionState& es) | 72 static bool verifyCustomHandlerURL(const String& baseURL, const String& url, Exc
eptionState& es) |
70 { | 73 { |
71 // The specification requires that it is a SyntaxError if the "%s" token is | 74 // The specification requires that it is a SyntaxError if the "%s" token is |
72 // not present. | 75 // not present. |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 | 216 |
214 void provideNavigatorContentUtilsTo(Page* page, NavigatorContentUtilsClient* cli
ent) | 217 void provideNavigatorContentUtilsTo(Page* page, NavigatorContentUtilsClient* cli
ent) |
215 { | 218 { |
216 RefCountedSupplement<Page, NavigatorContentUtils>::provideTo(page, Navigator
ContentUtils::supplementName(), NavigatorContentUtils::create(client)); | 219 RefCountedSupplement<Page, NavigatorContentUtils>::provideTo(page, Navigator
ContentUtils::supplementName(), NavigatorContentUtils::create(client)); |
217 } | 220 } |
218 | 221 |
219 } // namespace WebCore | 222 } // namespace WebCore |
220 | 223 |
221 #endif // ENABLE(NAVIGATOR_CONTENT_UTILS) | 224 #endif // ENABLE(NAVIGATOR_CONTENT_UTILS) |
222 | 225 |
OLD | NEW |