Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(976)

Side by Side Diff: components/font_service/font_service_app.h

Issue 2850743004: Replace ServiceInfo with BindSourceInfo. (Closed)
Patch Set: . Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/filesystem/file_system_app.cc ('k') | components/font_service/font_service_app.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
(...skipping 12 matching lines...) Expand all
23 : public service_manager::Service, 23 : public service_manager::Service,
24 public service_manager::InterfaceFactory<mojom::FontService>, 24 public service_manager::InterfaceFactory<mojom::FontService>,
25 public mojom::FontService { 25 public mojom::FontService {
26 public: 26 public:
27 FontServiceApp(); 27 FontServiceApp();
28 ~FontServiceApp() override; 28 ~FontServiceApp() override;
29 29
30 private: 30 private:
31 // service_manager::Service: 31 // service_manager::Service:
32 void OnStart() override; 32 void OnStart() override;
33 void OnBindInterface(const service_manager::ServiceInfo& source_info, 33 void OnBindInterface(const service_manager::BindSourceInfo& source_info,
34 const std::string& interface_name, 34 const std::string& interface_name,
35 mojo::ScopedMessagePipeHandle interface_pipe) override; 35 mojo::ScopedMessagePipeHandle interface_pipe) override;
36 36
37 // service_manager::InterfaceFactory<mojom::FontService>: 37 // service_manager::InterfaceFactory<mojom::FontService>:
38 void Create(const service_manager::Identity& remote_identity, 38 void Create(const service_manager::Identity& remote_identity,
39 mojo::InterfaceRequest<mojom::FontService> request) override; 39 mojo::InterfaceRequest<mojom::FontService> request) override;
40 40
41 // FontService: 41 // FontService:
42 void MatchFamilyName(const std::string& family_name, 42 void MatchFamilyName(const std::string& family_name,
43 mojom::TypefaceStylePtr requested_style, 43 mojom::TypefaceStylePtr requested_style,
(...skipping 11 matching lines...) Expand all
55 // We don't want to leak paths to our callers; we thus enumerate the paths of 55 // We don't want to leak paths to our callers; we thus enumerate the paths of
56 // fonts. 56 // fonts.
57 std::vector<SkString> paths_; 57 std::vector<SkString> paths_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(FontServiceApp); 59 DISALLOW_COPY_AND_ASSIGN(FontServiceApp);
60 }; 60 };
61 61
62 } // namespace font_service 62 } // namespace font_service
63 63
64 #endif // COMPONENTS_FONT_SERVICE_FONT_SERVICE_APP_H_ 64 #endif // COMPONENTS_FONT_SERVICE_FONT_SERVICE_APP_H_
OLDNEW
« no previous file with comments | « components/filesystem/file_system_app.cc ('k') | components/font_service/font_service_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698