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

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

Issue 1350023003: Add a Mojo EDK for Chrome that uses one OS pipe per message pipe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more cleanup Created 5 years, 2 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 THIRD_PARTY_MOJO_SRC_MOJO_EDK_EMBEDDER_PROCESS_DELEGATE_H_ 5 #ifndef MOJO_EDK_EMBEDDER_PROCESS_DELEGATE_H_
6 #define THIRD_PARTY_MOJO_SRC_MOJO_EDK_EMBEDDER_PROCESS_DELEGATE_H_ 6 #define MOJO_EDK_EMBEDDER_PROCESS_DELEGATE_H_
7 7
8 #include "mojo/edk/system/system_impl_export.h"
8 #include "mojo/public/cpp/system/macros.h" 9 #include "mojo/public/cpp/system/macros.h"
9 #include "third_party/mojo/src/mojo/edk/embedder/process_type.h"
10 #include "third_party/mojo/src/mojo/edk/system/system_impl_export.h"
11 10
12 namespace mojo { 11 namespace mojo {
13 namespace embedder { 12 namespace edk {
14 13
15 // An interface for process delegates. 14 // An interface for process delegates.
16 class MOJO_SYSTEM_IMPL_EXPORT ProcessDelegate { 15 class MOJO_SYSTEM_IMPL_EXPORT ProcessDelegate {
17 public: 16 public:
18 virtual ProcessType GetType() const;
19
20 // Called when |ShutdownIPCSupport()| has "completed". Note that this is NOT 17 // Called when |ShutdownIPCSupport()| has "completed". Note that this is NOT
21 // called if |ShutdownIPCSupportOnIOThread()| is used instead. 18 // called if |ShutdownIPCSupportOnIOThread()| is used instead.
22 virtual void OnShutdownComplete() = 0; 19 virtual void OnShutdownComplete() = 0;
23 20
24 protected: 21 protected:
25 ProcessDelegate() {} 22 ProcessDelegate() {}
26 virtual ~ProcessDelegate() {} 23 virtual ~ProcessDelegate() {}
27 24
28 private: 25 private:
29 MOJO_DISALLOW_COPY_AND_ASSIGN(ProcessDelegate); 26 MOJO_DISALLOW_COPY_AND_ASSIGN(ProcessDelegate);
30 }; 27 };
31 28
32 inline ProcessType ProcessDelegate::GetType() const { 29 } // namespace edk
33 return ProcessType::NONE;
34 }
35
36 } // namespace embedder
37 } // namespace mojo 30 } // namespace mojo
38 31
39 #endif // THIRD_PARTY_MOJO_SRC_MOJO_EDK_EMBEDDER_PROCESS_DELEGATE_H_ 32 #endif // MOJO_EDK_EMBEDDER_PROCESS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698