| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_FONT_SERVICE_FONT_SERVICE_APP_H_ | 5 #ifndef COMPONENTS_FONT_SERVICE_FONT_SERVICE_APP_H_ |
| 6 #define COMPONENTS_FONT_SERVICE_FONT_SERVICE_APP_H_ | 6 #define COMPONENTS_FONT_SERVICE_FONT_SERVICE_APP_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "components/font_service/public/interfaces/font_service.mojom.h" | 12 #include "components/font_service/public/interfaces/font_service.mojom.h" |
| 13 #include "mojo/public/cpp/bindings/binding_set.h" | 13 #include "mojo/public/cpp/bindings/binding_set.h" |
| 14 #include "mojo/services/tracing/public/cpp/tracing_impl.h" | 14 #include "mojo/services/tracing/public/cpp/tracing_impl.h" |
| 15 #include "mojo/shell/public/cpp/interface_factory.h" | 15 #include "services/shell/public/cpp/interface_factory.h" |
| 16 #include "mojo/shell/public/cpp/shell_client.h" | 16 #include "services/shell/public/cpp/shell_client.h" |
| 17 #include "skia/ext/skia_utils_base.h" | 17 #include "skia/ext/skia_utils_base.h" |
| 18 | 18 |
| 19 namespace font_service { | 19 namespace font_service { |
| 20 | 20 |
| 21 class FontServiceApp : public mojo::ShellClient, | 21 class FontServiceApp : public mojo::ShellClient, |
| 22 public mojo::InterfaceFactory<FontService>, | 22 public mojo::InterfaceFactory<FontService>, |
| 23 public FontService { | 23 public FontService { |
| 24 public: | 24 public: |
| 25 FontServiceApp(); | 25 FontServiceApp(); |
| 26 ~FontServiceApp() override; | 26 ~FontServiceApp() override; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 51 // We don't want to leak paths to our callers; we thus enumerate the paths of | 51 // We don't want to leak paths to our callers; we thus enumerate the paths of |
| 52 // fonts. | 52 // fonts. |
| 53 std::vector<SkString> paths_; | 53 std::vector<SkString> paths_; |
| 54 | 54 |
| 55 DISALLOW_COPY_AND_ASSIGN(FontServiceApp); | 55 DISALLOW_COPY_AND_ASSIGN(FontServiceApp); |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 } // namespace font_service | 58 } // namespace font_service |
| 59 | 59 |
| 60 #endif // COMPONENTS_FONT_SERVICE_FONT_SERVICE_APP_H_ | 60 #endif // COMPONENTS_FONT_SERVICE_FONT_SERVICE_APP_H_ |
| OLD | NEW |