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

Side by Side Diff: remoting/ios/session/remoting_client_session_delegate.h

Issue 2886233003: [CRD iOS] Fix the leaky RemotingClient (Closed)
Patch Set: WIP Created 3 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
« no previous file with comments | « remoting/ios/session/remoting_client.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 REMOTING_IOS_SESSION_REMOTING_CLIENT_SESSION_DELEGATE_H_ 5 #ifndef REMOTING_IOS_SESSION_REMOTING_CLIENT_SESSION_DELEGATE_H_
6 #define REMOTING_IOS_SESSION_REMOTING_CLIENT_SESSION_DELEGATE_H_ 6 #define REMOTING_IOS_SESSION_REMOTING_CLIENT_SESSION_DELEGATE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "remoting/client/chromoting_session.h" 10 #include "remoting/client/chromoting_session.h"
(...skipping 21 matching lines...) Expand all
32 const std::string& client_id, 32 const std::string& client_id,
33 const std::string& scope) override; 33 const std::string& scope) override;
34 void SetCapabilities(const std::string& capabilities) override; 34 void SetCapabilities(const std::string& capabilities) override;
35 void HandleExtensionMessage(const std::string& type, 35 void HandleExtensionMessage(const std::string& type,
36 const std::string& message) override; 36 const std::string& message) override;
37 37
38 base::WeakPtr<RemotingClientSessonDelegate> GetWeakPtr(); 38 base::WeakPtr<RemotingClientSessonDelegate> GetWeakPtr();
39 39
40 private: 40 private:
41 ChromotingClientRuntime* runtime_; 41 ChromotingClientRuntime* runtime_;
42 id client_; 42 __weak id client_;
43 43
44 base::WeakPtrFactory<RemotingClientSessonDelegate> weak_factory_; 44 base::WeakPtrFactory<RemotingClientSessonDelegate> weak_factory_;
45 45
46 DISALLOW_COPY_AND_ASSIGN(RemotingClientSessonDelegate); 46 DISALLOW_COPY_AND_ASSIGN(RemotingClientSessonDelegate);
47 }; 47 };
48 48
49 } // namespace remoting 49 } // namespace remoting
50 50
51 #endif // REMOTING_IOS_SESSION_REMOTING_CLIENT_SESSION_DELEGATE_H_ 51 #endif // REMOTING_IOS_SESSION_REMOTING_CLIENT_SESSION_DELEGATE_H_
OLDNEW
« no previous file with comments | « remoting/ios/session/remoting_client.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698