| 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_string_value_serializer.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/singleton.h" | 11 #include "base/memory/singleton.h" |
| 12 #include "base/process_util.h" | 12 #include "base/process_util.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 15 #include "chrome/browser/accessibility/accessibility_extension_api.h" | 15 #include "chrome/browser/accessibility/accessibility_extension_api.h" |
| 16 #include "chrome/browser/bookmarks/bookmark_extension_api.h" | 16 #include "chrome/browser/bookmarks/bookmark_extension_api.h" |
| 17 #include "chrome/browser/bookmarks/bookmark_manager_extension_api.h" | 17 #include "chrome/browser/bookmarks/bookmark_manager_extension_api.h" |
| 18 #include "chrome/browser/download/download_extension_api.h" | 18 #include "chrome/browser/download/download_extension_api.h" |
| 19 #include "chrome/browser/extensions/api/app/app_api.h" | 19 #include "chrome/browser/extensions/api/app/app_api.h" |
| (...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 774 return function; | 774 return function; |
| 775 } | 775 } |
| 776 | 776 |
| 777 // static | 777 // static |
| 778 void ExtensionFunctionDispatcher::SendAccessDenied( | 778 void ExtensionFunctionDispatcher::SendAccessDenied( |
| 779 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { | 779 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { |
| 780 ipc_sender->Send(new ExtensionMsg_Response( | 780 ipc_sender->Send(new ExtensionMsg_Response( |
| 781 routing_id, request_id, false, std::string(), | 781 routing_id, request_id, false, std::string(), |
| 782 "Access to extension API denied.")); | 782 "Access to extension API denied.")); |
| 783 } | 783 } |
| OLD | NEW |