| OLD | NEW |
| 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 "content/renderer/pepper/plugin_object.h" | 5 #include "content/renderer/pepper/plugin_object.h" |
| 6 | 6 |
| 7 #include <stdint.h> |
| 8 |
| 7 #include "base/bind.h" | 9 #include "base/bind.h" |
| 8 #include "base/logging.h" | 10 #include "base/logging.h" |
| 9 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
| 12 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
| 13 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" | 15 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" |
| 14 #include "content/renderer/pepper/pepper_try_catch.h" | 16 #include "content/renderer/pepper/pepper_try_catch.h" |
| 15 #include "content/renderer/pepper/plugin_module.h" | 17 #include "content/renderer/pepper/plugin_module.h" |
| 16 #include "content/renderer/pepper/v8_var_converter.h" | 18 #include "content/renderer/pepper/v8_var_converter.h" |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 return function_template; | 278 return function_template; |
| 277 function_template = | 279 function_template = |
| 278 gin::CreateFunctionTemplate( | 280 gin::CreateFunctionTemplate( |
| 279 isolate, base::Bind(&PluginObject::Call, weak_factory_.GetWeakPtr(), | 281 isolate, base::Bind(&PluginObject::Call, weak_factory_.GetWeakPtr(), |
| 280 name)); | 282 name)); |
| 281 template_cache_.Set(name, function_template); | 283 template_cache_.Set(name, function_template); |
| 282 return function_template; | 284 return function_template; |
| 283 } | 285 } |
| 284 | 286 |
| 285 } // namespace content | 287 } // namespace content |
| OLD | NEW |