summaryrefslogtreecommitdiffstats
path: root/content/renderer/browser_plugin/browser_plugin_var_serialization_rules.cc
blob: 874527c3224d906c4c75cbe08d26f915bf4d111c (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Copyright (c) 2012 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 "content/renderer/browser_plugin/browser_plugin_var_serialization_rules.h"

#include "base/logging.h"

namespace content {

BrowserPluginVarSerializationRules::BrowserPluginVarSerializationRules() {
}

BrowserPluginVarSerializationRules::~BrowserPluginVarSerializationRules() {
}

PP_Var BrowserPluginVarSerializationRules::SendCallerOwned(const PP_Var& var) {
  DCHECK(var.type != PP_VARTYPE_OBJECT);
  return var;
}

PP_Var BrowserPluginVarSerializationRules::BeginReceiveCallerOwned(
    const PP_Var& var) {
  DCHECK(var.type != PP_VARTYPE_OBJECT);
  return var;
}

void BrowserPluginVarSerializationRules::EndReceiveCallerOwned(
    const PP_Var& var) {
  DCHECK(var.type != PP_VARTYPE_OBJECT);
}

PP_Var BrowserPluginVarSerializationRules::ReceivePassRef(const PP_Var& var) {
  DCHECK(var.type != PP_VARTYPE_OBJECT);
  return var;
}

PP_Var BrowserPluginVarSerializationRules::BeginSendPassRef(const PP_Var& var) {
  DCHECK(var.type != PP_VARTYPE_OBJECT);
  return var;
}

void BrowserPluginVarSerializationRules::EndSendPassRef(const PP_Var& var) {
  DCHECK(var.type != PP_VARTYPE_OBJECT);
}

void BrowserPluginVarSerializationRules::ReleaseObjectRef(const PP_Var& var) {
  DCHECK(var.type != PP_VARTYPE_OBJECT);
}

}  // namespace content