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

Side by Side Diff: services/navigation/navigation.h

Issue 2182643003: Remove shell::Connection* parameter to InterfaceFactory<T>::Create() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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/catalog/catalog.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 15 matching lines...) Expand all
26 public: 26 public:
27 Navigation(); 27 Navigation();
28 ~Navigation() override; 28 ~Navigation() override;
29 29
30 private: 30 private:
31 // content::ConnectionFilter: 31 // content::ConnectionFilter:
32 bool OnConnect(shell::Connection* connection, 32 bool OnConnect(shell::Connection* connection,
33 shell::Connector* connector) override; 33 shell::Connector* connector) override;
34 34
35 // shell::InterfaceFactory<mojom::ViewFactory>: 35 // shell::InterfaceFactory<mojom::ViewFactory>:
36 void Create(shell::Connection* connection, 36 void Create(const shell::Identity& remote_identity,
37 mojom::ViewFactoryRequest request) override; 37 mojom::ViewFactoryRequest request) override;
38 38
39 // mojom::ViewFactory: 39 // mojom::ViewFactory:
40 void CreateView(mojom::ViewClientPtr client, 40 void CreateView(mojom::ViewClientPtr client,
41 mojom::ViewRequest request) override; 41 mojom::ViewRequest 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 shell::Connector* connector_ = nullptr; 47 shell::Connector* connector_ = nullptr;
48 std::string client_user_id_; 48 std::string client_user_id_;
49 49
50 shell::ServiceContextRefFactory ref_factory_; 50 shell::ServiceContextRefFactory ref_factory_;
51 std::set<std::unique_ptr<shell::ServiceContextRef>> refs_; 51 std::set<std::unique_ptr<shell::ServiceContextRef>> refs_;
52 52
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/catalog/catalog.cc ('k') | services/navigation/navigation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698