Chromium Code Reviews| Index: content/renderer/hyphenator/hyphenator.h |
| diff --git a/content/renderer/hyphenator/hyphenator.h b/content/renderer/hyphenator/hyphenator.h |
| index 517e49f7358cf783307092ae84028492087f8f05..b0e50171fc7c9bdd22fe4d46949ccefb88d8ec5b 100644 |
| --- a/content/renderer/hyphenator/hyphenator.h |
| +++ b/content/renderer/hyphenator/hyphenator.h |
| @@ -7,17 +7,12 @@ |
| #include <vector> |
| -#include "base/memory/scoped_ptr.h" |
| #include "base/platform_file.h" |
| #include "base/string16.h" |
| #include "content/common/content_export.h" |
| #include "content/public/renderer/render_process_observer.h" |
| #include "ipc/ipc_platform_file.h" |
| -namespace file_util { |
| -class MemoryMappedFile; |
| -} |
| - |
| typedef struct _HyphenDict HyphenDict; |
| namespace content { |
| @@ -58,12 +53,9 @@ class CONTENT_EXPORT Hyphenator : public RenderProcessObserver { |
| // The dictionary used by the hyphen library. |
| HyphenDict* dictionary_; |
| - // The dictionary file and its memory-mapping object. (Our copy of the hyphen |
| - // library uses a memory-mapped file opened by a browser so renderers can use |
| - // it without opening the file.) |
| string16 locale_; |
| - base::PlatformFile rule_file_; |
| - scoped_ptr<file_util::MemoryMappedFile> rule_map_; |
| + |
| + FILE* dictionary_file_; |
|
darin (slow to review)
2013/02/15 18:16:40
nit: You could use ScopedStdioHandle here.
Paweł Hajdan Jr.
2013/02/19 13:00:12
Done.
|
| // A cached result. WebKit often calls ComputeLastHyphenLocation with the same |
| // word multiple times to find the best hyphenation point when it finds a line |