OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "extensions/renderer/script_context.h" | 5 #include "extensions/renderer/script_context.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/macros.h" |
8 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
9 #include "base/strings/string_split.h" | 10 #include "base/strings/string_split.h" |
10 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
11 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
12 #include "base/values.h" | 13 #include "base/values.h" |
13 #include "content/public/child/v8_value_converter.h" | 14 #include "content/public/child/v8_value_converter.h" |
14 #include "content/public/common/url_constants.h" | 15 #include "content/public/common/url_constants.h" |
15 #include "content/public/renderer/render_frame.h" | 16 #include "content/public/renderer/render_frame.h" |
16 #include "extensions/common/constants.h" | 17 #include "extensions/common/constants.h" |
17 #include "extensions/common/extension.h" | 18 #include "extensions/common/extension.h" |
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 v8::Local<v8::Value> argv[]) { | 469 v8::Local<v8::Value> argv[]) { |
469 return context_->CallFunction(function, argc, argv); | 470 return context_->CallFunction(function, argc, argv); |
470 } | 471 } |
471 | 472 |
472 gin::ContextHolder* ScriptContext::Runner::GetContextHolder() { | 473 gin::ContextHolder* ScriptContext::Runner::GetContextHolder() { |
473 v8::HandleScope handle_scope(context_->isolate()); | 474 v8::HandleScope handle_scope(context_->isolate()); |
474 return gin::PerContextData::From(context_->v8_context())->context_holder(); | 475 return gin::PerContextData::From(context_->v8_context())->context_holder(); |
475 } | 476 } |
476 | 477 |
477 } // namespace extensions | 478 } // namespace extensions |
OLD | NEW |