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

Side by Side Diff: remoting/host/host_plugin_utils.h

Issue 7210025: Split host plugin into multiple files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge gary's changes Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/host/host_plugin.cc ('k') | remoting/host/host_plugin_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_HOST_HOST_PLUGIN_UTILS_H_
6 #define REMOTING_HOST_HOST_PLUGIN_UTILS_H_
7
8 #include <string>
9
10 #include "third_party/npapi/bindings/npapi.h"
11 #include "third_party/npapi/bindings/npfunctions.h"
12 #include "third_party/npapi/bindings/npruntime.h"
13
14 namespace remoting {
15
16 // Global netscape functions initialized in NP_Initialize.
17 extern NPNetscapeFuncs* g_npnetscape_funcs;
18
19 // Convert an NPIdentifier into a std::string.
20 std::string StringFromNPIdentifier(NPIdentifier identifier);
21
22 // Convert an NPVariant into a std::string.
23 std::string StringFromNPVariant(const NPVariant& variant);
24
25 // Convert a std::string into an NPVariant.
26 // Caller is responsible for making sure that NPN_ReleaseVariantValue is
27 // called on returned value.
28 NPVariant NPVariantFromString(const std::string& val);
29
30 // Convert an NPVariant into an NSPObject.
31 NPObject* ObjectFromNPVariant(const NPVariant& variant);
32
33 } // namespace remoting
34
35 #endif // REMOTING_HOST_HOST_PLUGIN_UTILS_H_
OLDNEW
« no previous file with comments | « remoting/host/host_plugin.cc ('k') | remoting/host/host_plugin_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698