summaryrefslogtreecommitdiffstats
path: root/content/child/npapi/npruntime_util.h
blob: f0ddabba620e37b5e6fa688d221e10e14f6ab65b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) 2013 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.

#ifndef CONTENT_CHILD_NPAPI_NPRUNTIME_UTIL_H_
#define CONTENT_CHILD_NPAPI_NPRUNTIME_UTIL_H_

#include "third_party/npapi/bindings/npruntime.h"

namespace base {
class Pickle;
class PickleIterator;
}

namespace content {

// Efficiently serialize/deserialize a NPIdentifier
bool SerializeNPIdentifier(NPIdentifier identifier, base::Pickle* pickle);
bool DeserializeNPIdentifier(base::PickleIterator* pickle_iter,
                             NPIdentifier* identifier);

}  // namespace content

#endif  // CONTENT_CHILD_NPAPI_NPRUNTIME_UTIL_H_