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

Side by Side Diff: ppapi/proxy/host_var_serialization_rules.cc

Issue 7655002: Convert the pp::proxy namespace to the ppapi::proxy namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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 "ppapi/proxy/host_var_serialization_rules.h" 5 #include "ppapi/proxy/host_var_serialization_rules.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ppapi/c/ppb_var.h" 8 #include "ppapi/c/ppb_var.h"
9 9
10 namespace pp { 10 namespace ppapi {
11 namespace proxy { 11 namespace proxy {
12 12
13 HostVarSerializationRules::HostVarSerializationRules( 13 HostVarSerializationRules::HostVarSerializationRules(
14 const PPB_Var* var_interface, 14 const PPB_Var* var_interface,
15 PP_Module pp_module) 15 PP_Module pp_module)
16 : var_interface_(var_interface), 16 : var_interface_(var_interface),
17 pp_module_(pp_module) { 17 pp_module_(pp_module) {
18 } 18 }
19 19
20 HostVarSerializationRules::~HostVarSerializationRules() { 20 HostVarSerializationRules::~HostVarSerializationRules() {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 uint32_t len = 0; 86 uint32_t len = 0;
87 const char* data = var_interface_->VarToUtf8(var, &len); 87 const char* data = var_interface_->VarToUtf8(var, &len);
88 str->assign(data, len); 88 str->assign(data, len);
89 } 89 }
90 90
91 void HostVarSerializationRules::ReleaseObjectRef(const PP_Var& var) { 91 void HostVarSerializationRules::ReleaseObjectRef(const PP_Var& var) {
92 var_interface_->Release(var); 92 var_interface_->Release(var);
93 } 93 }
94 94
95 } // namespace proxy 95 } // namespace proxy
96 } // namespace pp 96 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698