| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 #include "chrome/browser/history/history_extension_api.h" | 56 #include "chrome/browser/history/history_extension_api.h" |
| 57 #include "chrome/browser/history/top_sites_extension_api.h" | 57 #include "chrome/browser/history/top_sites_extension_api.h" |
| 58 #include "chrome/browser/infobars/infobar_extension_api.h" | 58 #include "chrome/browser/infobars/infobar_extension_api.h" |
| 59 #include "chrome/browser/profiles/profile.h" | 59 #include "chrome/browser/profiles/profile.h" |
| 60 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" | 60 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" |
| 61 #include "chrome/browser/rlz/rlz_extension_api.h" | 61 #include "chrome/browser/rlz/rlz_extension_api.h" |
| 62 #include "chrome/browser/ui/browser_list.h" | 62 #include "chrome/browser/ui/browser_list.h" |
| 63 #include "chrome/browser/ui/browser_window.h" | 63 #include "chrome/browser/ui/browser_window.h" |
| 64 #include "chrome/common/extensions/extension_messages.h" | 64 #include "chrome/common/extensions/extension_messages.h" |
| 65 #include "chrome/common/url_constants.h" | 65 #include "chrome/common/url_constants.h" |
| 66 #include "content/browser/renderer_host/render_process_host.h" |
| 66 #include "content/browser/renderer_host/render_view_host.h" | 67 #include "content/browser/renderer_host/render_view_host.h" |
| 67 #include "ipc/ipc_message.h" | 68 #include "ipc/ipc_message.h" |
| 68 #include "ipc/ipc_message_macros.h" | 69 #include "ipc/ipc_message_macros.h" |
| 69 #include "third_party/skia/include/core/SkBitmap.h" | 70 #include "third_party/skia/include/core/SkBitmap.h" |
| 70 | 71 |
| 71 #if defined(TOOLKIT_VIEWS) | 72 #if defined(TOOLKIT_VIEWS) |
| 72 #include "chrome/browser/extensions/extension_input_api.h" | 73 #include "chrome/browser/extensions/extension_input_api.h" |
| 73 #endif | 74 #endif |
| 74 | 75 |
| 75 #if defined(OS_CHROMEOS) && defined(TOUCH_UI) | 76 #if defined(OS_CHROMEOS) && defined(TOUCH_UI) |
| (...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 690 return function; | 691 return function; |
| 691 } | 692 } |
| 692 | 693 |
| 693 // static | 694 // static |
| 694 void ExtensionFunctionDispatcher::SendAccessDenied( | 695 void ExtensionFunctionDispatcher::SendAccessDenied( |
| 695 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { | 696 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { |
| 696 ipc_sender->Send(new ExtensionMsg_Response( | 697 ipc_sender->Send(new ExtensionMsg_Response( |
| 697 routing_id, request_id, false, std::string(), | 698 routing_id, request_id, false, std::string(), |
| 698 "Access to extension API denied.")); | 699 "Access to extension API denied.")); |
| 699 } | 700 } |
| OLD | NEW |