| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" | 63 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" |
| 64 #include "chrome/browser/rlz/rlz_extension_api.h" | 64 #include "chrome/browser/rlz/rlz_extension_api.h" |
| 65 #include "chrome/browser/speech/speech_input_extension_api.h" | 65 #include "chrome/browser/speech/speech_input_extension_api.h" |
| 66 #include "chrome/browser/ui/browser_list.h" | 66 #include "chrome/browser/ui/browser_list.h" |
| 67 #include "chrome/browser/ui/browser_window.h" | 67 #include "chrome/browser/ui/browser_window.h" |
| 68 #include "chrome/common/extensions/api/extension_api.h" | 68 #include "chrome/common/extensions/api/extension_api.h" |
| 69 #include "chrome/common/extensions/extension_messages.h" | 69 #include "chrome/common/extensions/extension_messages.h" |
| 70 #include "chrome/common/extensions/extension_set.h" | 70 #include "chrome/common/extensions/extension_set.h" |
| 71 #include "chrome/common/url_constants.h" | 71 #include "chrome/common/url_constants.h" |
| 72 #include "content/browser/renderer_host/render_view_host.h" | 72 #include "content/browser/renderer_host/render_view_host.h" |
| 73 #include "content/public/browser/render_process_host.h" |
| 73 #include "ipc/ipc_message.h" | 74 #include "ipc/ipc_message.h" |
| 74 #include "ipc/ipc_message_macros.h" | 75 #include "ipc/ipc_message_macros.h" |
| 75 #include "third_party/skia/include/core/SkBitmap.h" | 76 #include "third_party/skia/include/core/SkBitmap.h" |
| 76 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" | 77 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" |
| 77 | 78 |
| 78 #if defined(TOOLKIT_VIEWS) | 79 #if defined(TOOLKIT_VIEWS) |
| 79 #include "chrome/browser/extensions/extension_input_api.h" | 80 #include "chrome/browser/extensions/extension_input_api.h" |
| 80 #endif | 81 #endif |
| 81 | 82 |
| 82 #if defined(OS_CHROMEOS) && defined(USE_VIRTUAL_KEYBOARD) | 83 #if defined(OS_CHROMEOS) && defined(USE_VIRTUAL_KEYBOARD) |
| (...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 759 return function; | 760 return function; |
| 760 } | 761 } |
| 761 | 762 |
| 762 // static | 763 // static |
| 763 void ExtensionFunctionDispatcher::SendAccessDenied( | 764 void ExtensionFunctionDispatcher::SendAccessDenied( |
| 764 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { | 765 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { |
| 765 ipc_sender->Send(new ExtensionMsg_Response( | 766 ipc_sender->Send(new ExtensionMsg_Response( |
| 766 routing_id, request_id, false, std::string(), | 767 routing_id, request_id, false, std::string(), |
| 767 "Access to extension API denied.")); | 768 "Access to extension API denied.")); |
| 768 } | 769 } |
| OLD | NEW |