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

Unified Diff: remoting/host/it2me_host_user_interface.h

Issue 13461029: The continue window is owned by the desktop environment now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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: remoting/host/it2me_host_user_interface.h
diff --git a/remoting/host/it2me_host_user_interface.h b/remoting/host/it2me_host_user_interface.h
deleted file mode 100644
index 119d072a048504141142a1299249f885436d291a..0000000000000000000000000000000000000000
--- a/remoting/host/it2me_host_user_interface.h
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright (c) 2012 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_HOST_IT2ME_HOST_USER_INTERFACE_H_
-#define REMOTING_HOST_IT2ME_HOST_USER_INTERFACE_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/callback.h"
-#include "base/compiler_specific.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/memory/weak_ptr.h"
-
-#include "remoting/host/host_user_interface.h"
-
-namespace remoting {
-
-class ContinueWindow;
-
-// This class implements the IT2Me-specific parts of the ChromotingHost:
-// Disconnect and Continue window popups.
-// IT2Me-specific handling of multiple connection attempts.
-class It2MeHostUserInterface : public HostUserInterface {
- public:
- It2MeHostUserInterface(
- scoped_refptr<base::SingleThreadTaskRunner> network_task_runner,
- scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
- const UiStrings& ui_strings);
- virtual ~It2MeHostUserInterface();
-
- // HostUserInterface overrides.
- virtual void Init() OVERRIDE;
-
- protected:
- virtual void ProcessOnClientAuthenticated(
- const std::string& username) OVERRIDE;
- virtual void ProcessOnClientDisconnected() OVERRIDE;
-
- // Provide a user interface requiring the user to periodically re-confirm
- // the connection.
- scoped_ptr<ContinueWindow> continue_window_;
-
- private:
- class TimerTask;
-
- // Called by the ContinueWindow implementation (on the UI thread) when the
- // user dismisses the Continue prompt.
- void ContinueSession(bool continue_session);
- void OnContinueWindowTimer();
- void OnShutdownHostTimer();
-
- // Show or hide the Continue Sharing window on the UI thread.
- void ShowContinueWindow(bool show);
- void StartContinueWindowTimer(bool start);
-
- // Weak pointer factory used to abandon the "continue session" timer when
- // hiding the "continue session" dialog, or tearing down the IT2Me UI.
- base::WeakPtrFactory<It2MeHostUserInterface> timer_weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(It2MeHostUserInterface);
-};
-
-} // namespace remoting
-
-#endif // REMOTING_HOST_IT2ME_HOST_USER_INTERFACE_H_

Powered by Google App Engine
This is Rietveld 408576698