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

Unified Diff: third_party/mojo/src/mojo/edk/system/connection_manager.h

Issue 1019173002: Update mojo sdk to rev 7214b7ec7d27563b2666afad86cf1c5895c56c18 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Keep permission service alive if embedder drops requests Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/mojo/src/mojo/edk/system/connection_manager.h
diff --git a/third_party/mojo/src/mojo/edk/system/connection_manager.h b/third_party/mojo/src/mojo/edk/system/connection_manager.h
index 921d19c5561f3ffec9600939904761ba579fce6f..8820dd584ff75037c09b2e83a5f5363ecab82edc 100644
--- a/third_party/mojo/src/mojo/edk/system/connection_manager.h
+++ b/third_party/mojo/src/mojo/edk/system/connection_manager.h
@@ -12,6 +12,7 @@
namespace mojo {
namespace embedder {
+class PlatformSupport;
class ScopedPlatformHandle;
} // namespace embedder
@@ -67,6 +68,8 @@ class MOJO_SYSTEM_IMPL_EXPORT ConnectionManager {
public:
virtual ~ConnectionManager() {}
+ ConnectionIdentifier GenerateConnectionIdentifier();
+
// Shuts down this connection manager. No other methods may be called after
// this is (or while it is being) called.
virtual void Shutdown() = 0;
@@ -99,9 +102,14 @@ class MOJO_SYSTEM_IMPL_EXPORT ConnectionManager {
embedder::ScopedPlatformHandle* platform_handle) = 0;
protected:
- ConnectionManager() {}
+ // |platform_support| must be valid and remain alive until after |Shutdown()|
+ // has completed.
+ explicit ConnectionManager(embedder::PlatformSupport* platform_support)
+ : platform_support_(platform_support) {}
private:
+ embedder::PlatformSupport* const platform_support_;
+
DISALLOW_COPY_AND_ASSIGN(ConnectionManager);
};
« no previous file with comments | « third_party/mojo/src/mojo/edk/system/channel_endpoint.cc ('k') | third_party/mojo/src/mojo/edk/system/connection_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698