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

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: Syncing to the latest tree after a week away. 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_event_router.cc ('k') | chrome/browser/extensions/extension_function_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698