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

Unified Diff: remoting/host/plugin/daemon_controller_linux.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_linux.cc
diff --git a/remoting/host/plugin/daemon_controller_linux.cc b/remoting/host/plugin/daemon_controller_linux.cc
new file mode 100644
index 0000000000000000000000000000000000000000..7b70c5384c3cbb4fe444926d79668d107707c6a9
--- /dev/null
+++ b/remoting/host/plugin/daemon_controller_linux.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 DaemonControllerLinux : public remoting::DaemonController {
+ public:
+ DaemonControllerLinux();
+
+ 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(DaemonControllerLinux);
+};
+
+DaemonControllerLinux::DaemonControllerLinux() {
+}
+
+remoting::DaemonController::State DaemonControllerLinux::GetState() {
+ return remoting::DaemonController::STATE_NOT_IMPLEMENTED;
+}
+
+bool DaemonControllerLinux::SetPin(const std::string& pin) {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+bool DaemonControllerLinux::Start() {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+bool DaemonControllerLinux::Stop() {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+} // namespace
+
+DaemonController* remoting::DaemonController::Create() {
+ return new DaemonControllerLinux();
+}
+
+} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698