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/renderer/user_script_set.h" | 5 #include "extensions/renderer/user_script_set.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <utility> | 9 #include <utility> |
8 | 10 |
9 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
10 #include "content/public/common/url_constants.h" | 12 #include "content/public/common/url_constants.h" |
11 #include "content/public/renderer/render_frame.h" | 13 #include "content/public/renderer/render_frame.h" |
12 #include "content/public/renderer/render_thread.h" | 14 #include "content/public/renderer/render_thread.h" |
13 #include "extensions/common/extension.h" | 15 #include "extensions/common/extension.h" |
14 #include "extensions/common/extensions_client.h" | 16 #include "extensions/common/extensions_client.h" |
15 #include "extensions/common/permissions/permissions_data.h" | 17 #include "extensions/common/permissions/permissions_data.h" |
16 #include "extensions/renderer/extension_injection_host.h" | 18 #include "extensions/renderer/extension_injection_host.h" |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 !script->js_scripts().empty() && script->run_location() == run_location; | 226 !script->js_scripts().empty() && script->run_location() == run_location; |
225 if (inject_css || inject_js) { | 227 if (inject_css || inject_js) { |
226 injection.reset(new ScriptInjection(std::move(injector), render_frame, | 228 injection.reset(new ScriptInjection(std::move(injector), render_frame, |
227 std::move(injection_host), | 229 std::move(injection_host), |
228 run_location)); | 230 run_location)); |
229 } | 231 } |
230 return injection; | 232 return injection; |
231 } | 233 } |
232 | 234 |
233 } // namespace extensions | 235 } // namespace extensions |
OLD | NEW |