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

Side by Side Diff: services/navigation/navigation.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 | « services/identity/identity_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/sequenced_task_runner.h" 9 #include "base/sequenced_task_runner.h"
10 #include "content/public/common/connection_filter.h" 10 #include "content/public/common/connection_filter.h"
(...skipping 11 matching lines...) Expand all
22 class Navigation 22 class Navigation
23 : public service_manager::Service, 23 : public service_manager::Service,
24 public mojom::ViewFactory, 24 public mojom::ViewFactory,
25 public service_manager::InterfaceFactory<mojom::ViewFactory> { 25 public service_manager::InterfaceFactory<mojom::ViewFactory> {
26 public: 26 public:
27 Navigation(); 27 Navigation();
28 ~Navigation() override; 28 ~Navigation() override;
29 29
30 private: 30 private:
31 // service_manager::Service: 31 // service_manager::Service:
32 void OnBindInterface(const service_manager::ServiceInfo& source_info, 32 void OnBindInterface(const service_manager::BindSourceInfo& source_info,
33 const std::string& interface_name, 33 const std::string& interface_name,
34 mojo::ScopedMessagePipeHandle interface_pipe) override; 34 mojo::ScopedMessagePipeHandle interface_pipe) override;
35 35
36 // mojom::ViewFactory: 36 // mojom::ViewFactory:
37 void CreateView(mojom::ViewClientPtr client, 37 void CreateView(mojom::ViewClientPtr client,
38 mojom::ViewRequest request) override; 38 mojom::ViewRequest request) override;
39 39
40 void Create(const service_manager::Identity& remote_identity, 40 void Create(const service_manager::Identity& remote_identity,
41 mojom::ViewFactoryRequest request) override; 41 mojom::ViewFactoryRequest request) override;
42 42
43 void ViewFactoryLost(); 43 void ViewFactoryLost();
44 44
45 scoped_refptr<base::SequencedTaskRunner> view_task_runner_; 45 scoped_refptr<base::SequencedTaskRunner> view_task_runner_;
46 46
47 std::string client_user_id_; 47 std::string client_user_id_;
48 48
49 service_manager::ServiceContextRefFactory ref_factory_; 49 service_manager::ServiceContextRefFactory ref_factory_;
50 std::set<std::unique_ptr<service_manager::ServiceContextRef>> refs_; 50 std::set<std::unique_ptr<service_manager::ServiceContextRef>> refs_;
51 51
52 service_manager::BinderRegistry registry_; 52 service_manager::BinderRegistry registry_;
53 mojo::BindingSet<mojom::ViewFactory> bindings_; 53 mojo::BindingSet<mojom::ViewFactory> bindings_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(Navigation); 55 DISALLOW_COPY_AND_ASSIGN(Navigation);
56 }; 56 };
57 57
58 } // navigation 58 } // navigation
59 59
60 #endif // SERVICES_NAVIGATION_NAVIGATION_H_ 60 #endif // SERVICES_NAVIGATION_NAVIGATION_H_
OLDNEW
« no previous file with comments | « services/identity/identity_service.cc ('k') | services/navigation/navigation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698