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/script_executor.h" | 5 #include "chrome/browser/extensions/script_executor.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/pickle.h" | 9 #include "base/pickle.h" |
10 #include "chrome/common/extensions/extension_messages.h" | |
11 #include "content/public/browser/render_view_host.h" | 10 #include "content/public/browser/render_view_host.h" |
12 #include "content/public/browser/web_contents.h" | 11 #include "content/public/browser/web_contents.h" |
13 #include "content/public/browser/web_contents_observer.h" | 12 #include "content/public/browser/web_contents_observer.h" |
| 13 #include "extensions/common/extension_messages.h" |
14 #include "ipc/ipc_message.h" | 14 #include "ipc/ipc_message.h" |
15 #include "ipc/ipc_message_macros.h" | 15 #include "ipc/ipc_message_macros.h" |
16 | 16 |
17 namespace base { | 17 namespace base { |
18 class ListValue; | 18 class ListValue; |
19 } // namespace base | 19 } // namespace base |
20 | 20 |
21 namespace extensions { | 21 namespace extensions { |
22 | 22 |
23 namespace { | 23 namespace { |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 params.is_web_view = (process_type == WEB_VIEW_PROCESS); | 131 params.is_web_view = (process_type == WEB_VIEW_PROCESS); |
132 params.file_url = file_url; | 132 params.file_url = file_url; |
133 params.wants_result = (result_type == JSON_SERIALIZED_RESULT); | 133 params.wants_result = (result_type == JSON_SERIALIZED_RESULT); |
134 params.user_gesture = user_gesture; | 134 params.user_gesture = user_gesture; |
135 | 135 |
136 // Handler handles IPCs and deletes itself on completion. | 136 // Handler handles IPCs and deletes itself on completion. |
137 new Handler(script_observers_, web_contents_, params, callback); | 137 new Handler(script_observers_, web_contents_, params, callback); |
138 } | 138 } |
139 | 139 |
140 } // namespace extensions | 140 } // namespace extensions |
OLD | NEW |