summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/font_access/navigator_fonts.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/font_access/navigator_fonts.h')
-rw-r--r--chromium/third_party/blink/renderer/modules/font_access/navigator_fonts.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/modules/font_access/navigator_fonts.h b/chromium/third_party/blink/renderer/modules/font_access/navigator_fonts.h
new file mode 100644
index 00000000000..dc44c0c69bc
--- /dev/null
+++ b/chromium/third_party/blink/renderer/modules/font_access/navigator_fonts.h
@@ -0,0 +1,28 @@
+// Copyright 2020 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_FONT_ACCESS_NAVIGATOR_FONTS_H_
+#define THIRD_PARTY_BLINK_RENDERER_MODULES_FONT_ACCESS_NAVIGATOR_FONTS_H_
+
+#include "third_party/blink/renderer/platform/wtf/allocator/allocator.h"
+
+namespace blink {
+
+class ExceptionState;
+class FontManager;
+class Navigator;
+class WorkerNavigator;
+class ScriptState;
+
+class NavigatorFonts final {
+ STATIC_ONLY(NavigatorFonts);
+
+ public:
+ static FontManager* fonts(ScriptState*, Navigator&, ExceptionState&);
+ static FontManager* fonts(ScriptState*, WorkerNavigator&, ExceptionState&);
+};
+
+} // namespace blink
+
+#endif // THIRD_PARTY_BLINK_RENDERER_MODULES_FONT_ACCESS_NAVIGATOR_FONTS_H_