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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 RegisterFunction<SearchHistoryFunction>(); | 193 RegisterFunction<SearchHistoryFunction>(); |
194 | 194 |
195 // Idle | 195 // Idle |
196 RegisterFunction<ExtensionIdleQueryStateFunction>(); | 196 RegisterFunction<ExtensionIdleQueryStateFunction>(); |
197 | 197 |
198 // I18N. | 198 // I18N. |
199 RegisterFunction<GetAcceptLanguagesFunction>(); | 199 RegisterFunction<GetAcceptLanguagesFunction>(); |
200 | 200 |
201 // Processes. | 201 // Processes. |
202 RegisterFunction<GetProcessIdForTabFunction>(); | 202 RegisterFunction<GetProcessIdForTabFunction>(); |
| 203 RegisterFunction<TerminateFunction>(); |
| 204 RegisterFunction<GetProcessInfoFunction>(); |
203 | 205 |
204 // Metrics. | 206 // Metrics. |
205 RegisterFunction<MetricsRecordUserActionFunction>(); | 207 RegisterFunction<MetricsRecordUserActionFunction>(); |
206 RegisterFunction<MetricsRecordValueFunction>(); | 208 RegisterFunction<MetricsRecordValueFunction>(); |
207 RegisterFunction<MetricsRecordPercentageFunction>(); | 209 RegisterFunction<MetricsRecordPercentageFunction>(); |
208 RegisterFunction<MetricsRecordCountFunction>(); | 210 RegisterFunction<MetricsRecordCountFunction>(); |
209 RegisterFunction<MetricsRecordSmallCountFunction>(); | 211 RegisterFunction<MetricsRecordSmallCountFunction>(); |
210 RegisterFunction<MetricsRecordMediumCountFunction>(); | 212 RegisterFunction<MetricsRecordMediumCountFunction>(); |
211 RegisterFunction<MetricsRecordTimeFunction>(); | 213 RegisterFunction<MetricsRecordTimeFunction>(); |
212 RegisterFunction<MetricsRecordMediumTimeFunction>(); | 214 RegisterFunction<MetricsRecordMediumTimeFunction>(); |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 } | 549 } |
548 | 550 |
549 ExtensionFunction* ExtensionFunctionRegistry::NewFunction( | 551 ExtensionFunction* ExtensionFunctionRegistry::NewFunction( |
550 const std::string& name) { | 552 const std::string& name) { |
551 FactoryMap::iterator iter = factories_.find(name); | 553 FactoryMap::iterator iter = factories_.find(name); |
552 DCHECK(iter != factories_.end()); | 554 DCHECK(iter != factories_.end()); |
553 ExtensionFunction* function = iter->second(); | 555 ExtensionFunction* function = iter->second(); |
554 function->set_name(name); | 556 function->set_name(name); |
555 return function; | 557 return function; |
556 } | 558 } |
OLD | NEW |