// Copyright 2014 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_BROWSER_EXTENSION_FUNCTION_REGISTRY_H_ #define EXTENSIONS_BROWSER_EXTENSION_FUNCTION_REGISTRY_H_ #include <map> #include <string> #include "base/memory/scoped_refptr.h" #include "extensions/browser/extension_function_histogram_value.h" class ExtensionFunction; // A factory function for creating new ExtensionFunction instances. ExtensionFunctionFactory; // Template for defining ExtensionFunctionFactory. template <class T> scoped_refptr<ExtensionFunction> NewExtensionFunction() { … } // Contains a list of all known extension functions and allows clients to // create instances of them. class ExtensionFunctionRegistry { … }; #endif // EXTENSIONS_BROWSER_EXTENSION_FUNCTION_REGISTRY_H_