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

Unified Diff: remoting/host/it2me_desktop_environment.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: Fix Mac. Created 7 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/host/it2me_desktop_environment.h
diff --git a/remoting/host/it2me_desktop_environment.h b/remoting/host/it2me_desktop_environment.h
new file mode 100644
index 0000000000000000000000000000000000000000..bc9a2683d466ed34a1d05b5630f2418427b943bc
--- /dev/null
+++ b/remoting/host/it2me_desktop_environment.h
@@ -0,0 +1,59 @@
+// Copyright 2013 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_DESKTOP_ENVIRONMENT_H_
+#define REMOTING_HOST_IT2ME_DESKTOP_ENVIRONMENT_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "base/memory/weak_ptr.h"
+#include "remoting/host/basic_desktop_environment.h"
+
+namespace remoting {
+
+class HostWindow;
+struct UiStrings;
+
+// Same as BasicDesktopEnvironment but also presents the Continue window to
+// the local user.
+class It2MeDesktopEnvironment : public BasicDesktopEnvironment {
+ public:
+ virtual ~It2MeDesktopEnvironment();
+
+ protected:
+ friend class It2MeDesktopEnvironmentFactory;
+ It2MeDesktopEnvironment(
+ scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
+ scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
+ scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
+ base::WeakPtr<ClientSessionControl> client_session_control,
+ const UiStrings& ui_strings);
+
+ private:
+ // Presents the continue window to the local user.
+ scoped_ptr<HostWindow> continue_window_;
+
+ DISALLOW_COPY_AND_ASSIGN(It2MeDesktopEnvironment);
+};
+
+// Used to create |It2MeDesktopEnvironment| instances.
+class It2MeDesktopEnvironmentFactory : public BasicDesktopEnvironmentFactory {
+ public:
+ It2MeDesktopEnvironmentFactory(
+ scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
+ scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
+ scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
+ const UiStrings& ui_strings);
+ virtual ~It2MeDesktopEnvironmentFactory();
+
+ // DesktopEnvironmentFactory interface.
+ virtual scoped_ptr<DesktopEnvironment> Create(
+ base::WeakPtr<ClientSessionControl> client_session_control) OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(It2MeDesktopEnvironmentFactory);
+};
+
+} // namespace remoting
+
+#endif // REMOTING_HOST_IT2ME_DESKTOP_ENVIRONMENT_H_

Powered by Google App Engine
This is Rietveld 408576698