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

Unified Diff: remoting/client/ios/app_runtime.cc

Issue 2802363002: Update build files and app delegate for new changes to app support files. (Closed)
Patch Set: 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
« no previous file with comments | « remoting/client/ios/app_runtime.h ('k') | remoting/client/ios/bridge/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/ios/app_runtime.cc
diff --git a/remoting/client/ios/app_runtime.cc b/remoting/client/ios/app_runtime.cc
deleted file mode 100644
index ce576d7ef4a0020d9b06b649a2f68989885f013c..0000000000000000000000000000000000000000
--- a/remoting/client/ios/app_runtime.cc
+++ /dev/null
@@ -1,55 +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.
-
-#include "remoting/client/ios/app_runtime.h"
-
-#include "base/bind.h"
-#include "base/bind_helpers.h"
-#include "base/logging.h"
-#include "base/memory/ptr_util.h"
-#include "base/synchronization/waitable_event.h"
-#include "base/task_scheduler/task_scheduler.h"
-#include "jingle/glue/thread_wrapper.h"
-#include "net/socket/client_socket_factory.h"
-#include "remoting/base/chromium_url_request.h"
-#include "remoting/base/url_request_context_getter.h"
-#include "remoting/client/audio_player.h"
-#include "remoting/client/client_status_logger.h"
-#include "remoting/client/ios/bridge/client_proxy.h"
-#include "remoting/proto/event.pb.h"
-#include "remoting/protocol/chromium_port_allocator_factory.h"
-#include "remoting/protocol/client_authentication_config.h"
-#include "remoting/protocol/host_stub.h"
-#include "remoting/protocol/negotiating_client_authenticator.h"
-#include "remoting/protocol/transport_context.h"
-#include "remoting/signaling/delegating_signal_strategy.h"
-
-namespace remoting {
-namespace ios {
-
-AppRuntime::AppRuntime() {
- if (!base::TaskScheduler::GetInstance()) {
- // Make sure TaskScheduler is initialized.
- base::TaskScheduler::CreateAndSetSimpleTaskScheduler("RemotingIos");
- }
-
- // TODO(sergeyu): AppRuntime is not singleton, but it owns MessageLoop for the
- // current thread. This means that it's not safe to create multiple AppRuntime
- // instances on the same thread. AppRuntime should be a singleton, or this
- // code needs to be moved somewhere else.
- if (!base::MessageLoop::current()) {
- ui_loop_.reset(new base::MessageLoopForUI());
- base::MessageLoopForUI::current()->Attach();
- } else {
- ui_loop_.reset(base::MessageLoopForUI::current());
- }
- runtime_ = ChromotingClientRuntime::Create(ui_loop_.get());
-}
-
-AppRuntime::~AppRuntime() {
- // TODO(nicholss): Shutdown the app.
-}
-
-} // namespace ios
-} // namespace remoting
« no previous file with comments | « remoting/client/ios/app_runtime.h ('k') | remoting/client/ios/bridge/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698