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

Unified Diff: remoting/host/plugin/daemon_controller_win.cc

Issue 9316078: Added daemon process NPAPI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Separated out Start/SetPin and added return codes to Stop and Start. Created 8 years, 10 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/plugin/daemon_controller_win.cc
diff --git a/remoting/host/plugin/daemon_controller_win.cc b/remoting/host/plugin/daemon_controller_win.cc
new file mode 100644
index 0000000000000000000000000000000000000000..3c03c2acf755a9be0c1c2ce5533b3842a0c9f2e7
--- /dev/null
+++ b/remoting/host/plugin/daemon_controller_win.cc
@@ -0,0 +1,56 @@
+// 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.
+
+#include "remoting/host/plugin/daemon_controller.h"
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "base/logging.h"
+
+namespace remoting {
+
+namespace {
+
+class DaemonControllerWin : public remoting::DaemonController {
+ public:
+ DaemonControllerWin();
+
+ virtual State GetState() OVERRIDE;
+ virtual bool SetPin(const std::string& pin) OVERRIDE;
+ virtual bool Start() OVERRIDE;
+ virtual bool Stop() OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(DaemonControllerWin);
+};
+
+DaemonControllerWin::DaemonControllerWin() {
+}
+
+remoting::DaemonController::State DaemonControllerWin::GetState() {
+ return remoting::DaemonController::STATE_NOT_IMPLEMENTED;
+}
+
+bool DaemonControllerWin::SetPin(const std::string& pin) {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+bool DaemonControllerWin::Start() {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+bool DaemonControllerWin::Stop() {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+} // namespace
+
+DaemonController* remoting::DaemonController::Create() {
+ return new DaemonControllerWin();
+}
+
+} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698