| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "extensions/browser/script_executor.h" | 5 #include "extensions/browser/script_executor.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/macros.h" |
| 10 #include "base/pickle.h" | 11 #include "base/pickle.h" |
| 11 #include "content/public/browser/render_frame_host.h" | 12 #include "content/public/browser/render_frame_host.h" |
| 12 #include "content/public/browser/render_view_host.h" | 13 #include "content/public/browser/render_view_host.h" |
| 13 #include "content/public/browser/web_contents.h" | 14 #include "content/public/browser/web_contents.h" |
| 14 #include "content/public/browser/web_contents_observer.h" | 15 #include "content/public/browser/web_contents_observer.h" |
| 15 #include "extensions/browser/extension_registry.h" | 16 #include "extensions/browser/extension_registry.h" |
| 16 #include "extensions/browser/script_execution_observer.h" | 17 #include "extensions/browser/script_execution_observer.h" |
| 17 #include "extensions/common/extension_messages.h" | 18 #include "extensions/common/extension_messages.h" |
| 18 #include "ipc/ipc_message.h" | 19 #include "ipc/ipc_message.h" |
| 19 #include "ipc/ipc_message_macros.h" | 20 #include "ipc/ipc_message_macros.h" |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 params.webview_src = webview_src; | 229 params.webview_src = webview_src; |
| 229 params.file_url = file_url; | 230 params.file_url = file_url; |
| 230 params.wants_result = (result_type == JSON_SERIALIZED_RESULT); | 231 params.wants_result = (result_type == JSON_SERIALIZED_RESULT); |
| 231 params.user_gesture = user_gesture; | 232 params.user_gesture = user_gesture; |
| 232 | 233 |
| 233 // Handler handles IPCs and deletes itself on completion. | 234 // Handler handles IPCs and deletes itself on completion. |
| 234 new Handler(script_observers_, web_contents_, params, frame_scope, callback); | 235 new Handler(script_observers_, web_contents_, params, frame_scope, callback); |
| 235 } | 236 } |
| 236 | 237 |
| 237 } // namespace extensions | 238 } // namespace extensions |
| OLD | NEW |