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

Side by Side Diff: mojo/edk/embedder/master_process_delegate.h

Issue 1154903003: "typedef Foo Bar" -> "using Bar = Foo" in //mojo/edk/.... (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 MOJO_EDK_EMBEDDER_MASTER_PROCESS_DELEGATE_H_ 5 #ifndef MOJO_EDK_EMBEDDER_MASTER_PROCESS_DELEGATE_H_
6 #define MOJO_EDK_EMBEDDER_MASTER_PROCESS_DELEGATE_H_ 6 #define MOJO_EDK_EMBEDDER_MASTER_PROCESS_DELEGATE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "mojo/edk/embedder/process_delegate.h" 10 #include "mojo/edk/embedder/process_delegate.h"
11 #include "mojo/edk/system/system_impl_export.h" 11 #include "mojo/edk/system/system_impl_export.h"
12 12
13 namespace mojo { 13 namespace mojo {
14 namespace embedder { 14 namespace embedder {
15 15
16 typedef void* SlaveInfo; 16 using SlaveInfo = void*;
17 17
18 // An interface for the master process delegate (which lives in the master 18 // An interface for the master process delegate (which lives in the master
19 // process). 19 // process).
20 class MOJO_SYSTEM_IMPL_EXPORT MasterProcessDelegate : public ProcessDelegate { 20 class MOJO_SYSTEM_IMPL_EXPORT MasterProcessDelegate : public ProcessDelegate {
21 public: 21 public:
22 ProcessType GetType() const override; 22 ProcessType GetType() const override;
23 23
24 // Called when contact with the slave process specified by |slave_info| has 24 // Called when contact with the slave process specified by |slave_info| has
25 // been lost. 25 // been lost.
26 // TODO(vtl): Obviously, there needs to be a suitable embedder API for 26 // TODO(vtl): Obviously, there needs to be a suitable embedder API for
27 // connecting to a process. What will it be? Mention that here once it exists. 27 // connecting to a process. What will it be? Mention that here once it exists.
28 virtual void OnSlaveDisconnect(SlaveInfo slave_info) = 0; 28 virtual void OnSlaveDisconnect(SlaveInfo slave_info) = 0;
29 29
30 protected: 30 protected:
31 MasterProcessDelegate() {} 31 MasterProcessDelegate() {}
32 ~MasterProcessDelegate() override {} 32 ~MasterProcessDelegate() override {}
33 33
34 private: 34 private:
35 DISALLOW_COPY_AND_ASSIGN(MasterProcessDelegate); 35 DISALLOW_COPY_AND_ASSIGN(MasterProcessDelegate);
36 }; 36 };
37 37
38 inline ProcessType MasterProcessDelegate::GetType() const { 38 inline ProcessType MasterProcessDelegate::GetType() const {
39 return ProcessType::MASTER; 39 return ProcessType::MASTER;
40 } 40 }
41 41
42 } // namespace embedder 42 } // namespace embedder
43 } // namespace mojo 43 } // namespace mojo
44 44
45 #endif // MOJO_EDK_EMBEDDER_MASTER_PROCESS_DELEGATE_H_ 45 #endif // MOJO_EDK_EMBEDDER_MASTER_PROCESS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698