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

Unified Diff: remoting/client/ios/facade/ios_client_runtime_delegate.h

Issue 2829673003: Adding a Client Runtime Delegate for iOS (Closed)
Patch Set: Moving removing_service change to gl related cl. Created 3 years, 8 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: remoting/client/ios/facade/ios_client_runtime_delegate.h
diff --git a/remoting/client/ios/facade/ios_client_runtime_delegate.h b/remoting/client/ios/facade/ios_client_runtime_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..032f3b7f43454eb24c52b041681d67f9a95b3dac
--- /dev/null
+++ b/remoting/client/ios/facade/ios_client_runtime_delegate.h
@@ -0,0 +1,36 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_CLIENT_IOS_FACADE_IOS_CLIENT_RUNTIME_DELEGATE_H_
+#define REMOTING_CLIENT_IOS_FACADE_IOS_CLIENT_RUNTIME_DELEGATE_H_
+
+#include "base/macros.h"
+#include "base/memory/weak_ptr.h"
+#include "remoting/client/chromoting_client_runtime.h"
+
+namespace remoting {
+
+class IosClientRuntimeDelegate : public ChromotingClientRuntime::Delegate {
+ public:
+ IosClientRuntimeDelegate();
+ ~IosClientRuntimeDelegate() override;
+
+ // remoting::ChromotingClientRuntime::Delegate overrides.
+ void RuntimeWillShutdown() override;
+ void RuntimeDidShutdown() override;
+ void RequestAuthTokenForLogger() override;
+
+ base::WeakPtr<IosClientRuntimeDelegate> GetWeakPtr();
+
+ private:
+ ChromotingClientRuntime* runtime_;
+
+ base::WeakPtrFactory<IosClientRuntimeDelegate> weak_factory_;
+
+ DISALLOW_COPY_AND_ASSIGN(IosClientRuntimeDelegate);
+};
+
+} // namespace remoting
+
+#endif // REMOTING_CLIENT_IOS_FACADE_CLIENT_RUNTIME_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698