| 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_value_serializer.h" | 9 #include "base/json/json_value_serializer.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 // Debugger | 436 // Debugger |
| 437 RegisterFunction<AttachDebuggerFunction>(); | 437 RegisterFunction<AttachDebuggerFunction>(); |
| 438 RegisterFunction<DetachDebuggerFunction>(); | 438 RegisterFunction<DetachDebuggerFunction>(); |
| 439 RegisterFunction<SendCommandDebuggerFunction>(); | 439 RegisterFunction<SendCommandDebuggerFunction>(); |
| 440 | 440 |
| 441 // Settings | 441 // Settings |
| 442 RegisterFunction<extensions::GetSettingsFunction>(); | 442 RegisterFunction<extensions::GetSettingsFunction>(); |
| 443 RegisterFunction<extensions::SetSettingsFunction>(); | 443 RegisterFunction<extensions::SetSettingsFunction>(); |
| 444 RegisterFunction<extensions::RemoveSettingsFunction>(); | 444 RegisterFunction<extensions::RemoveSettingsFunction>(); |
| 445 RegisterFunction<extensions::ClearSettingsFunction>(); | 445 RegisterFunction<extensions::ClearSettingsFunction>(); |
| 446 RegisterFunction<extensions::GetBytesInUseSettingsFunction>(); |
| 446 | 447 |
| 447 // Content settings. | 448 // Content settings. |
| 448 RegisterFunction<GetResourceIdentifiersFunction>(); | 449 RegisterFunction<GetResourceIdentifiersFunction>(); |
| 449 RegisterFunction<ClearContentSettingsFunction>(); | 450 RegisterFunction<ClearContentSettingsFunction>(); |
| 450 RegisterFunction<GetContentSettingFunction>(); | 451 RegisterFunction<GetContentSettingFunction>(); |
| 451 RegisterFunction<SetContentSettingFunction>(); | 452 RegisterFunction<SetContentSettingFunction>(); |
| 452 | 453 |
| 453 // ChromeAuth settings. | 454 // ChromeAuth settings. |
| 454 RegisterFunction<SetCloudPrintCredentialsFunction>(); | 455 RegisterFunction<SetCloudPrintCredentialsFunction>(); |
| 455 | 456 |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 758 return function; | 759 return function; |
| 759 } | 760 } |
| 760 | 761 |
| 761 // static | 762 // static |
| 762 void ExtensionFunctionDispatcher::SendAccessDenied( | 763 void ExtensionFunctionDispatcher::SendAccessDenied( |
| 763 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { | 764 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { |
| 764 ipc_sender->Send(new ExtensionMsg_Response( | 765 ipc_sender->Send(new ExtensionMsg_Response( |
| 765 routing_id, request_id, false, std::string(), | 766 routing_id, request_id, false, std::string(), |
| 766 "Access to extension API denied.")); | 767 "Access to extension API denied.")); |
| 767 } | 768 } |
| OLD | NEW |