Chromium Code Reviews| 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..ca7bde7bdeed7cb85fcac8f1537c8ee06ece9113 |
| --- /dev/null |
| +++ b/content/browser/font_access/font_getter.h |
| @@ -0,0 +1,36 @@ |
| +// Copyright (c) 2016 The Chromium Authors. All rights reserved. |
|
nasko
2016/02/12 22:05:18
style: No "(c)".
Daniel Nishi
2016/02/12 22:49:40
Done.
|
| +// 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/containers/hash_tables.h" |
| +#include "base/macros.h" |
| +#include "base/memory/scoped_ptr.h" |
| + |
| +namespace content { |
| + |
| +struct FontInformation { |
| + FontInformation(std::string path, std::string full_name) |
| + : path(path), full_name(full_name) {} |
| + |
| + std::string path; |
| + std::string full_name; |
| +}; |
| + |
| +typedef std::string FontFamily; |
| +typedef std::string FontStyle; |
| +typedef base::hash_map<FontStyle, const FontInformation> FontStyleMap; |
| +typedef base::hash_map<FontFamily, FontStyleMap> FontCacheMap; |
| + |
| +extern const char kFontAccessToken[]; |
| + |
| +scoped_ptr<FontCacheMap> GetFontCacheMap(); |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_COMMON_FONT_LIST_H_ |