Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: extensions/renderer/user_script_injector.h

Issue 2471553003: Fix content script injection not working with PlzNavigate because of different navigation timings. (Closed)
Patch Set: review comments Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « extensions/renderer/script_injector.h ('k') | extensions/renderer/user_script_injector.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « extensions/renderer/script_injector.h ('k') | extensions/renderer/user_script_injector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698