Index: content/browser/font_access/font_getter.h |
diff --git a/content/browser/font_access/font_getter.h b/content/browser/font_access/font_getter.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d94caf17d6f8f43c10e9561c5491df5483b5e000 |
--- /dev/null |
+++ b/content/browser/font_access/font_getter.h |
@@ -0,0 +1,32 @@ |
+// Copyright (c) 2016 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 CONTENT_BROWSER_FONT_ACCESS_FONT_GETTER_H_ |
+#define CONTENT_BROWSER_FONT_ACCESS_FONT_GETTER_H_ |
+ |
+#include <map> |
+#include <string> |
+ |
+#include "base/memory/scoped_ptr.h" |
+ |
+namespace content { |
+struct FontInformation { |
mlamouri (slow - plz ping)
2016/01/26 17:17:11
nit: empty line
Daniel Nishi
2016/01/26 18:36:10
Done.
|
+ FontInformation(std::string path, std::string fullName) |
+ : path(path), fullName(fullName) {} |
+ |
+ std::string path; |
+ std::string fullName; |
+}; |
mlamouri (slow - plz ping)
2016/01/26 17:17:11
DISALLOW_COPY_AND_ASSIGN?
Daniel Nishi
2016/01/26 18:36:10
Done.
|
+typedef std::string FontFamily; |
+typedef std::string FontStyle; |
+typedef std::map<const FontStyle, const FontInformation> FontStyleMap; |
+typedef std::map<const FontFamily, FontStyleMap> FontCacheMap; |
+ |
+extern const char kFontAccessToken[]; |
+ |
+scoped_ptr<FontCacheMap> GetFontCacheMap(); |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_COMMON_FONT_LIST_H_ |