Chromium Code Reviews| 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>(); | |
|
zel
2011/07/22 23:51:23
GetMountPointsFunction is missing
| |
| 351 RegisterFunction<ViewFilesFunction>(); | 352 RegisterFunction<ViewFilesFunction>(); |
| 352 | 353 |
| 353 // Mediaplayer | 354 // Mediaplayer |
| 354 RegisterFunction<PlayAtMediaplayerFunction>(); | 355 RegisterFunction<PlayAtMediaplayerFunction>(); |
| 355 RegisterFunction<SetPlaybackErrorMediaplayerFunction>(); | 356 RegisterFunction<SetPlaybackErrorMediaplayerFunction>(); |
| 356 RegisterFunction<GetPlaylistMediaplayerFunction>(); | 357 RegisterFunction<GetPlaylistMediaplayerFunction>(); |
| 357 RegisterFunction<TogglePlaylistPanelMediaplayerFunction>(); | 358 RegisterFunction<TogglePlaylistPanelMediaplayerFunction>(); |
| 358 RegisterFunction<ToggleFullscreenMediaplayerFunction>(); | 359 RegisterFunction<ToggleFullscreenMediaplayerFunction>(); |
| 359 | 360 |
| 360 // InputMethod | 361 // InputMethod |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 599 return function; | 600 return function; |
| 600 } | 601 } |
| 601 | 602 |
| 602 // static | 603 // static |
| 603 void ExtensionFunctionDispatcher::SendAccessDenied( | 604 void ExtensionFunctionDispatcher::SendAccessDenied( |
| 604 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { | 605 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { |
| 605 ipc_sender->Send(new ExtensionMsg_Response( | 606 ipc_sender->Send(new ExtensionMsg_Response( |
| 606 routing_id, request_id, false, std::string(), | 607 routing_id, request_id, false, std::string(), |
| 607 "Access to extension API denied.")); | 608 "Access to extension API denied.")); |
| 608 } | 609 } |
| OLD | NEW |