// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef EXTENSIONS_RENDERER_BINDINGS_GET_PER_CONTEXT_DATA_H_ #define EXTENSIONS_RENDERER_BINDINGS_GET_PER_CONTEXT_DATA_H_ #include "gin/per_context_data.h" #include "v8/include/v8.h" namespace extensions { enum CreatePerContextData { … }; template <typename PerContextData, typename... ConstructorArgs> PerContextData* GetPerContextData(v8::Local<v8::Context> context, CreatePerContextData should_create, ConstructorArgs... constructor_args) { … } } // namespace extensions #endif // EXTENSIONS_RENDERER_BINDINGS_GET_PER_CONTEXT_DATA_H_