blob: 7e7a9d2a36383a12fbe24e23f26944b241ec7a7b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// 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 THIRD_PARTY_BLINK_RENDERER_MODULES_NAVIGATORCONTENTUTILS_NAVIGATOR_CONTENT_UTILS_CLIENT_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_NAVIGATORCONTENTUTILS_NAVIGATOR_CONTENT_UTILS_CLIENT_H_
#include "third_party/blink/renderer/modules/modules_export.h"
#include "third_party/blink/renderer/platform/heap/handle.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
namespace blink {
class KURL;
class LocalFrame;
class MODULES_EXPORT NavigatorContentUtilsClient
: public GarbageCollected<NavigatorContentUtilsClient> {
public:
explicit NavigatorContentUtilsClient(LocalFrame*);
virtual ~NavigatorContentUtilsClient() = default;
virtual void RegisterProtocolHandler(const String& scheme,
const KURL&,
const String& title);
virtual void UnregisterProtocolHandler(const String& scheme, const KURL&);
virtual void Trace(Visitor*) const;
private:
Member<LocalFrame> frame_;
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_MODULES_NAVIGATORCONTENTUTILS_NAVIGATOR_CONTENT_UTILS_CLIENT_H_
|