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

Unified Diff: remoting/client/ios/session/remoting_client_session_delegate.mm

Issue 2871993003: Moving the iOS directory to be remoting top level. (Closed)
Patch Set: //remoting/ios was the old landing target for the internal iOS application. Fix. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/client/ios/session/remoting_client_session_delegate.h ('k') | remoting/ios/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/ios/session/remoting_client_session_delegate.mm
diff --git a/remoting/client/ios/session/remoting_client_session_delegate.mm b/remoting/client/ios/session/remoting_client_session_delegate.mm
deleted file mode 100644
index ffcf132946d06ead6065d418d53f3239b7e08e3a..0000000000000000000000000000000000000000
--- a/remoting/client/ios/session/remoting_client_session_delegate.mm
+++ /dev/null
@@ -1,81 +0,0 @@
-// 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.
-
-#if !defined(__has_feature) || !__has_feature(objc_arc)
-#error "This file requires ARC support."
-#endif
-
-#include "remoting/client/ios/session/remoting_client_session_delegate.h"
-
-#import "remoting/client/ios/session/remoting_client.h"
-
-#include "base/strings/sys_string_conversions.h"
-#include "remoting/client/chromoting_client_runtime.h"
-
-using base::SysUTF8ToNSString;
-
-namespace remoting {
-
-RemotingClientSessonDelegate::RemotingClientSessonDelegate(
- RemotingClient* client)
- : client_(client), weak_factory_(this) {
- runtime_ = ChromotingClientRuntime::GetInstance();
-}
-
-RemotingClientSessonDelegate::~RemotingClientSessonDelegate() {
- client_ = nil;
-}
-
-void RemotingClientSessonDelegate::OnConnectionState(
- protocol::ConnectionToHost::State state,
- protocol::ErrorCode error) {
- DCHECK(runtime_->ui_task_runner()->BelongsToCurrentThread());
-
- [client_ onConnectionState:state error:error];
-}
-
-void RemotingClientSessonDelegate::CommitPairingCredentials(
- const std::string& host,
- const std::string& id,
- const std::string& secret) {
- DCHECK(runtime_->ui_task_runner()->BelongsToCurrentThread());
-
- [client_ commitPairingCredentialsForHost:SysUTF8ToNSString(host)
- id:SysUTF8ToNSString(id)
- secret:SysUTF8ToNSString(secret)];
-}
-
-void RemotingClientSessonDelegate::FetchThirdPartyToken(
- const std::string& token_url,
- const std::string& client_id,
- const std::string& scope) {
- DCHECK(runtime_->ui_task_runner()->BelongsToCurrentThread());
-
- [client_ fetchThirdPartyTokenForUrl:SysUTF8ToNSString(token_url)
- clientId:SysUTF8ToNSString(client_id)
- scope:SysUTF8ToNSString(scope)];
-}
-
-void RemotingClientSessonDelegate::SetCapabilities(
- const std::string& capabilities) {
- DCHECK(runtime_->ui_task_runner()->BelongsToCurrentThread());
-
- [client_ setCapabilities:SysUTF8ToNSString(capabilities)];
-}
-
-void RemotingClientSessonDelegate::HandleExtensionMessage(
- const std::string& type,
- const std::string& message) {
- DCHECK(runtime_->ui_task_runner()->BelongsToCurrentThread());
-
- [client_ handleExtensionMessageOfType:SysUTF8ToNSString(type)
- message:SysUTF8ToNSString(message)];
-}
-
-base::WeakPtr<RemotingClientSessonDelegate>
-RemotingClientSessonDelegate::GetWeakPtr() {
- return weak_factory_.GetWeakPtr();
-}
-
-} // namespace remoting
« no previous file with comments | « remoting/client/ios/session/remoting_client_session_delegate.h ('k') | remoting/ios/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698