Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(384)

Side by Side Diff: chrome/browser/extensions/extension_function_registry.h

Issue 10698144: Remove #pragma once from chrome/browser/extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_REGISTRY_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_REGISTRY_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_REGISTRY_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_REGISTRY_H_
7 #pragma once
8 7
9 #include <map> 8 #include <map>
10 #include <string> 9 #include <string>
11 #include <vector> 10 #include <vector>
12 11
13 class ExtensionFunction; 12 class ExtensionFunction;
14 13
15 // A factory function for creating new ExtensionFunction instances. 14 // A factory function for creating new ExtensionFunction instances.
16 typedef ExtensionFunction* (*ExtensionFunctionFactory)(); 15 typedef ExtensionFunction* (*ExtensionFunctionFactory)();
17 16
(...skipping 29 matching lines...) Expand all
47 void RegisterFunction() { 46 void RegisterFunction() {
48 factories_[T::function_name()] = &NewExtensionFunction<T>; 47 factories_[T::function_name()] = &NewExtensionFunction<T>;
49 } 48 }
50 49
51 private: 50 private:
52 typedef std::map<std::string, ExtensionFunctionFactory> FactoryMap; 51 typedef std::map<std::string, ExtensionFunctionFactory> FactoryMap;
53 FactoryMap factories_; 52 FactoryMap factories_;
54 }; 53 };
55 54
56 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_REGISTRY_H_ 55 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_REGISTRY_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_function_dispatcher.h ('k') | chrome/browser/extensions/extension_function_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698