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