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

Issue 1851793002: Implement a shell of FindRequestManager, and hook it up to WebContentsImpl. (Closed)

Created:
4 years, 8 months ago by paulmeyer
Modified:
4 years, 8 months ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, extensions-reviews_chromium.org, jam, nasko+codewatch_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement a shell of FindRequestManager, and hook it up to WebContentsImpl. This is an intermediate step towards the multi-process find-in-page implementation. At this stage, FindRequestManager does not add any extra functionality, but find requests are plumbed through it. Note that no additional testing is required at this stage. Design doc for multi-process find-in-page: https://docs.google.com/a/google.com/document/d/12S_6X2MWWLoyJslajcajL2ELU7zhodPxMOxa8Bg4Wg0/edit?usp=sharing Summary of specific changes introduced in this patch: - Find request IDs are now always unique for every find request (previously unique per find session in most cases). - Very basic shell of FindRequestManager added. - Find, FindReply, StopFinding, FindMatchRects, FindMatchRectsReply, and ActivateNearestFindResult are now plumbed through FindRequestManager (though it does not yet process or alter these requests). - FindMatchRects and ActivateNearestFindResult can no longer be called directly via RenderFrameHost. This ensures that all calls must go through FindRequestManager (via WebContents). - Small find bug addressed in WebViewFindHelper. BUG=457440 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/c0b762b6f91dec4fb0f20535c1c1fe98cf8d57ca Cr-Commit-Position: refs/heads/master@{#386966}

Patch Set 1 : #

Total comments: 5

Patch Set 2 : Addressed comments by lfg@, dcheng@. #

Patch Set 3 : Small rename to clarify 'session' vs. 'request'. #

Total comments: 27

Patch Set 4 : Addressed comments by ncarter. #

Total comments: 2

Patch Set 5 : Addressed comments and introduced FindRequest struct. #

Total comments: 14

Patch Set 6 : Addressed comments by lfg@ and ncarter. #

Total comments: 2

Patch Set 7 : Small fix. #

