OLD | NEW |
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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 RegisterFunction<GetFileTasksFileBrowserFunction>(); | 361 RegisterFunction<GetFileTasksFileBrowserFunction>(); |
362 RegisterFunction<GetVolumeMetadataFunction>(); | 362 RegisterFunction<GetVolumeMetadataFunction>(); |
363 RegisterFunction<RequestLocalFileSystemFunction>(); | 363 RegisterFunction<RequestLocalFileSystemFunction>(); |
364 RegisterFunction<AddFileWatchBrowserFunction>(); | 364 RegisterFunction<AddFileWatchBrowserFunction>(); |
365 RegisterFunction<RemoveFileWatchBrowserFunction>(); | 365 RegisterFunction<RemoveFileWatchBrowserFunction>(); |
366 RegisterFunction<SelectFileFunction>(); | 366 RegisterFunction<SelectFileFunction>(); |
367 RegisterFunction<SelectFilesFunction>(); | 367 RegisterFunction<SelectFilesFunction>(); |
368 RegisterFunction<AddMountFunction>(); | 368 RegisterFunction<AddMountFunction>(); |
369 RegisterFunction<RemoveMountFunction>(); | 369 RegisterFunction<RemoveMountFunction>(); |
370 RegisterFunction<GetMountPointsFunction>(); | 370 RegisterFunction<GetMountPointsFunction>(); |
371 RegisterFunction<FormatDeviceFunction>(); | |
372 RegisterFunction<ViewFilesFunction>(); | 371 RegisterFunction<ViewFilesFunction>(); |
373 | 372 |
374 // Mediaplayer | 373 // Mediaplayer |
375 RegisterFunction<PlayAtMediaplayerFunction>(); | 374 RegisterFunction<PlayAtMediaplayerFunction>(); |
376 RegisterFunction<SetPlaybackErrorMediaplayerFunction>(); | 375 RegisterFunction<SetPlaybackErrorMediaplayerFunction>(); |
377 RegisterFunction<GetPlaylistMediaplayerFunction>(); | 376 RegisterFunction<GetPlaylistMediaplayerFunction>(); |
378 RegisterFunction<TogglePlaylistPanelMediaplayerFunction>(); | 377 RegisterFunction<TogglePlaylistPanelMediaplayerFunction>(); |
379 RegisterFunction<ToggleFullscreenMediaplayerFunction>(); | 378 RegisterFunction<ToggleFullscreenMediaplayerFunction>(); |
380 | 379 |
381 // InputMethod | 380 // InputMethod |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 return function; | 626 return function; |
628 } | 627 } |
629 | 628 |
630 // static | 629 // static |
631 void ExtensionFunctionDispatcher::SendAccessDenied( | 630 void ExtensionFunctionDispatcher::SendAccessDenied( |
632 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { | 631 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { |
633 ipc_sender->Send(new ExtensionMsg_Response( | 632 ipc_sender->Send(new ExtensionMsg_Response( |
634 routing_id, request_id, false, std::string(), | 633 routing_id, request_id, false, std::string(), |
635 "Access to extension API denied.")); | 634 "Access to extension API denied.")); |
636 } | 635 } |
OLD | NEW |