| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 #include "chrome/browser/profiles/profile.h" | 60 #include "chrome/browser/profiles/profile.h" |
| 61 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" | 61 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" |
| 62 #include "chrome/browser/rlz/rlz_extension_api.h" | 62 #include "chrome/browser/rlz/rlz_extension_api.h" |
| 63 #include "chrome/browser/speech/speech_input_extension_api.h" | 63 #include "chrome/browser/speech/speech_input_extension_api.h" |
| 64 #include "chrome/browser/ui/browser_list.h" | 64 #include "chrome/browser/ui/browser_list.h" |
| 65 #include "chrome/browser/ui/browser_window.h" | 65 #include "chrome/browser/ui/browser_window.h" |
| 66 #include "chrome/common/extensions/api/extension_api.h" | 66 #include "chrome/common/extensions/api/extension_api.h" |
| 67 #include "chrome/common/extensions/extension_messages.h" | 67 #include "chrome/common/extensions/extension_messages.h" |
| 68 #include "chrome/common/url_constants.h" | 68 #include "chrome/common/url_constants.h" |
| 69 #include "content/browser/renderer_host/render_view_host.h" | 69 #include "content/browser/renderer_host/render_view_host.h" |
| 70 #include "content/public/browser/render_process_host.h" |
| 70 #include "ipc/ipc_message.h" | 71 #include "ipc/ipc_message.h" |
| 71 #include "ipc/ipc_message_macros.h" | 72 #include "ipc/ipc_message_macros.h" |
| 72 #include "third_party/skia/include/core/SkBitmap.h" | 73 #include "third_party/skia/include/core/SkBitmap.h" |
| 73 | 74 |
| 74 #if defined(TOOLKIT_VIEWS) | 75 #if defined(TOOLKIT_VIEWS) |
| 75 #include "chrome/browser/extensions/extension_input_api.h" | 76 #include "chrome/browser/extensions/extension_input_api.h" |
| 76 #endif | 77 #endif |
| 77 | 78 |
| 78 #if defined(OS_CHROMEOS) && defined(USE_VIRTUAL_KEYBOARD) | 79 #if defined(OS_CHROMEOS) && defined(USE_VIRTUAL_KEYBOARD) |
| 79 #include "chrome/browser/extensions/extension_input_ui_api.h" | 80 #include "chrome/browser/extensions/extension_input_ui_api.h" |
| (...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 688 return function; | 689 return function; |
| 689 } | 690 } |
| 690 | 691 |
| 691 // static | 692 // static |
| 692 void ExtensionFunctionDispatcher::SendAccessDenied( | 693 void ExtensionFunctionDispatcher::SendAccessDenied( |
| 693 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { | 694 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { |
| 694 ipc_sender->Send(new ExtensionMsg_Response( | 695 ipc_sender->Send(new ExtensionMsg_Response( |
| 695 routing_id, request_id, false, std::string(), | 696 routing_id, request_id, false, std::string(), |
| 696 "Access to extension API denied.")); | 697 "Access to extension API denied.")); |
| 697 } | 698 } |
| OLD | NEW |