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

Side by Side Diff: remoting/host/plugin/host_plugin.cc

Issue 8418039: Get web-app name, MIME type and description from gyp file for all platforms, and brand correctly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed comments. Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | remoting/host/plugin/host_plugin.rc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdio.h> 5 #include <stdio.h>
6 #include <string.h> 6 #include <string.h>
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 using remoting::g_npnetscape_funcs; 46 using remoting::g_npnetscape_funcs;
47 using remoting::HostLogHandler; 47 using remoting::HostLogHandler;
48 using remoting::HostNPScriptObject; 48 using remoting::HostNPScriptObject;
49 using remoting::StringFromNPIdentifier; 49 using remoting::StringFromNPIdentifier;
50 50
51 namespace { 51 namespace {
52 52
53 base::AtExitManager* g_at_exit_manager = NULL; 53 base::AtExitManager* g_at_exit_manager = NULL;
54 54
55 // The name and description are returned by GetValue, but are also
56 // combined with the MIME type to satisfy GetMIMEDescription, so we
57 // use macros here to allow that to happen at compile-time.
58 #define HOST_PLUGIN_NAME "Remoting Host Plugin"
59 #define HOST_PLUGIN_DESCRIPTION "Remoting Host Plugin"
60
61 // NPAPI plugin implementation for remoting host. 55 // NPAPI plugin implementation for remoting host.
62 // Documentation for most of the calls in this class can be found here: 56 // Documentation for most of the calls in this class can be found here:
63 // https://developer.mozilla.org/en/Gecko_Plugin_API_Reference/Scripting_plugins 57 // https://developer.mozilla.org/en/Gecko_Plugin_API_Reference/Scripting_plugins
64 class HostNPPlugin : public remoting::PluginMessageLoopProxy::Delegate { 58 class HostNPPlugin : public remoting::PluginMessageLoopProxy::Delegate {
65 public: 59 public:
66 // |mode| is the display mode of plug-in. Values: 60 // |mode| is the display mode of plug-in. Values:
67 // NP_EMBED: (1) Instance was created by an EMBED tag and shares the browser 61 // NP_EMBED: (1) Instance was created by an EMBED tag and shares the browser
68 // window with other content. 62 // window with other content.
69 // NP_FULL: (2) Instance was created by a separate file and is the primary 63 // NP_FULL: (2) Instance was created by a separate file and is the primary
70 // content in the window. 64 // content in the window.
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 } 496 }
503 497
504 EXPORT NPError API_CALL NP_GetValue(void* npp, 498 EXPORT NPError API_CALL NP_GetValue(void* npp,
505 NPPVariable variable, 499 NPPVariable variable,
506 void* value) { 500 void* value) {
507 return GetValue((NPP)npp, variable, value); 501 return GetValue((NPP)npp, variable, value);
508 } 502 }
509 #endif 503 #endif
510 504
511 } // extern "C" 505 } // extern "C"
OLDNEW
« no previous file with comments | « no previous file | remoting/host/plugin/host_plugin.rc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698