| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/json/json_string_value_serializer.h" | 9 #include "base/json/json_string_value_serializer.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 RegisterFunction<extensions::ClearSettingsFunction>(); | 449 RegisterFunction<extensions::ClearSettingsFunction>(); |
| 450 RegisterFunction<extensions::GetBytesInUseSettingsFunction>(); | 450 RegisterFunction<extensions::GetBytesInUseSettingsFunction>(); |
| 451 | 451 |
| 452 // Content settings. | 452 // Content settings. |
| 453 RegisterFunction<GetResourceIdentifiersFunction>(); | 453 RegisterFunction<GetResourceIdentifiersFunction>(); |
| 454 RegisterFunction<ClearContentSettingsFunction>(); | 454 RegisterFunction<ClearContentSettingsFunction>(); |
| 455 RegisterFunction<GetContentSettingFunction>(); | 455 RegisterFunction<GetContentSettingFunction>(); |
| 456 RegisterFunction<SetContentSettingFunction>(); | 456 RegisterFunction<SetContentSettingFunction>(); |
| 457 | 457 |
| 458 // Font settings. | 458 // Font settings. |
| 459 RegisterFunction<GetFontListFunction>(); |
| 459 RegisterFunction<GetFontNameFunction>(); | 460 RegisterFunction<GetFontNameFunction>(); |
| 460 RegisterFunction<SetFontNameFunction>(); | 461 RegisterFunction<SetFontNameFunction>(); |
| 461 | 462 |
| 462 // ChromeAuth settings. | 463 // ChromeAuth settings. |
| 463 RegisterFunction<SetCloudPrintCredentialsFunction>(); | 464 RegisterFunction<SetCloudPrintCredentialsFunction>(); |
| 464 | 465 |
| 465 // Experimental App API. | 466 // Experimental App API. |
| 466 RegisterFunction<AppNotifyFunction>(); | 467 RegisterFunction<AppNotifyFunction>(); |
| 467 RegisterFunction<AppClearAllNotificationsFunction>(); | 468 RegisterFunction<AppClearAllNotificationsFunction>(); |
| 468 | 469 |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 787 return function; | 788 return function; |
| 788 } | 789 } |
| 789 | 790 |
| 790 // static | 791 // static |
| 791 void ExtensionFunctionDispatcher::SendAccessDenied( | 792 void ExtensionFunctionDispatcher::SendAccessDenied( |
| 792 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { | 793 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { |
| 793 ipc_sender->Send(new ExtensionMsg_Response( | 794 ipc_sender->Send(new ExtensionMsg_Response( |
| 794 routing_id, request_id, false, std::string(), | 795 routing_id, request_id, false, std::string(), |
| 795 "Access to extension API denied.")); | 796 "Access to extension API denied.")); |
| 796 } | 797 } |
| OLD | NEW |