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) 2014, Samsung Electronics. All rights reserved. | 3 * Copyright (C) 2014, 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 18 matching lines...) Expand all Loading... |
29 | 29 |
30 #include "bindings/core/v8/ExceptionState.h" | 30 #include "bindings/core/v8/ExceptionState.h" |
31 #include "core/dom/Document.h" | 31 #include "core/dom/Document.h" |
32 #include "core/dom/ExceptionCode.h" | 32 #include "core/dom/ExceptionCode.h" |
33 #include "core/frame/LocalFrame.h" | 33 #include "core/frame/LocalFrame.h" |
34 #include "core/frame/Navigator.h" | 34 #include "core/frame/Navigator.h" |
35 #include "core/page/Page.h" | 35 #include "core/page/Page.h" |
36 #include "wtf/HashSet.h" | 36 #include "wtf/HashSet.h" |
37 #include "wtf/text/StringBuilder.h" | 37 #include "wtf/text/StringBuilder.h" |
38 | 38 |
39 namespace WebCore { | 39 namespace blink { |
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* const protocols[] = { | 46 static const char* const protocols[] = { |
47 "bitcoin", | 47 "bitcoin", |
48 "geo", | 48 "geo", |
49 "im", | 49 "im", |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 const char* NavigatorContentUtils::supplementName() | 226 const char* NavigatorContentUtils::supplementName() |
227 { | 227 { |
228 return "NavigatorContentUtils"; | 228 return "NavigatorContentUtils"; |
229 } | 229 } |
230 | 230 |
231 void provideNavigatorContentUtilsTo(Page& page, PassOwnPtr<NavigatorContentUtils
Client> client) | 231 void provideNavigatorContentUtilsTo(Page& page, PassOwnPtr<NavigatorContentUtils
Client> client) |
232 { | 232 { |
233 NavigatorContentUtils::provideTo(page, NavigatorContentUtils::supplementName
(), NavigatorContentUtils::create(client)); | 233 NavigatorContentUtils::provideTo(page, NavigatorContentUtils::supplementName
(), NavigatorContentUtils::create(client)); |
234 } | 234 } |
235 | 235 |
236 } // namespace WebCore | 236 } // namespace blink |
OLD | NEW |