| 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 #ifndef EXTENSIONS_RENDERER_USER_SCRIPT_INJECTOR_H_ | 5 #ifndef EXTENSIONS_RENDERER_USER_SCRIPT_INJECTOR_H_ |
| 6 #define EXTENSIONS_RENDERER_USER_SCRIPT_INJECTOR_H_ | 6 #define EXTENSIONS_RENDERER_USER_SCRIPT_INJECTOR_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 bool ExpectsResults() const override; | 43 bool ExpectsResults() const override; |
| 44 bool ShouldInjectJs( | 44 bool ShouldInjectJs( |
| 45 UserScript::RunLocation run_location, | 45 UserScript::RunLocation run_location, |
| 46 const std::set<std::string>& executing_scripts) const override; | 46 const std::set<std::string>& executing_scripts) const override; |
| 47 bool ShouldInjectCss( | 47 bool ShouldInjectCss( |
| 48 UserScript::RunLocation run_location, | 48 UserScript::RunLocation run_location, |
| 49 const std::set<std::string>& injected_stylesheets) const override; | 49 const std::set<std::string>& injected_stylesheets) const override; |
| 50 PermissionsData::AccessType CanExecuteOnFrame( | 50 PermissionsData::AccessType CanExecuteOnFrame( |
| 51 const InjectionHost* injection_host, | 51 const InjectionHost* injection_host, |
| 52 blink::WebLocalFrame* web_frame, | 52 blink::WebLocalFrame* web_frame, |
| 53 int tab_id) const override; | 53 int tab_id) override; |
| 54 std::vector<blink::WebScriptSource> GetJsSources( | 54 std::vector<blink::WebScriptSource> GetJsSources( |
| 55 UserScript::RunLocation run_location, | 55 UserScript::RunLocation run_location, |
| 56 std::set<std::string>* executing_scripts, | 56 std::set<std::string>* executing_scripts, |
| 57 size_t* num_injected_js_scripts) const override; | 57 size_t* num_injected_js_scripts) const override; |
| 58 std::vector<blink::WebString> GetCssSources( | 58 std::vector<blink::WebString> GetCssSources( |
| 59 UserScript::RunLocation run_location, | 59 UserScript::RunLocation run_location, |
| 60 std::set<std::string>* injected_stylesheets, | 60 std::set<std::string>* injected_stylesheets, |
| 61 size_t* num_injected_stylesheets) const override; | 61 size_t* num_injected_stylesheets) const override; |
| 62 void OnInjectionComplete(std::unique_ptr<base::Value> execution_result, | 62 void OnInjectionComplete(std::unique_ptr<base::Value> execution_result, |
| 63 UserScript::RunLocation run_location, | 63 UserScript::RunLocation run_location, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 88 | 88 |
| 89 ScopedObserver<UserScriptSet, UserScriptSet::Observer> | 89 ScopedObserver<UserScriptSet, UserScriptSet::Observer> |
| 90 user_script_set_observer_; | 90 user_script_set_observer_; |
| 91 | 91 |
| 92 DISALLOW_COPY_AND_ASSIGN(UserScriptInjector); | 92 DISALLOW_COPY_AND_ASSIGN(UserScriptInjector); |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 } // namespace extensions | 95 } // namespace extensions |
| 96 | 96 |
| 97 #endif // EXTENSIONS_RENDERER_USER_SCRIPT_INJECTOR_H_ | 97 #endif // EXTENSIONS_RENDERER_USER_SCRIPT_INJECTOR_H_ |
| OLD | NEW |