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/v8_schema_registry.h" | 5 #include "extensions/renderer/v8_schema_registry.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <utility> | 9 #include <utility> |
8 | 10 |
9 #include "base/logging.h" | 11 #include "base/logging.h" |
10 #include "base/values.h" | 12 #include "base/values.h" |
11 #include "content/public/child/v8_value_converter.h" | 13 #include "content/public/child/v8_value_converter.h" |
12 #include "extensions/common/extension_api.h" | 14 #include "extensions/common/extension_api.h" |
13 #include "extensions/renderer/object_backed_native_handler.h" | 15 #include "extensions/renderer/object_backed_native_handler.h" |
14 #include "extensions/renderer/script_context.h" | 16 #include "extensions/renderer/script_context.h" |
15 | 17 |
16 using content::V8ValueConverter; | 18 using content::V8ValueConverter; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 if (!context_holder_) { | 116 if (!context_holder_) { |
115 context_holder_.reset(new gin::ContextHolder(isolate)); | 117 context_holder_.reset(new gin::ContextHolder(isolate)); |
116 context_holder_->SetContext(v8::Context::New(isolate)); | 118 context_holder_->SetContext(v8::Context::New(isolate)); |
117 schema_cache_.reset(new SchemaCache(isolate)); | 119 schema_cache_.reset(new SchemaCache(isolate)); |
118 return context_holder_->context(); | 120 return context_holder_->context(); |
119 } | 121 } |
120 return context_holder_->context(); | 122 return context_holder_->context(); |
121 } | 123 } |
122 | 124 |
123 } // namespace extensions | 125 } // namespace extensions |
OLD | NEW |