| Index: extensions/renderer/programmatic_script_injector.cc
|
| diff --git a/extensions/renderer/programmatic_script_injector.cc b/extensions/renderer/programmatic_script_injector.cc
|
| index 9cd4f9f3a37bb7ee05e8284ac84d278fdd191b64..00fd3ceba63c6092d1afc0f7ac351f2dce24209a 100644
|
| --- a/extensions/renderer/programmatic_script_injector.cc
|
| +++ b/extensions/renderer/programmatic_script_injector.cc
|
| @@ -18,6 +18,7 @@
|
| #include "extensions/renderer/injection_host.h"
|
| #include "extensions/renderer/renderer_extension_registry.h"
|
| #include "extensions/renderer/script_context.h"
|
| +#include "extensions/renderer/scripts_run_info.h"
|
| #include "third_party/WebKit/public/platform/WebString.h"
|
| #include "third_party/WebKit/public/web/WebDocument.h"
|
| #include "third_party/WebKit/public/web/WebLocalFrame.h"
|
| @@ -59,12 +60,14 @@ bool ProgrammaticScriptInjector::ExpectsResults() const {
|
| }
|
|
|
| bool ProgrammaticScriptInjector::ShouldInjectJs(
|
| - UserScript::RunLocation run_location) const {
|
| + UserScript::RunLocation run_location,
|
| + const std::set<GURL>& injected_scripts) const {
|
| return GetRunLocation() == run_location && params_->is_javascript;
|
| }
|
|
|
| bool ProgrammaticScriptInjector::ShouldInjectCss(
|
| - UserScript::RunLocation run_location) const {
|
| + UserScript::RunLocation run_location,
|
| + const std::set<GURL>& injected_scripts) const {
|
| return GetRunLocation() == run_location && !params_->is_javascript;
|
| }
|
|
|
| @@ -94,7 +97,8 @@ PermissionsData::AccessType ProgrammaticScriptInjector::CanExecuteOnFrame(
|
| }
|
|
|
| std::vector<blink::WebScriptSource> ProgrammaticScriptInjector::GetJsSources(
|
| - UserScript::RunLocation run_location) const {
|
| + UserScript::RunLocation run_location,
|
| + std::set<GURL>& injected_scripts) const {
|
| DCHECK_EQ(GetRunLocation(), run_location);
|
| DCHECK(params_->is_javascript);
|
|
|
| @@ -105,7 +109,8 @@ std::vector<blink::WebScriptSource> ProgrammaticScriptInjector::GetJsSources(
|
| }
|
|
|
| std::vector<blink::WebString> ProgrammaticScriptInjector::GetCssSources(
|
| - UserScript::RunLocation run_location) const {
|
| + UserScript::RunLocation run_location,
|
| + std::set<GURL>& injected_scripts) const {
|
| DCHECK_EQ(GetRunLocation(), run_location);
|
| DCHECK(!params_->is_javascript);
|
|
|
| @@ -115,8 +120,9 @@ std::vector<blink::WebString> ProgrammaticScriptInjector::GetCssSources(
|
|
|
| void ProgrammaticScriptInjector::GetRunInfo(
|
| ScriptsRunInfo* scripts_run_info,
|
| - UserScript::RunLocation run_location) const {
|
| -}
|
| + UserScript::RunLocation run_location,
|
| + bool js_injection_completed,
|
| + bool should_inject_css) const {}
|
|
|
| void ProgrammaticScriptInjector::OnInjectionComplete(
|
| std::unique_ptr<base::Value> execution_result,
|
|
|