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

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

Issue 8747003: Add private system extension API to get system update status (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Codereview Created 9 years 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 #if defined(TOOLKIT_VIEWS) 73 #if defined(TOOLKIT_VIEWS)
74 #include "chrome/browser/extensions/extension_input_api.h" 74 #include "chrome/browser/extensions/extension_input_api.h"
75 #endif 75 #endif
76 76
77 #if defined(OS_CHROMEOS) && defined(TOUCH_UI) 77 #if defined(OS_CHROMEOS) && defined(TOUCH_UI)
78 #include "chrome/browser/extensions/extension_input_ui_api.h" 78 #include "chrome/browser/extensions/extension_input_ui_api.h"
79 #endif 79 #endif
80 80
81 #if defined(OS_CHROMEOS) 81 #if defined(OS_CHROMEOS)
82 #include "chrome/browser/chromeos/accessibility/accessibility_private_extension_ api.h"
82 #include "chrome/browser/extensions/extension_file_browser_private_api.h" 83 #include "chrome/browser/extensions/extension_file_browser_private_api.h"
83 #include "chrome/browser/extensions/extension_info_private_api_chromeos.h" 84 #include "chrome/browser/extensions/extension_info_private_api_chromeos.h"
84 #include "chrome/browser/extensions/extension_input_ime_api.h" 85 #include "chrome/browser/extensions/extension_input_ime_api.h"
85 #include "chrome/browser/extensions/extension_input_method_api.h" 86 #include "chrome/browser/extensions/extension_input_method_api.h"
86 #include "chrome/browser/extensions/extension_mediaplayer_private_api.h" 87 #include "chrome/browser/extensions/extension_mediaplayer_private_api.h"
87 #endif 88 #endif
88 89
89 using extensions::ExtensionAPI; 90 using extensions::ExtensionAPI;
90 91
91 // FactoryRegistry ------------------------------------------------------------- 92 // FactoryRegistry -------------------------------------------------------------
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 // Mediaplayer 405 // Mediaplayer
405 RegisterFunction<PlayAtMediaplayerFunction>(); 406 RegisterFunction<PlayAtMediaplayerFunction>();
406 RegisterFunction<SetPlaybackErrorMediaplayerFunction>(); 407 RegisterFunction<SetPlaybackErrorMediaplayerFunction>();
407 RegisterFunction<GetPlaylistMediaplayerFunction>(); 408 RegisterFunction<GetPlaylistMediaplayerFunction>();
408 RegisterFunction<TogglePlaylistPanelMediaplayerFunction>(); 409 RegisterFunction<TogglePlaylistPanelMediaplayerFunction>();
409 RegisterFunction<ToggleFullscreenMediaplayerFunction>(); 410 RegisterFunction<ToggleFullscreenMediaplayerFunction>();
410 411
411 // InputMethod 412 // InputMethod
412 RegisterFunction<GetInputMethodFunction>(); 413 RegisterFunction<GetInputMethodFunction>();
413 414
415 // Accessibility
416 RegisterFunction<chromeos::accessibility::GetUpdateStatusFunction>();
417
414 #if defined(TOUCH_UI) 418 #if defined(TOUCH_UI)
415 // Input 419 // Input
416 RegisterFunction<SendHandwritingStrokeFunction>(); 420 RegisterFunction<SendHandwritingStrokeFunction>();
417 RegisterFunction<CancelHandwritingStrokesFunction>(); 421 RegisterFunction<CancelHandwritingStrokesFunction>();
418 #endif 422 #endif
419 #endif 423 #endif
420 424
421 // Websocket to TCP proxy. Currently noop on anything other than ChromeOS. 425 // Websocket to TCP proxy. Currently noop on anything other than ChromeOS.
422 RegisterFunction<WebSocketProxyPrivateGetPassportForTCPFunction>(); 426 RegisterFunction<WebSocketProxyPrivateGetPassportForTCPFunction>();
423 RegisterFunction<WebSocketProxyPrivateGetURLForTCPFunction>(); 427 RegisterFunction<WebSocketProxyPrivateGetURLForTCPFunction>();
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 return function; 686 return function;
683 } 687 }
684 688
685 // static 689 // static
686 void ExtensionFunctionDispatcher::SendAccessDenied( 690 void ExtensionFunctionDispatcher::SendAccessDenied(
687 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { 691 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) {
688 ipc_sender->Send(new ExtensionMsg_Response( 692 ipc_sender->Send(new ExtensionMsg_Response(
689 routing_id, request_id, false, std::string(), 693 routing_id, request_id, false, std::string(),
690 "Access to extension API denied.")); 694 "Access to extension API denied."));
691 } 695 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698