OLD | NEW |
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 #include "chrome/browser/extensions/extension_function_registry.h" | 5 #include "chrome/browser/extensions/extension_function_registry.h" |
6 | 6 |
7 #include "chrome/browser/accessibility/accessibility_extension_api.h" | 7 #include "chrome/browser/accessibility/accessibility_extension_api.h" |
8 #include "chrome/browser/bookmarks/bookmark_extension_api.h" | 8 #include "chrome/browser/bookmarks/bookmark_extension_api.h" |
9 #include "chrome/browser/bookmarks/bookmark_manager_extension_api.h" | 9 #include "chrome/browser/bookmarks/bookmark_manager_extension_api.h" |
10 #include "chrome/browser/download/download_extension_api.h" | 10 #include "chrome/browser/download/download_extension_api.h" |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 RegisterFunction<RemoveBrowsingDataFunction>(); | 134 RegisterFunction<RemoveBrowsingDataFunction>(); |
135 RegisterFunction<RemoveAppCacheFunction>(); | 135 RegisterFunction<RemoveAppCacheFunction>(); |
136 RegisterFunction<RemoveCacheFunction>(); | 136 RegisterFunction<RemoveCacheFunction>(); |
137 RegisterFunction<RemoveCookiesFunction>(); | 137 RegisterFunction<RemoveCookiesFunction>(); |
138 RegisterFunction<RemoveDownloadsFunction>(); | 138 RegisterFunction<RemoveDownloadsFunction>(); |
139 RegisterFunction<RemoveFileSystemsFunction>(); | 139 RegisterFunction<RemoveFileSystemsFunction>(); |
140 RegisterFunction<RemoveFormDataFunction>(); | 140 RegisterFunction<RemoveFormDataFunction>(); |
141 RegisterFunction<RemoveHistoryFunction>(); | 141 RegisterFunction<RemoveHistoryFunction>(); |
142 RegisterFunction<RemoveIndexedDBFunction>(); | 142 RegisterFunction<RemoveIndexedDBFunction>(); |
143 RegisterFunction<RemoveLocalStorageFunction>(); | 143 RegisterFunction<RemoveLocalStorageFunction>(); |
144 RegisterFunction<RemoveOriginBoundCertsFunction>(); | 144 RegisterFunction<RemoveServerBoundCertsFunction>(); |
145 RegisterFunction<RemovePluginDataFunction>(); | 145 RegisterFunction<RemovePluginDataFunction>(); |
146 RegisterFunction<RemovePasswordsFunction>(); | 146 RegisterFunction<RemovePasswordsFunction>(); |
147 RegisterFunction<RemoveWebSQLFunction>(); | 147 RegisterFunction<RemoveWebSQLFunction>(); |
148 | 148 |
149 // Bookmarks. | 149 // Bookmarks. |
150 RegisterFunction<GetBookmarksFunction>(); | 150 RegisterFunction<GetBookmarksFunction>(); |
151 RegisterFunction<GetBookmarkChildrenFunction>(); | 151 RegisterFunction<GetBookmarkChildrenFunction>(); |
152 RegisterFunction<GetBookmarkRecentFunction>(); | 152 RegisterFunction<GetBookmarkRecentFunction>(); |
153 RegisterFunction<GetBookmarkTreeFunction>(); | 153 RegisterFunction<GetBookmarkTreeFunction>(); |
154 RegisterFunction<GetBookmarkSubTreeFunction>(); | 154 RegisterFunction<GetBookmarkSubTreeFunction>(); |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 } | 490 } |
491 | 491 |
492 ExtensionFunction* ExtensionFunctionRegistry::NewFunction( | 492 ExtensionFunction* ExtensionFunctionRegistry::NewFunction( |
493 const std::string& name) { | 493 const std::string& name) { |
494 FactoryMap::iterator iter = factories_.find(name); | 494 FactoryMap::iterator iter = factories_.find(name); |
495 DCHECK(iter != factories_.end()); | 495 DCHECK(iter != factories_.end()); |
496 ExtensionFunction* function = iter->second(); | 496 ExtensionFunction* function = iter->second(); |
497 function->set_name(name); | 497 function->set_name(name); |
498 return function; | 498 return function; |
499 } | 499 } |
OLD | NEW |