| // Copyright 2014 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef NavigatorContentUtilsClient_h |
| #define NavigatorContentUtilsClient_h |
| |
| #include "modules/ModulesExport.h" |
| #include "platform/heap/Handle.h" |
| #include "platform/wtf/text/WTFString.h" |
| |
| namespace blink { |
| |
| class KURL; |
| class WebLocalFrameImpl; |
| |
| class MODULES_EXPORT NavigatorContentUtilsClient |
| : public GarbageCollectedFinalized<NavigatorContentUtilsClient> { |
| public: |
| static NavigatorContentUtilsClient* Create(WebLocalFrameImpl*); |
| virtual ~NavigatorContentUtilsClient() {} |
| |
| virtual void RegisterProtocolHandler(const String& scheme, |
| const KURL&, |
| const String& title); |
| |
| virtual void UnregisterProtocolHandler(const String& scheme, const KURL&); |
| |
| virtual void Trace(blink::Visitor*); |
| |
| protected: |
| explicit NavigatorContentUtilsClient(WebLocalFrameImpl*); |
| |
| private: |
| Member<WebLocalFrameImpl> web_frame_; |
| }; |
| |
| } // namespace blink |
| |
| #endif // NavigatorContentUtilsClient_h |