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

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

Issue 49093004: Move more arrays of strings to shareable memory (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years, 1 month 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) 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 27 matching lines...) Expand all
38 #include "core/page/Page.h" 38 #include "core/page/Page.h"
39 #include "wtf/HashSet.h" 39 #include "wtf/HashSet.h"
40 40
41 namespace WebCore { 41 namespace WebCore {
42 42
43 static HashSet<String>* protocolWhitelist; 43 static HashSet<String>* protocolWhitelist;
44 44
45 static void initProtocolHandlerWhitelist() 45 static void initProtocolHandlerWhitelist()
46 { 46 {
47 protocolWhitelist = new HashSet<String>; 47 protocolWhitelist = new HashSet<String>;
48 static const char* protocols[] = { 48 static const char* const protocols[] = {
49 "bitcoin", 49 "bitcoin",
50 "geo", 50 "geo",
51 "im", 51 "im",
52 "irc", 52 "irc",
53 "ircs", 53 "ircs",
54 "magnet", 54 "magnet",
55 "mailto", 55 "mailto",
56 "mms", 56 "mms",
57 "news", 57 "news",
58 "nntp", 58 "nntp",
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 221
222 void provideNavigatorContentUtilsTo(Page* page, NavigatorContentUtilsClient* cli ent) 222 void provideNavigatorContentUtilsTo(Page* page, NavigatorContentUtilsClient* cli ent)
223 { 223 {
224 RefCountedSupplement<Page, NavigatorContentUtils>::provideTo(page, Navigator ContentUtils::supplementName(), NavigatorContentUtils::create(client)); 224 RefCountedSupplement<Page, NavigatorContentUtils>::provideTo(page, Navigator ContentUtils::supplementName(), NavigatorContentUtils::create(client));
225 } 225 }
226 226
227 } // namespace WebCore 227 } // namespace WebCore
228 228
229 #endif // ENABLE(NAVIGATOR_CONTENT_UTILS) 229 #endif // ENABLE(NAVIGATOR_CONTENT_UTILS)
230 230
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderTextControl.cpp ('k') | Source/modules/websockets/WebSocketDeflater.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698