| 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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 | 357 |
| 358 // Websocket to TCP proxy. Currently noop on anything other than ChromeOS. | 358 // Websocket to TCP proxy. Currently noop on anything other than ChromeOS. |
| 359 RegisterFunction<WebSocketProxyPrivateGetPassportForTCPFunction>(); | 359 RegisterFunction<WebSocketProxyPrivateGetPassportForTCPFunction>(); |
| 360 | 360 |
| 361 // Debugger | 361 // Debugger |
| 362 RegisterFunction<AttachDebuggerFunction>(); | 362 RegisterFunction<AttachDebuggerFunction>(); |
| 363 RegisterFunction<DetachDebuggerFunction>(); | 363 RegisterFunction<DetachDebuggerFunction>(); |
| 364 RegisterFunction<SendRequestDebuggerFunction>(); | 364 RegisterFunction<SendRequestDebuggerFunction>(); |
| 365 | 365 |
| 366 // Content settings. | 366 // Content settings. |
| 367 RegisterFunction<GetResourceIdentifiersFunction>(); |
| 367 RegisterFunction<ClearContentSettingsFunction>(); | 368 RegisterFunction<ClearContentSettingsFunction>(); |
| 368 RegisterFunction<GetContentSettingFunction>(); | 369 RegisterFunction<GetContentSettingFunction>(); |
| 369 RegisterFunction<SetContentSettingFunction>(); | 370 RegisterFunction<SetContentSettingFunction>(); |
| 370 } | 371 } |
| 371 | 372 |
| 372 void FactoryRegistry::GetAllNames(std::vector<std::string>* names) { | 373 void FactoryRegistry::GetAllNames(std::vector<std::string>* names) { |
| 373 for (FactoryMap::iterator iter = factories_.begin(); | 374 for (FactoryMap::iterator iter = factories_.begin(); |
| 374 iter != factories_.end(); ++iter) { | 375 iter != factories_.end(); ++iter) { |
| 375 names->push_back(iter->first); | 376 names->push_back(iter->first); |
| 376 } | 377 } |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 return function; | 580 return function; |
| 580 } | 581 } |
| 581 | 582 |
| 582 // static | 583 // static |
| 583 void ExtensionFunctionDispatcher::SendAccessDenied( | 584 void ExtensionFunctionDispatcher::SendAccessDenied( |
| 584 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { | 585 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { |
| 585 ipc_sender->Send(new ExtensionMsg_Response( | 586 ipc_sender->Send(new ExtensionMsg_Response( |
| 586 routing_id, request_id, false, std::string(), | 587 routing_id, request_id, false, std::string(), |
| 587 "Access to extension API denied.")); | 588 "Access to extension API denied.")); |
| 588 } | 589 } |
| OLD | NEW |