| 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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 RegisterFunction<CancelFileDialogFunction>(); | 340 RegisterFunction<CancelFileDialogFunction>(); |
| 341 RegisterFunction<ExecuteTasksFileBrowserFunction>(); | 341 RegisterFunction<ExecuteTasksFileBrowserFunction>(); |
| 342 RegisterFunction<FileDialogStringsFunction>(); | 342 RegisterFunction<FileDialogStringsFunction>(); |
| 343 RegisterFunction<GetFileTasksFileBrowserFunction>(); | 343 RegisterFunction<GetFileTasksFileBrowserFunction>(); |
| 344 RegisterFunction<GetVolumeMetadataFunction>(); | 344 RegisterFunction<GetVolumeMetadataFunction>(); |
| 345 RegisterFunction<RequestLocalFileSystemFunction>(); | 345 RegisterFunction<RequestLocalFileSystemFunction>(); |
| 346 RegisterFunction<AddFileWatchBrowserFunction>(); | 346 RegisterFunction<AddFileWatchBrowserFunction>(); |
| 347 RegisterFunction<RemoveFileWatchBrowserFunction>(); | 347 RegisterFunction<RemoveFileWatchBrowserFunction>(); |
| 348 RegisterFunction<SelectFileFunction>(); | 348 RegisterFunction<SelectFileFunction>(); |
| 349 RegisterFunction<SelectFilesFunction>(); | 349 RegisterFunction<SelectFilesFunction>(); |
| 350 RegisterFunction<UnmountVolumeFunction>(); | 350 RegisterFunction<AddMountFunction>(); |
| 351 RegisterFunction<RemoveMountFunction>(); |
| 352 RegisterFunction<GetMountPointsFunction>(); |
| 351 RegisterFunction<ViewFilesFunction>(); | 353 RegisterFunction<ViewFilesFunction>(); |
| 352 | 354 |
| 353 // Mediaplayer | 355 // Mediaplayer |
| 354 RegisterFunction<PlayAtMediaplayerFunction>(); | 356 RegisterFunction<PlayAtMediaplayerFunction>(); |
| 355 RegisterFunction<SetPlaybackErrorMediaplayerFunction>(); | 357 RegisterFunction<SetPlaybackErrorMediaplayerFunction>(); |
| 356 RegisterFunction<GetPlaylistMediaplayerFunction>(); | 358 RegisterFunction<GetPlaylistMediaplayerFunction>(); |
| 357 RegisterFunction<TogglePlaylistPanelMediaplayerFunction>(); | 359 RegisterFunction<TogglePlaylistPanelMediaplayerFunction>(); |
| 358 RegisterFunction<ToggleFullscreenMediaplayerFunction>(); | 360 RegisterFunction<ToggleFullscreenMediaplayerFunction>(); |
| 359 | 361 |
| 360 // InputMethod | 362 // InputMethod |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 599 return function; | 601 return function; |
| 600 } | 602 } |
| 601 | 603 |
| 602 // static | 604 // static |
| 603 void ExtensionFunctionDispatcher::SendAccessDenied( | 605 void ExtensionFunctionDispatcher::SendAccessDenied( |
| 604 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { | 606 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { |
| 605 ipc_sender->Send(new ExtensionMsg_Response( | 607 ipc_sender->Send(new ExtensionMsg_Response( |
| 606 routing_id, request_id, false, std::string(), | 608 routing_id, request_id, false, std::string(), |
| 607 "Access to extension API denied.")); | 609 "Access to extension API denied.")); |
| 608 } | 610 } |
| OLD | NEW |