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

Side by Side Diff: Source/web/ChromeClientImpl.cpp

Issue 22859043: Add a CustomSchemeHandler runtime flag to remove ENABLE(CUSTOM_SCHEME_HANDLER) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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 | « Source/web/ChromeClientImpl.h ('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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
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 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 #include "core/frame/Settings.h" 84 #include "core/frame/Settings.h"
85 #include "core/page/WindowFeatures.h" 85 #include "core/page/WindowFeatures.h"
86 #include "core/rendering/HitTestResult.h" 86 #include "core/rendering/HitTestResult.h"
87 #include "core/rendering/RenderWidget.h" 87 #include "core/rendering/RenderWidget.h"
88 #include "modules/geolocation/Geolocation.h" 88 #include "modules/geolocation/Geolocation.h"
89 #include "platform/ColorChooser.h" 89 #include "platform/ColorChooser.h"
90 #include "platform/ColorChooserClient.h" 90 #include "platform/ColorChooserClient.h"
91 #include "platform/Cursor.h" 91 #include "platform/Cursor.h"
92 #include "platform/DateTimeChooser.h" 92 #include "platform/DateTimeChooser.h"
93 #include "platform/FileChooser.h" 93 #include "platform/FileChooser.h"
94 #include "platform/NotImplemented.h"
94 #include "platform/PlatformScreen.h" 95 #include "platform/PlatformScreen.h"
95 #include "platform/exported/WrappedResourceRequest.h" 96 #include "platform/exported/WrappedResourceRequest.h"
96 #include "platform/geometry/FloatRect.h" 97 #include "platform/geometry/FloatRect.h"
97 #include "platform/geometry/IntRect.h" 98 #include "platform/geometry/IntRect.h"
98 #include "platform/graphics/GraphicsLayer.h" 99 #include "platform/graphics/GraphicsLayer.h"
99 #include "platform/weborigin/SecurityOrigin.h" 100 #include "platform/weborigin/SecurityOrigin.h"
100 #include "public/platform/Platform.h" 101 #include "public/platform/Platform.h"
101 #include "public/platform/WebCursorInfo.h" 102 #include "public/platform/WebCursorInfo.h"
102 #include "public/platform/WebRect.h" 103 #include "public/platform/WebRect.h"
103 #include "public/platform/WebURLRequest.h" 104 #include "public/platform/WebURLRequest.h"
(...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after
1023 NavigatorContentUtilsClientImpl::NavigatorContentUtilsClientImpl(WebViewImpl* we bView) 1024 NavigatorContentUtilsClientImpl::NavigatorContentUtilsClientImpl(WebViewImpl* we bView)
1024 : m_webView(webView) 1025 : m_webView(webView)
1025 { 1026 {
1026 } 1027 }
1027 1028
1028 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche me, const String& baseURL, const String& url, const String& title) 1029 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche me, const String& baseURL, const String& url, const String& title)
1029 { 1030 {
1030 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title); 1031 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title);
1031 } 1032 }
1032 1033
1034 NavigatorContentUtilsClient::CustomHandlersState NavigatorContentUtilsClientImpl ::isProtocolHandlerRegistered(const String& scheme, const String& baseURL, const String& url)
1035 {
1036 notImplemented();
1037 return NavigatorContentUtilsClient::CustomHandlersDeclined;
1038 }
1039
1040 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc heme, const String& baseURL, const String& url)
1041 {
1042 notImplemented();
1043 }
1044
1033 } // namespace blink 1045 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/ChromeClientImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698