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

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

Issue 6749021: Added new fileBrowserPrivate and fileHandler extension APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_dispatcher.h" 5 #include "chrome/browser/extensions/extension_function_dispatcher.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 203
204 // Local filesystem. 204 // fileBrowserPrivate functions.
205 RegisterFunction<ExecuteTasksFileBrowserFunction>();
206 RegisterFunction<GetFileTasksFileBrowserFunction>();
205 RegisterFunction<RequestLocalFileSystemFunction>(); 207 RegisterFunction<RequestLocalFileSystemFunction>();
206 208
207 // Metrics. 209 // Metrics.
208 RegisterFunction<MetricsGetEnabledFunction>(); 210 RegisterFunction<MetricsGetEnabledFunction>();
209 RegisterFunction<MetricsSetEnabledFunction>(); 211 RegisterFunction<MetricsSetEnabledFunction>();
210 RegisterFunction<MetricsRecordUserActionFunction>(); 212 RegisterFunction<MetricsRecordUserActionFunction>();
211 RegisterFunction<MetricsRecordValueFunction>(); 213 RegisterFunction<MetricsRecordValueFunction>();
212 RegisterFunction<MetricsRecordPercentageFunction>(); 214 RegisterFunction<MetricsRecordPercentageFunction>();
213 RegisterFunction<MetricsRecordCountFunction>(); 215 RegisterFunction<MetricsRecordCountFunction>();
214 RegisterFunction<MetricsRecordSmallCountFunction>(); 216 RegisterFunction<MetricsRecordSmallCountFunction>();
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 NOTREACHED(); 533 NOTREACHED();
532 UserMetrics::RecordAction(UserMetricsAction("BadMessageTerminate_EFD")); 534 UserMetrics::RecordAction(UserMetricsAction("BadMessageTerminate_EFD"));
533 base::KillProcess(render_view_host_->process()->GetHandle(), 535 base::KillProcess(render_view_host_->process()->GetHandle(),
534 ResultCodes::KILLED_BAD_MESSAGE, false); 536 ResultCodes::KILLED_BAD_MESSAGE, false);
535 } 537 }
536 } 538 }
537 539
538 Profile* ExtensionFunctionDispatcher::profile() { 540 Profile* ExtensionFunctionDispatcher::profile() {
539 return profile_; 541 return profile_;
540 } 542 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698