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

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

Issue 10175008: Improving the process model extension API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Schema file synced with docs, some minor cleanup. Created 8 years, 7 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 #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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698