Patch Set 8 : Rebased and small fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+393 lines, -49 lines) Patch
M android_webview/browser/find_helper.h View 1 chunk +1 line, -1 line 0 comments Download
M android_webview/browser/find_helper.cc View 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/find_bar/find_tab_helper.cc View 2 chunks +4 lines, -5 lines 0 comments Download
A content/browser/find_request_manager.h View 1 2 3 4 5 6 1 chunk +142 lines, -0 lines 0 comments Download
A content/browser/find_request_manager.cc View 1 2 3 4 5 6 7 1 chunk +139 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -11 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 7 chunks +27 lines, -3 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 7 chunks +57 lines, -11 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/browser/render_frame_host.h View 1 chunk +0 lines, -9 lines 0 comments Download
M content/public/browser/web_contents.h View 1 2 3 4 5 6 7 1 chunk +14 lines, -0 lines 0 comments Download
M extensions/browser/guest_view/web_view/web_view_find_helper.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/browser/guest_view/web_view/web_view_guest.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 61 (33 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1851793002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1851793002/1
4 years, 8 months ago (2016-04-01 15:07:11 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1851793002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1851793002/20001
4 years, 8 months ago (2016-04-01 16:47:37 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_android on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/43852) linux_android_rel_ng on ...
4 years, 8 months ago (2016-04-01 17:06:25 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1851793002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1851793002/60001
4 years, 8 months ago (2016-04-02 00:15:27 UTC) #15
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-02 02:39:30 UTC) #17
paulmeyer
+lfg@ for initial review.
4 years, 8 months ago (2016-04-04 13:37:41 UTC) #26
lfg
lgtm with nit. Add ncarter (nick@chromium.org) for content/ review. https://codereview.chromium.org/1851793002/diff/60001/content/browser/web_contents/web_contents_impl.h File content/browser/web_contents/web_contents_impl.h (right): https://codereview.chromium.org/1851793002/diff/60001/content/browser/web_contents/web_contents_impl.h#newcode753 content/browser/web_contents/web_contents_impl.h:753: ...
4 years, 8 months ago (2016-04-04 18:57:32 UTC) #27
dcheng
drive-by https://codereview.chromium.org/1851793002/diff/60001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/1851793002/diff/60001/content/browser/web_contents/web_contents_impl.cc#newcode4820 content/browser/web_contents/web_contents_impl.cc:4820: if (!find_request_manager_.get()) Nit: no .get() https://codereview.chromium.org/1851793002/diff/60001/extensions/browser/guest_view/web_view/web_view_find_helper.cc File extensions/browser/guest_view/web_view/web_view_find_helper.cc ...
4 years, 8 months ago (2016-04-04 18:59:52 UTC) #28
paulmeyer
+nick@ for content/ review. https://codereview.chromium.org/1851793002/diff/60001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/1851793002/diff/60001/content/browser/web_contents/web_contents_impl.cc#newcode4820 content/browser/web_contents/web_contents_impl.cc:4820: if (!find_request_manager_.get()) On 2016/04/04 18:59:52, ...
4 years, 8 months ago (2016-04-04 20:07:47 UTC) #30
ncarter (slow)
The following feedback is mostly naming and comment suggestions. Feel free to push back on ...
4 years, 8 months ago (2016-04-06 19:08:03 UTC) #31
paulmeyer
PTAL. https://codereview.chromium.org/1851793002/diff/100001/content/browser/find_request_manager.cc File content/browser/find_request_manager.cc (right): https://codereview.chromium.org/1851793002/diff/100001/content/browser/find_request_manager.cc#newcode30 content/browser/find_request_manager.cc:30: void FindRequestManager::Find(int request_id, On 2016/04/06 19:08:03, ncarter wrote: ...
4 years, 8 months ago (2016-04-07 17:36:15 UTC) #33
ncarter (slow)
https://codereview.chromium.org/1851793002/diff/100001/content/browser/find_request_manager.cc File content/browser/find_request_manager.cc (right): https://codereview.chromium.org/1851793002/diff/100001/content/browser/find_request_manager.cc#newcode30 content/browser/find_request_manager.cc:30: void FindRequestManager::Find(int request_id, On 2016/04/07 17:36:14, Paul Meyer wrote: ...
4 years, 8 months ago (2016-04-07 18:19:14 UTC) #34
paulmeyer
ncarter: PTAL https://codereview.chromium.org/1851793002/diff/100001/content/browser/find_request_manager.h File content/browser/find_request_manager.h (right): https://codereview.chromium.org/1851793002/diff/100001/content/browser/find_request_manager.h#newcode87 content/browser/find_request_manager.h:87: int fmr_request_version_; On 2016/04/07 18:19:14, ncarter wrote: ...
4 years, 8 months ago (2016-04-11 19:35:50 UTC) #35
lfg
https://codereview.chromium.org/1851793002/diff/160001/content/browser/find_request_manager.cc File content/browser/find_request_manager.cc (right): https://codereview.chromium.org/1851793002/diff/160001/content/browser/find_request_manager.cc#newcode44 content/browser/find_request_manager.cc:44: FindRequest request{request_id, search_text, options}; Compared to what you had ...
4 years, 8 months ago (2016-04-11 20:10:54 UTC) #36
ncarter (slow)
https://codereview.chromium.org/1851793002/diff/160001/content/browser/find_request_manager.cc File content/browser/find_request_manager.cc (right): https://codereview.chromium.org/1851793002/diff/160001/content/browser/find_request_manager.cc#newcode25 content/browser/find_request_manager.cc:25: match_rects_{kInvalidId}, This is C++11 uniform initialization syntax, which is ...
4 years, 8 months ago (2016-04-11 21:27:35 UTC) #37
lfg
https://codereview.chromium.org/1851793002/diff/160001/content/browser/find_request_manager.cc File content/browser/find_request_manager.cc (right): https://codereview.chromium.org/1851793002/diff/160001/content/browser/find_request_manager.cc#newcode116 content/browser/find_request_manager.cc:116: match_rects_ = FindMatchRectsState(); On 2016/04/11 21:27:35, ncarter wrote: > ...
4 years, 8 months ago (2016-04-11 21:46:42 UTC) #38
paulmeyer
PTAL https://codereview.chromium.org/1851793002/diff/160001/content/browser/find_request_manager.cc File content/browser/find_request_manager.cc (right): https://codereview.chromium.org/1851793002/diff/160001/content/browser/find_request_manager.cc#newcode25 content/browser/find_request_manager.cc:25: match_rects_{kInvalidId}, On 2016/04/11 21:27:35, ncarter wrote: > This ...
4 years, 8 months ago (2016-04-12 17:54:25 UTC) #39
ncarter (slow)
lgtm with one fix https://codereview.chromium.org/1851793002/diff/160001/content/browser/find_request_manager.cc File content/browser/find_request_manager.cc (right): https://codereview.chromium.org/1851793002/diff/160001/content/browser/find_request_manager.cc#newcode116 content/browser/find_request_manager.cc:116: match_rects_ = FindMatchRectsState(); On 2016/04/12 ...
4 years, 8 months ago (2016-04-12 18:16:35 UTC) #40
paulmeyer
+sky@ for OWNER review of find_tab_helper.cc +sgurun@ for OWNER review of android_webview/ https://codereview.chromium.org/1851793002/diff/180001/content/browser/find_request_manager.h File content/browser/find_request_manager.h ...
4 years, 8 months ago (2016-04-12 18:48:24 UTC) #42
sky
LGTM
4 years, 8 months ago (2016-04-12 21:05:47 UTC) #44
sgurun-gerrit only
On 2016/04/12 21:05:47, sky wrote: > LGTM lgtm
4 years, 8 months ago (2016-04-12 23:54:46 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1851793002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1851793002/220001
4 years, 8 months ago (2016-04-12 23:55:35 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/153611) linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 8 months ago (2016-04-13 00:12:28 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1851793002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1851793002/240001
4 years, 8 months ago (2016-04-13 03:06:58 UTC) #53
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_android on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/49559)
4 years, 8 months ago (2016-04-13 03:14:42 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1851793002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1851793002/240001
4 years, 8 months ago (2016-04-13 11:46:56 UTC) #57
commit-bot: I haz the power
Committed patchset #8 (id:240001)
4 years, 8 months ago (2016-04-13 11:55:29 UTC) #59
commit-bot: I haz the power
4 years, 8 months ago (2016-04-13 11:56:25 UTC) #61
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/c0b762b6f91dec4fb0f20535c1c1fe98cf8d57ca
Cr-Commit-Position: refs/heads/master@{#386966}

Powered by Google App Engine
This is Rietveld 408576698