| 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 IsUserGesture() const override; | 43 bool IsUserGesture() const override; |
| 44 bool ExpectsResults() const override; | 44 bool ExpectsResults() const override; |
| 45 bool ShouldInjectJs(UserScript::RunLocation run_location) const override; | 45 bool ShouldInjectJs(UserScript::RunLocation run_location) const override; |
| 46 bool ShouldInjectCss(UserScript::RunLocation run_location) const override; | 46 bool ShouldInjectCss(UserScript::RunLocation run_location) const override; |
| 47 PermissionsData::AccessType CanExecuteOnFrame( | 47 PermissionsData::AccessType CanExecuteOnFrame( |
| 48 const InjectionHost* injection_host, | 48 const InjectionHost* injection_host, |
| 49 blink::WebLocalFrame* web_frame, | 49 blink::WebLocalFrame* web_frame, |
| 50 int tab_id) const override; | 50 int tab_id) const override; |
| 51 std::vector<blink::WebScriptSource> GetJsSources( | 51 std::vector<blink::WebScriptSource> GetJsSources( |
| 52 UserScript::RunLocation run_location) const override; | 52 UserScript::RunLocation run_location) const override; |
| 53 std::vector<std::string> GetCssSources( | 53 std::vector<blink::WebString> GetCssSources( |
| 54 UserScript::RunLocation run_location) const override; | 54 UserScript::RunLocation run_location) const override; |
| 55 void GetRunInfo(ScriptsRunInfo* scripts_run_info, | 55 void GetRunInfo(ScriptsRunInfo* scripts_run_info, |
| 56 UserScript::RunLocation run_location) const override; | 56 UserScript::RunLocation run_location) const override; |
| 57 void OnInjectionComplete(std::unique_ptr<base::Value> execution_result, | 57 void OnInjectionComplete(std::unique_ptr<base::Value> execution_result, |
| 58 UserScript::RunLocation run_location, | 58 UserScript::RunLocation run_location, |
| 59 content::RenderFrame* render_frame) override; | 59 content::RenderFrame* render_frame) override; |
| 60 void OnWillNotInject(InjectFailureReason reason, | 60 void OnWillNotInject(InjectFailureReason reason, |
| 61 content::RenderFrame* render_frame) override; | 61 content::RenderFrame* render_frame) override; |
| 62 | 62 |
| 63 // The associated user script. Owned by the UserScriptInjector that created | 63 // The associated user script. Owned by the UserScriptInjector that created |
| (...skipping 14 matching lines...) Expand all Loading... |
| 78 | 78 |
| 79 ScopedObserver<UserScriptSet, UserScriptSet::Observer> | 79 ScopedObserver<UserScriptSet, UserScriptSet::Observer> |
| 80 user_script_set_observer_; | 80 user_script_set_observer_; |
| 81 | 81 |
| 82 DISALLOW_COPY_AND_ASSIGN(UserScriptInjector); | 82 DISALLOW_COPY_AND_ASSIGN(UserScriptInjector); |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 } // namespace extensions | 85 } // namespace extensions |
| 86 | 86 |
| 87 #endif // EXTENSIONS_RENDERER_USER_SCRIPT_INJECTOR_H_ | 87 #endif // EXTENSIONS_RENDERER_USER_SCRIPT_INJECTOR_H_ |
| OLD | NEW |