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

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

Issue 2487573002: Service Manager: Remove ServiceContext* arg from Service::OnStart() (Closed)
Patch Set: rebase Created 4 years, 1 month 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 10 matching lines...) Expand all
21 class FontServiceApp 21 class FontServiceApp
22 : public service_manager::Service, 22 : public service_manager::Service,
23 public service_manager::InterfaceFactory<mojom::FontService>, 23 public service_manager::InterfaceFactory<mojom::FontService>,
24 public mojom::FontService { 24 public mojom::FontService {
25 public: 25 public:
26 FontServiceApp(); 26 FontServiceApp();
27 ~FontServiceApp() override; 27 ~FontServiceApp() override;
28 28
29 private: 29 private:
30 // service_manager::Service: 30 // service_manager::Service:
31 void OnStart(service_manager::ServiceContext* context) override; 31 void OnStart() override;
32 bool OnConnect(const service_manager::ServiceInfo& remote_info, 32 bool OnConnect(const service_manager::ServiceInfo& remote_info,
33 service_manager::InterfaceRegistry* registry) override; 33 service_manager::InterfaceRegistry* registry) override;
34 34
35 // service_manager::InterfaceFactory<mojom::FontService>: 35 // service_manager::InterfaceFactory<mojom::FontService>:
36 void Create(const service_manager::Identity& remote_identity, 36 void Create(const service_manager::Identity& remote_identity,
37 mojo::InterfaceRequest<mojom::FontService> request) override; 37 mojo::InterfaceRequest<mojom::FontService> request) override;
38 38
39 // FontService: 39 // FontService:
40 void MatchFamilyName(const std::string& family_name, 40 void MatchFamilyName(const std::string& family_name,
41 mojom::TypefaceStylePtr requested_style, 41 mojom::TypefaceStylePtr requested_style,
(...skipping 10 matching lines...) Expand all
52 // We don't want to leak paths to our callers; we thus enumerate the paths of 52 // We don't want to leak paths to our callers; we thus enumerate the paths of
53 // fonts. 53 // fonts.
54 std::vector<SkString> paths_; 54 std::vector<SkString> paths_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(FontServiceApp); 56 DISALLOW_COPY_AND_ASSIGN(FontServiceApp);
57 }; 57 };
58 58
59 } // namespace font_service 59 } // namespace font_service
60 60
61 #endif // COMPONENTS_FONT_SERVICE_FONT_SERVICE_APP_H_ 61 #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