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

Side by Side Diff: mash/webtest/webtest.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 | « mash/webtest/public/interfaces/constants.mojom ('k') | mash/webtest/webtest.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 MASH_WEBTEST_WEBTEST_H_
6 #define MASH_WEBTEST_WEBTEST_H_
7
8 #include <memory>
9
10 #include "base/macros.h"
11 #include "mash/public/interfaces/launchable.mojom.h"
12 #include "mojo/public/cpp/bindings/binding_set.h"
13 #include "services/service_manager/public/cpp/binder_registry.h"
14 #include "services/service_manager/public/cpp/service.h"
15
16 namespace views {
17 class AuraInit;
18 class Widget;
19 }
20
21 namespace mash {
22 namespace webtest {
23
24 class Webtest : public service_manager::Service, public mojom::Launchable {
25 public:
26 Webtest();
27 ~Webtest() override;
28
29 void AddWindow(views::Widget* window);
30 void RemoveWindow(views::Widget* window);
31
32 private:
33 // service_manager::Service:
34 void OnStart() override;
35 void OnBindInterface(const service_manager::BindSourceInfo& source_info,
36 const std::string& interface_name,
37 mojo::ScopedMessagePipeHandle interface_pipe) override;
38
39 // mojom::Launchable:
40 void Launch(uint32_t what, mojom::LaunchMode how) override;
41
42 void Create(const service_manager::BindSourceInfo& source_info,
43 mojom::LaunchableRequest request);
44
45 mojo::BindingSet<mojom::Launchable> bindings_;
46 std::vector<views::Widget*> windows_;
47
48 service_manager::BinderRegistry registry_;
49
50 std::unique_ptr<views::AuraInit> aura_init_;
51
52 DISALLOW_COPY_AND_ASSIGN(Webtest);
53 };
54
55 } // namespace webtest
56 } // namespace mash
57
58 #endif // MASH_WEBTEST_WEBTEST_H_
OLDNEW
« no previous file with comments | « mash/webtest/public/interfaces/constants.mojom ('k') | mash/webtest/webtest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698