|
|
Make UserScript non-copyable.
The main purpose of this CL is to get rid of copying around script
file contents (awful!). This should also improve content_scripts's
performance, by a little bit at least.
For places we must create a copy (e.g. creating a UserScript
from manifest metadata), provide a UserScript::CopyMetadataFrom()
method. This method does not copy files' contents within the
UserScript.
*UserScriptLoader is now responsible for owning the UserScript-s
in the browser/ process. All such ownerships are done via
unique_ptr-s.
BUG= 622464
Test=Refactoring only, no visible change should happen.
Watch out for any extensions content_scripts related regression.
Committed: https://crrev.com/12c77d78dd3626b4e91664cfebd293a54b3e6d81
Cr-Commit-Position: refs/heads/master@{#413223}
Total comments: 3
Total comments: 44
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+361 lines, -316 lines) |
Patch |
 |
M |
chrome/browser/chromeos/accessibility/accessibility_manager.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/declarative_content/content_action.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/declarative_content/content_action.cc
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+8 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/convert_user_script_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
7 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/extension_service_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
4 chunks |
+18 lines, -19 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/extension_user_script_loader_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
5 chunks |
+11 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/shared_user_script_master.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/shared_user_script_master.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+12 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/user_script_listener.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+4 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/manifest_handlers/content_scripts_handler.cc
|
View
|
1
2
3
4
5
6
|
22 chunks |
+56 lines, -65 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/manifest_handlers/content_scripts_manifest_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/guest_view/web_view/web_view_internal_api.cc
|
View
|
1
2
3
4
5
6
7
8
|
7 chunks |
+53 lines, -46 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/declarative_user_script_master.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/declarative_user_script_master.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+15 lines, -10 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/extension_user_script_loader.cc
|
View
|
1
2
3
4
|
2 chunks |
+15 lines, -12 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/guest_view/web_view/web_view_content_script_manager.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
extensions/browser/guest_view/web_view/web_view_content_script_manager.cc
|
View
|
1
2
3
4
5
6
|
4 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/user_script_loader.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/user_script_loader.cc
|
View
|
1
2
3
4
5
6
|
5 chunks |
+25 lines, -23 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/web_ui_user_script_loader.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/web_ui_user_script_loader.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
6 chunks |
+23 lines, -15 lines |
0 comments
|
Download
|
 |
M |
extensions/common/user_script.h
|
View
|
1
2
3
4
5
6
7
8
|
7 chunks |
+13 lines, -9 lines |
0 comments
|
Download
|
 |
M |
extensions/common/user_script.cc
|
View
|
1
2
3
4
5
6
7
8
|
5 chunks |
+43 lines, -16 lines |
0 comments
|
Download
|
 |
M |
extensions/common/user_script_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
extensions/renderer/user_script_injector.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
extensions/renderer/user_script_injector.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
5 chunks |
+10 lines, -13 lines |
0 comments
|
Download
|
 |
M |
extensions/renderer/user_script_set.h
|
View
|
1
2
3
|
3 chunks |
+3 lines, -8 lines |
0 comments
|
Download
|
 |
M |
extensions/renderer/user_script_set.cc
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
Total messages: 43 (30 generated)
|