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

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

Issue 2901613002: Remove navigation_service_unittests, along with the service itself. (Closed)
Patch Set: Fix isolate files? 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/navigation/manifest.json ('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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef SERVICES_NAVIGATION_NAVIGATION_H_
6 #define SERVICES_NAVIGATION_NAVIGATION_H_
7
8 #include "base/memory/ref_counted.h"
9 #include "base/sequenced_task_runner.h"
10 #include "content/public/common/connection_filter.h"
11 #include "mojo/public/cpp/bindings/binding_set.h"
12 #include "services/navigation/public/interfaces/view.mojom.h"
13 #include "services/service_manager/public/cpp/binder_registry.h"
14 #include "services/service_manager/public/cpp/service.h"
15 #include "services/service_manager/public/cpp/service_context_ref.h"
16
17 namespace navigation {
18
19 std::unique_ptr<service_manager::Service> CreateNavigationService();
20
21 class Navigation : public service_manager::Service, public mojom::ViewFactory {
22 public:
23 Navigation();
24 ~Navigation() override;
25
26 private:
27 // service_manager::Service:
28 void OnBindInterface(const service_manager::BindSourceInfo& source_info,
29 const std::string& interface_name,
30 mojo::ScopedMessagePipeHandle interface_pipe) override;
31
32 // mojom::ViewFactory:
33 void CreateView(mojom::ViewClientPtr client,
34 mojom::ViewRequest request) override;
35
36 void BindViewFactoryRequest(
37 const service_manager::BindSourceInfo& source_info,
38 mojom::ViewFactoryRequest request);
39
40 void ViewFactoryLost();
41
42 scoped_refptr<base::SequencedTaskRunner> view_task_runner_;
43
44 std::string client_user_id_;
45
46 service_manager::ServiceContextRefFactory ref_factory_;
47 std::set<std::unique_ptr<service_manager::ServiceContextRef>> refs_;
48
49 service_manager::BinderRegistry registry_;
50 mojo::BindingSet<mojom::ViewFactory> bindings_;
51
52 DISALLOW_COPY_AND_ASSIGN(Navigation);
53 };
54
55 } // navigation
56
57 #endif // SERVICES_NAVIGATION_NAVIGATION_H_
OLDNEW
« no previous file with comments | « services/navigation/manifest.json ('k') | services/navigation/navigation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698