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

Side by Side Diff: Source/web/NavigatorContentUtilsClientImpl.h

Issue 392993005: Custom handlers should throw SecurityError exception if the URL's origin differs from the document'… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Done Created 6 years, 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NavigatorContentUtilsClientImpl_h 5 #ifndef NavigatorContentUtilsClientImpl_h
6 #define NavigatorContentUtilsClientImpl_h 6 #define NavigatorContentUtilsClientImpl_h
7 7
8 #include "modules/navigatorcontentutils/NavigatorContentUtilsClient.h" 8 #include "modules/navigatorcontentutils/NavigatorContentUtilsClient.h"
9 #include "platform/weborigin/KURL.h" 9 #include "platform/weborigin/KURL.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class WebViewImpl; 13 class WebViewImpl;
14 14
15 class NavigatorContentUtilsClientImpl FINAL : public NavigatorContentUtilsClient { 15 class NavigatorContentUtilsClientImpl FINAL : public NavigatorContentUtilsClient {
16 public: 16 public:
17 static PassOwnPtr<NavigatorContentUtilsClientImpl> create(WebViewImpl*); 17 static PassOwnPtr<NavigatorContentUtilsClientImpl> create(WebViewImpl*);
18 virtual ~NavigatorContentUtilsClientImpl() { } 18 virtual ~NavigatorContentUtilsClientImpl() { }
19 19
20 virtual void registerProtocolHandler(const String& scheme, const KURL& baseU RL, const KURL&, const String& title) OVERRIDE; 20 virtual void registerProtocolHandler(const String& scheme, const KURL&, cons t String& title) OVERRIDE;
21 virtual CustomHandlersState isProtocolHandlerRegistered(const String& scheme , const KURL& baseURL, const KURL&) OVERRIDE; 21 virtual CustomHandlersState isProtocolHandlerRegistered(const String& scheme , const KURL&) OVERRIDE;
22 virtual void unregisterProtocolHandler(const String& scheme, const KURL& bas eURL, const KURL&) OVERRIDE; 22 virtual void unregisterProtocolHandler(const String& scheme, const KURL&) OV ERRIDE;
23 23
24 private: 24 private:
25 explicit NavigatorContentUtilsClientImpl(WebViewImpl*); 25 explicit NavigatorContentUtilsClientImpl(WebViewImpl*);
26 26
27 WebViewImpl* m_webView; 27 WebViewImpl* m_webView;
28 }; 28 };
29 29
30 } // namespace blink 30 } // namespace blink
31 31
32 #endif // NavigatorContentUtilsClientImpl_h 32 #endif // NavigatorContentUtilsClientImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698