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

Side by Side Diff: Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp

Issue 14531004: Add bitcoin: URI scheme to whitelist for registerProtocolHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« no previous file with comments | « LayoutTests/fast/dom/unregister-protocol-handler-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 26 matching lines...) Expand all
37 #include "wtf/HashSet.h" 37 #include "wtf/HashSet.h"
38 38
39 namespace WebCore { 39 namespace WebCore {
40 40
41 static HashSet<String>* protocolWhitelist; 41 static HashSet<String>* protocolWhitelist;
42 42
43 static void initProtocolHandlerWhitelist() 43 static void initProtocolHandlerWhitelist()
44 { 44 {
45 protocolWhitelist = new HashSet<String>; 45 protocolWhitelist = new HashSet<String>;
46 static const char* protocols[] = { 46 static const char* protocols[] = {
47 "bitcoin",
47 "irc", 48 "irc",
48 "mailto", 49 "mailto",
49 "mms", 50 "mms",
50 "news", 51 "news",
51 "nntp", 52 "nntp",
52 "sms", 53 "sms",
53 "smsto", 54 "smsto",
54 "tel", 55 "tel",
55 "urn", 56 "urn",
56 "webcal", 57 "webcal",
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 207
207 void provideNavigatorContentUtilsTo(Page* page, NavigatorContentUtilsClient* cli ent) 208 void provideNavigatorContentUtilsTo(Page* page, NavigatorContentUtilsClient* cli ent)
208 { 209 {
209 RefCountedSupplement<Page, NavigatorContentUtils>::provideTo(page, Navigator ContentUtils::supplementName(), NavigatorContentUtils::create(client)); 210 RefCountedSupplement<Page, NavigatorContentUtils>::provideTo(page, Navigator ContentUtils::supplementName(), NavigatorContentUtils::create(client));
210 } 211 }
211 212
212 } // namespace WebCore 213 } // namespace WebCore
213 214
214 #endif // ENABLE(NAVIGATOR_CONTENT_UTILS) 215 #endif // ENABLE(NAVIGATOR_CONTENT_UTILS)
215 216
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/unregister-protocol-handler-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698