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

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

Issue 8548013: Moving experimental.metrics API to metricsPrivate (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Rebase Created 9 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_metrics_apitest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 // Idle 228 // Idle
229 RegisterFunction<ExtensionIdleQueryStateFunction>(); 229 RegisterFunction<ExtensionIdleQueryStateFunction>();
230 230
231 // I18N. 231 // I18N.
232 RegisterFunction<GetAcceptLanguagesFunction>(); 232 RegisterFunction<GetAcceptLanguagesFunction>();
233 233
234 // Processes. 234 // Processes.
235 RegisterFunction<GetProcessIdForTabFunction>(); 235 RegisterFunction<GetProcessIdForTabFunction>();
236 236
237 // Metrics. 237 // Metrics.
238 RegisterFunction<MetricsGetEnabledFunction>();
239 RegisterFunction<MetricsSetEnabledFunction>();
240 RegisterFunction<MetricsRecordUserActionFunction>(); 238 RegisterFunction<MetricsRecordUserActionFunction>();
241 RegisterFunction<MetricsRecordValueFunction>(); 239 RegisterFunction<MetricsRecordValueFunction>();
242 RegisterFunction<MetricsRecordPercentageFunction>(); 240 RegisterFunction<MetricsRecordPercentageFunction>();
243 RegisterFunction<MetricsRecordCountFunction>(); 241 RegisterFunction<MetricsRecordCountFunction>();
244 RegisterFunction<MetricsRecordSmallCountFunction>(); 242 RegisterFunction<MetricsRecordSmallCountFunction>();
245 RegisterFunction<MetricsRecordMediumCountFunction>(); 243 RegisterFunction<MetricsRecordMediumCountFunction>();
246 RegisterFunction<MetricsRecordTimeFunction>(); 244 RegisterFunction<MetricsRecordTimeFunction>();
247 RegisterFunction<MetricsRecordMediumTimeFunction>(); 245 RegisterFunction<MetricsRecordMediumTimeFunction>();
248 RegisterFunction<MetricsRecordLongTimeFunction>(); 246 RegisterFunction<MetricsRecordLongTimeFunction>();
249 247
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 return function; 681 return function;
684 } 682 }
685 683
686 // static 684 // static
687 void ExtensionFunctionDispatcher::SendAccessDenied( 685 void ExtensionFunctionDispatcher::SendAccessDenied(
688 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { 686 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) {
689 ipc_sender->Send(new ExtensionMsg_Response( 687 ipc_sender->Send(new ExtensionMsg_Response(
690 routing_id, request_id, false, std::string(), 688 routing_id, request_id, false, std::string(),
691 "Access to extension API denied.")); 689 "Access to extension API denied."));
692 } 690 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_metrics_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698