OLD | NEW |
| (Empty) |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "remoting/client/plugin/chromoting_plugin.h" | |
6 | |
7 // Initialize general plugin info like name and description. | |
8 // This information needs to live outside of the PepperPlugin since it can | |
9 // be requested by the browser before the PepperPlugin has been instantiated. | |
10 void InitializePluginInfo(pepper::PepperPlugin::Info* plugin_info) { | |
11 plugin_info->mime_description = remoting::ChromotingPlugin::kMimeType; | |
12 plugin_info->plugin_name = "Chromoting"; | |
13 plugin_info->plugin_description = "Remote access for Chrome"; | |
14 } | |
15 | |
16 // Create the Pepper plugin instance. | |
17 // | |
18 // This is called in response to the NPP_New call. | |
19 // This instantiates a PepperPlugin subclass that implements the plugin | |
20 // specific functionality. | |
21 pepper::PepperPlugin* CreatePlugin(NPNetscapeFuncs* browser_funcs, | |
22 NPP instance) { | |
23 return new remoting::ChromotingPlugin(browser_funcs, instance); | |
24 } | |
OLD | NEW |