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