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

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

Issue 18599005: [PPAPI] Added PP_VARTYPE_RESOURCE as a PP_VarType enum value. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Respond to reviews. Created 7 years, 3 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
« no previous file with comments | « ppapi/c/pp_var.h ('k') | ppapi/shared_impl/resource_var.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/raw_var_data.h" 5 #include "ppapi/proxy/raw_var_data.h"
6 6
7 #include <stack> 7 #include <stack>
8 8
9 #include "base/containers/hash_tables.h" 9 #include "base/containers/hash_tables.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 case PP_VARTYPE_OBJECT: 233 case PP_VARTYPE_OBJECT:
234 return new BasicRawVarData(); 234 return new BasicRawVarData();
235 case PP_VARTYPE_STRING: 235 case PP_VARTYPE_STRING:
236 return new StringRawVarData(); 236 return new StringRawVarData();
237 case PP_VARTYPE_ARRAY_BUFFER: 237 case PP_VARTYPE_ARRAY_BUFFER:
238 return new ArrayBufferRawVarData(); 238 return new ArrayBufferRawVarData();
239 case PP_VARTYPE_ARRAY: 239 case PP_VARTYPE_ARRAY:
240 return new ArrayRawVarData(); 240 return new ArrayRawVarData();
241 case PP_VARTYPE_DICTIONARY: 241 case PP_VARTYPE_DICTIONARY:
242 return new DictionaryRawVarData(); 242 return new DictionaryRawVarData();
243 case PP_VARTYPE_RESOURCE:
244 // TODO(mgiuca): Add ResourceRawVarData. (http://crbug.com/177017)
245 // This path will be reached if a NaCl module attempts to pass a
246 // PP_VARTYPE_RESOURCE in a message.
247 break;
243 } 248 }
244 NOTREACHED(); 249 NOTREACHED();
245 return NULL; 250 return NULL;
246 } 251 }
247 252
248 RawVarData::RawVarData() : initialized_(false) { 253 RawVarData::RawVarData() : initialized_(false) {
249 } 254 }
250 255
251 RawVarData::~RawVarData() { 256 RawVarData::~RawVarData() {
252 } 257 }
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 return false; 661 return false;
657 if (!m->ReadUInt32(iter, &value)) 662 if (!m->ReadUInt32(iter, &value))
658 return false; 663 return false;
659 children_.push_back(make_pair(key, value)); 664 children_.push_back(make_pair(key, value));
660 } 665 }
661 return true; 666 return true;
662 } 667 }
663 668
664 } // namespace proxy 669 } // namespace proxy
665 } // namespace ppapi 670 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/c/pp_var.h ('k') | ppapi/shared_impl/resource_var.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698