OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/renderer/browser_plugin/old/browser_plugin_var_serialization_r
ules.h" | 5 #include "content/renderer/browser_plugin/old/browser_plugin_var_serialization_r
ules.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 | 8 |
9 namespace content { | 9 namespace content { |
| 10 namespace old { |
10 | 11 |
11 BrowserPluginVarSerializationRules::BrowserPluginVarSerializationRules() { | 12 BrowserPluginVarSerializationRules::BrowserPluginVarSerializationRules() { |
12 } | 13 } |
13 | 14 |
14 BrowserPluginVarSerializationRules::~BrowserPluginVarSerializationRules() { | 15 BrowserPluginVarSerializationRules::~BrowserPluginVarSerializationRules() { |
15 } | 16 } |
16 | 17 |
17 PP_Var BrowserPluginVarSerializationRules::SendCallerOwned(const PP_Var& var) { | 18 PP_Var BrowserPluginVarSerializationRules::SendCallerOwned(const PP_Var& var) { |
18 DCHECK(var.type != PP_VARTYPE_OBJECT); | 19 DCHECK(var.type != PP_VARTYPE_OBJECT); |
19 return var; | 20 return var; |
(...skipping 21 matching lines...) Expand all Loading... |
41 } | 42 } |
42 | 43 |
43 void BrowserPluginVarSerializationRules::EndSendPassRef(const PP_Var& var) { | 44 void BrowserPluginVarSerializationRules::EndSendPassRef(const PP_Var& var) { |
44 DCHECK(var.type != PP_VARTYPE_OBJECT); | 45 DCHECK(var.type != PP_VARTYPE_OBJECT); |
45 } | 46 } |
46 | 47 |
47 void BrowserPluginVarSerializationRules::ReleaseObjectRef(const PP_Var& var) { | 48 void BrowserPluginVarSerializationRules::ReleaseObjectRef(const PP_Var& var) { |
48 DCHECK(var.type != PP_VARTYPE_OBJECT); | 49 DCHECK(var.type != PP_VARTYPE_OBJECT); |
49 } | 50 } |
50 | 51 |
| 52 } // namespace old |
51 } // namespace content | 53 } // namespace content |
OLD | NEW |