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

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

Powered by Google App Engine
This is Rietveld 408576698