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

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

Issue 9316078: Added daemon process NPAPI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed unused headers. Fixed Windows and Mac builds. Created 8 years, 11 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_npapi_win.cc
diff --git a/remoting/host/plugin/daemon_npapi_win.cc b/remoting/host/plugin/daemon_npapi_win.cc
new file mode 100644
index 0000000000000000000000000000000000000000..c93be566e39fe2c7669b835c35abe02f3607ecb8
--- /dev/null
+++ b/remoting/host/plugin/daemon_npapi_win.cc
@@ -0,0 +1,38 @@
+// 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_npapi.h"
Wez 2012/02/03 01:25:36 nit: newline.
Jamie 2012/02/03 01:40:15 Done.
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+
+namespace {
+class DaemonNpapiWin : public remoting::DaemonNpapi {
+ public:
+ DaemonNpapiWin();
+
+ virtual State GetState() OVERRIDE;
+ virtual void Start(const char* pin) OVERRIDE;
+ virtual void Stop() OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(DaemonNpapiWin);
+};
+} // namespace
+
+DaemonNpapiWin::DaemonNpapiWin() {
Wez 2012/02/03 01:25:36 Why aren't these defined as well as declared in th
Jamie 2012/02/03 01:40:15 Done.
+}
+
+remoting::DaemonNpapi::State DaemonNpapiWin::GetState() {
+ return remoting::DaemonNpapi::STATE_NOT_INSTALLED;
+}
+
+void DaemonNpapiWin::Start(const char* pin) {
Wez 2012/02/03 01:25:36 nit: NOTIMPLEMENTED
Jamie 2012/02/03 01:40:15 Done.
+}
+
+void DaemonNpapiWin::Stop() {
+}
+
+remoting::DaemonNpapi* remoting::DaemonNpapi::Create() {
+ return new DaemonNpapiWin();
+}

Powered by Google App Engine
This is Rietveld 408576698