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

Side by Side Diff: mash/screenlock/screenlock.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 | « mash/quick_launch/quick_launch.cc ('k') | mash/screenlock/screenlock.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 MASH_SCREENLOCK_SCREENLOCK_H_ 5 #ifndef MASH_SCREENLOCK_SCREENLOCK_H_
6 #define MASH_SCREENLOCK_SCREENLOCK_H_ 6 #define MASH_SCREENLOCK_SCREENLOCK_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 12 matching lines...) Expand all
23 namespace screenlock { 23 namespace screenlock {
24 24
25 class Screenlock : public service_manager::Service, 25 class Screenlock : public service_manager::Service,
26 public session::mojom::ScreenlockStateListener { 26 public session::mojom::ScreenlockStateListener {
27 public: 27 public:
28 Screenlock(); 28 Screenlock();
29 ~Screenlock() override; 29 ~Screenlock() override;
30 30
31 private: 31 private:
32 // service_manager::Service: 32 // service_manager::Service:
33 void OnStart(service_manager::ServiceContext* context) override; 33 void OnStart() override;
34 bool OnConnect(const service_manager::ServiceInfo& remote_info, 34 bool OnConnect(const service_manager::ServiceInfo& remote_info,
35 service_manager::InterfaceRegistry* registry) override; 35 service_manager::InterfaceRegistry* registry) override;
36 36
37 // session::mojom::ScreenlockStateListener: 37 // session::mojom::ScreenlockStateListener:
38 void ScreenlockStateChanged(bool locked) override; 38 void ScreenlockStateChanged(bool locked) override;
39 39
40 tracing::Provider tracing_; 40 tracing::Provider tracing_;
41 std::unique_ptr<views::AuraInit> aura_init_; 41 std::unique_ptr<views::AuraInit> aura_init_;
42 std::unique_ptr<views::WindowManagerConnection> window_manager_connection_; 42 std::unique_ptr<views::WindowManagerConnection> window_manager_connection_;
43 mojo::BindingSet<session::mojom::ScreenlockStateListener> bindings_; 43 mojo::BindingSet<session::mojom::ScreenlockStateListener> bindings_;
44 44
45 DISALLOW_COPY_AND_ASSIGN(Screenlock); 45 DISALLOW_COPY_AND_ASSIGN(Screenlock);
46 }; 46 };
47 47
48 } // namespace screenlock 48 } // namespace screenlock
49 } // namespace mash 49 } // namespace mash
50 50
51 #endif // MASH_SCREENLOCK_SCREENLOCK_H_ 51 #endif // MASH_SCREENLOCK_SCREENLOCK_H_
OLDNEW
« no previous file with comments | « mash/quick_launch/quick_launch.cc ('k') | mash/screenlock/screenlock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698