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 "ppapi/shared_impl/var.h" | 5 #include "ppapi/shared_impl/var.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
11 #include "base/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "ppapi/c/pp_var.h" | 12 #include "ppapi/c/pp_var.h" |
13 #include "ppapi/shared_impl/ppapi_globals.h" | 13 #include "ppapi/shared_impl/ppapi_globals.h" |
14 #include "ppapi/shared_impl/var_tracker.h" | 14 #include "ppapi/shared_impl/var_tracker.h" |
15 | 15 |
16 namespace ppapi { | 16 namespace ppapi { |
17 | 17 |
18 // Var ------------------------------------------------------------------------- | 18 // Var ------------------------------------------------------------------------- |
19 | 19 |
20 Var::Var() : var_id_(0) { | 20 Var::Var() : var_id_(0) { |
21 } | 21 } |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 return NULL; | 202 return NULL; |
203 scoped_refptr<Var> var_object( | 203 scoped_refptr<Var> var_object( |
204 PpapiGlobals::Get()->GetVarTracker()->GetVar(var)); | 204 PpapiGlobals::Get()->GetVarTracker()->GetVar(var)); |
205 if (!var_object.get()) | 205 if (!var_object.get()) |
206 return NULL; | 206 return NULL; |
207 return var_object->AsArrayBufferVar(); | 207 return var_object->AsArrayBufferVar(); |
208 } | 208 } |
209 | 209 |
210 } // namespace ppapi | 210 } // namespace ppapi |
211 | 211 |
OLD | NEW |