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

Side by Side Diff: content/renderer/browser_plugin/browser_plugin_var_serialization_rules.cc

Issue 9609008: Implemented Browser Plugin (NOT FOR REVIEW) (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Updated according to creis@'s comments Created 8 years, 7 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "content/renderer/browser_plugin/browser_plugin_var_serialization_rules .h"
6
7 #include "base/logging.h"
8
9 namespace content {
10
11 BrowserPluginVarSerializationRules::BrowserPluginVarSerializationRules() {
12 }
13
14 BrowserPluginVarSerializationRules::~BrowserPluginVarSerializationRules() {
15 }
16
17 PP_Var BrowserPluginVarSerializationRules::SendCallerOwned(const PP_Var& var) {
18 DCHECK(var.type != PP_VARTYPE_OBJECT);
19 return var;
20 }
21
22 PP_Var BrowserPluginVarSerializationRules::BeginReceiveCallerOwned(
23 const PP_Var& var) {
24 DCHECK(var.type != PP_VARTYPE_OBJECT);
25 return var;
26 }
27
28 void BrowserPluginVarSerializationRules::EndReceiveCallerOwned(
29 const PP_Var& var) {
30 DCHECK(var.type != PP_VARTYPE_OBJECT);
31 }
32
33 PP_Var BrowserPluginVarSerializationRules::ReceivePassRef(const PP_Var& var) {
34 DCHECK(var.type != PP_VARTYPE_OBJECT);
35 return var;
36 }
37
38 PP_Var BrowserPluginVarSerializationRules::BeginSendPassRef(const PP_Var& var) {
39 DCHECK(var.type != PP_VARTYPE_OBJECT);
40 return var;
41 }
42
43 void BrowserPluginVarSerializationRules::EndSendPassRef(const PP_Var& var) {
44 DCHECK(var.type != PP_VARTYPE_OBJECT);
45 }
46
47 void BrowserPluginVarSerializationRules::ReleaseObjectRef(const PP_Var& var) {
48 DCHECK(var.type != PP_VARTYPE_OBJECT);
49 }
50
51 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698