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_injector.h" | 5 #include "extensions/renderer/user_script_injector.h" |
6 | 6 |
7 #include <tuple> | 7 #include <tuple> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 scripts_run_info->executing_scripts[host_id_.id()].insert( | 245 scripts_run_info->executing_scripts[host_id_.id()].insert( |
246 iter->url().path()); | 246 iter->url().path()); |
247 } | 247 } |
248 } | 248 } |
249 | 249 |
250 if (ShouldInjectCss(run_location)) | 250 if (ShouldInjectCss(run_location)) |
251 scripts_run_info->num_css += script_->css_scripts().size(); | 251 scripts_run_info->num_css += script_->css_scripts().size(); |
252 } | 252 } |
253 | 253 |
254 void UserScriptInjector::OnInjectionComplete( | 254 void UserScriptInjector::OnInjectionComplete( |
255 scoped_ptr<base::Value> execution_result, | 255 std::unique_ptr<base::Value> execution_result, |
256 UserScript::RunLocation run_location, | 256 UserScript::RunLocation run_location, |
257 content::RenderFrame* render_frame) { | 257 content::RenderFrame* render_frame) {} |
258 } | |
259 | 258 |
260 void UserScriptInjector::OnWillNotInject(InjectFailureReason reason, | 259 void UserScriptInjector::OnWillNotInject(InjectFailureReason reason, |
261 content::RenderFrame* render_frame) { | 260 content::RenderFrame* render_frame) { |
262 } | 261 } |
263 | 262 |
264 } // namespace extensions | 263 } // namespace extensions |
OLD | NEW |