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

Unified Diff: remoting/client/plugin/chromoting_main.cc

Issue 2690003: Copy the (early prototype of) remoting in Chrome into the public tree.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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
« no previous file with comments | « remoting/client/pepper/pepper_plugin.cc ('k') | remoting/client/plugin/chromoting_plugin.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/plugin/chromoting_main.cc
===================================================================
--- remoting/client/plugin/chromoting_main.cc (revision 0)
+++ remoting/client/plugin/chromoting_main.cc (revision 0)
@@ -0,0 +1,24 @@
+// Copyright (c) 2010 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/client/plugin/chromoting_plugin.h"
+
+// Initialize general plugin info like name and description.
+// This information needs to live outside of the PepperPlugin since it can
+// be requested by the browser before the PepperPlugin has been instantiated.
+void InitializePluginInfo(pepper::PepperPlugin::Info* plugin_info) {
+ plugin_info->mime_description = remoting::kMimeType;
+ plugin_info->plugin_name = "Chromoting";
+ plugin_info->plugin_description = "Remote access for Chrome";
+}
+
+// Create the Pepper plugin instance.
+//
+// This is called in response to the NPP_New call.
+// This instantiates a PepperPlugin subclass that implements the plugin
+// specific functionality.
+pepper::PepperPlugin* CreatePlugin(NPNetscapeFuncs* browser_funcs,
+ NPP instance) {
+ return new remoting::ChromotingPlugin(browser_funcs, instance);
+}
Property changes on: remoting/client/plugin/chromoting_main.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « remoting/client/pepper/pepper_plugin.cc ('k') | remoting/client/plugin/chromoting_plugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698