| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef BLIMP_ENGINE_MOJO_FONT_FETCHER_MOJO_IMPL_H_ | 5 #ifndef BLIMP_ENGINE_MOJO_FONT_FETCHER_MOJO_IMPL_H_ |
| 6 #define BLIMP_ENGINE_MOJO_FONT_FETCHER_MOJO_IMPL_H_ | 6 #define BLIMP_ENGINE_MOJO_FONT_FETCHER_MOJO_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "blimp/engine/mojo/font_fetcher.mojom.h" | 10 #include "blimp/engine/mojo/font_fetcher.mojom.h" |
| 11 #include "mojo/public/cpp/bindings/binding_set.h" | 11 #include "mojo/public/cpp/bindings/binding_set.h" |
| 12 | 12 |
| 13 class SkStream; | |
| 14 | |
| 15 namespace blimp { | 13 namespace blimp { |
| 16 namespace engine { | 14 namespace engine { |
| 17 | 15 |
| 18 class FontDataFetcher; | 16 class FontDataFetcher; |
| 19 | 17 |
| 20 // Service for processing FontFetcher requests from the renderer. | 18 // Service for processing FontFetcher requests from the renderer. |
| 21 // Caller is responsible for executing all methods on the IO thread. | 19 // Caller is responsible for executing all methods on the IO thread. |
| 22 class FontFetcherMojoImpl : public mojom::FontFetcher { | 20 class FontFetcherMojoImpl : public mojom::FontFetcher { |
| 23 public: | 21 public: |
| 24 // |font_data_fetcher|: The FontDataFetcher object which will get the font | 22 // |font_data_fetcher|: The FontDataFetcher object which will get the font |
| (...skipping 16 matching lines...) Expand all Loading... |
| 41 // service. | 39 // service. |
| 42 FontDataFetcher* font_data_fetcher_; | 40 FontDataFetcher* font_data_fetcher_; |
| 43 | 41 |
| 44 DISALLOW_COPY_AND_ASSIGN(FontFetcherMojoImpl); | 42 DISALLOW_COPY_AND_ASSIGN(FontFetcherMojoImpl); |
| 45 }; | 43 }; |
| 46 | 44 |
| 47 } // namespace engine | 45 } // namespace engine |
| 48 } // namespace blimp | 46 } // namespace blimp |
| 49 | 47 |
| 50 #endif // BLIMP_ENGINE_MOJO_FONT_FETCHER_MOJO_IMPL_H_ | 48 #endif // BLIMP_ENGINE_MOJO_FONT_FETCHER_MOJO_IMPL_H_ |
| OLD | NEW |