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

Side by Side Diff: services/navigation/navigation.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 | « services/image_decoder/image_decoder_service.cc ('k') | services/navigation/navigation.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 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 SERVICES_NAVIGATION_NAVIGATION_H_ 5 #ifndef SERVICES_NAVIGATION_NAVIGATION_H_
6 #define SERVICES_NAVIGATION_NAVIGATION_H_ 6 #define SERVICES_NAVIGATION_NAVIGATION_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/sequenced_task_runner.h" 10 #include "base/sequenced_task_runner.h"
(...skipping 12 matching lines...) Expand all
23 23
24 std::unique_ptr<service_manager::Service> CreateNavigationService(); 24 std::unique_ptr<service_manager::Service> CreateNavigationService();
25 25
26 class Navigation : public service_manager::Service, public mojom::ViewFactory { 26 class Navigation : public service_manager::Service, public mojom::ViewFactory {
27 public: 27 public:
28 Navigation(); 28 Navigation();
29 ~Navigation() override; 29 ~Navigation() override;
30 30
31 private: 31 private:
32 // service_manager::Service: 32 // service_manager::Service:
33 void OnStart(service_manager::ServiceContext* context) override;
34 bool OnConnect(const service_manager::ServiceInfo& remote_info, 33 bool OnConnect(const service_manager::ServiceInfo& remote_info,
35 service_manager::InterfaceRegistry* registry) override; 34 service_manager::InterfaceRegistry* registry) override;
36 35
37 // mojom::ViewFactory: 36 // mojom::ViewFactory:
38 void CreateView(mojom::ViewClientPtr client, 37 void CreateView(mojom::ViewClientPtr client,
39 mojom::ViewRequest request) override; 38 mojom::ViewRequest request) override;
40 39
41 void CreateViewFactory(mojom::ViewFactoryRequest request); 40 void CreateViewFactory(mojom::ViewFactoryRequest request);
42 void ViewFactoryLost(); 41 void ViewFactoryLost();
43 42
44 scoped_refptr<base::SequencedTaskRunner> view_task_runner_; 43 scoped_refptr<base::SequencedTaskRunner> view_task_runner_;
45 44
46 service_manager::ServiceContext* context_;
47
48 std::string client_user_id_; 45 std::string client_user_id_;
49 46
50 service_manager::ServiceContextRefFactory ref_factory_; 47 service_manager::ServiceContextRefFactory ref_factory_;
51 std::set<std::unique_ptr<service_manager::ServiceContextRef>> refs_; 48 std::set<std::unique_ptr<service_manager::ServiceContextRef>> refs_;
52 49
53 mojo::BindingSet<mojom::ViewFactory> bindings_; 50 mojo::BindingSet<mojom::ViewFactory> bindings_;
54 51
55 base::WeakPtrFactory<Navigation> weak_factory_; 52 base::WeakPtrFactory<Navigation> weak_factory_;
56 53
57 DISALLOW_COPY_AND_ASSIGN(Navigation); 54 DISALLOW_COPY_AND_ASSIGN(Navigation);
58 }; 55 };
59 56
60 } // navigation 57 } // navigation
61 58
62 #endif // SERVICES_NAVIGATION_NAVIGATION_H_ 59 #endif // SERVICES_NAVIGATION_NAVIGATION_H_
OLDNEW
« no previous file with comments | « services/image_decoder/image_decoder_service.cc ('k') | services/navigation/navigation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698