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

Issue 7779010: Implements frame sniffer to watch iframe loading state. (Closed)

Created:
9 years, 3 months ago by altimofeev
Modified:
9 years, 3 months ago
Reviewers:
xiyuan, Nikita (slow), jam, zel
CC:
chromium-reviews, nkostylev+cc_chromium.org, rharrison, joi+watch-content_chromium.org, arv (Not doing code reviews), darin-cc_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Implements frame sniffer to watch iframe loading state. Also sniffer listener was implemented on the WebUI side, which signals when GAIA page loading error appears. BUG=chromium-os:18744 TEST=Behind captive portal, try to click 'Add new user'. Corresponding message page should be shown. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99777

Patch Set 1 #

Patch Set 2 : separate classes #

Patch Set 3 : nits #

Patch Set 4 : fixed hidden problem #

Patch Set 5 : nits #

Patch Set 6 : clang fix #

Total comments: 7

Patch Set 7 : codereview #

Patch Set 8 : order #

Total comments: 2

Patch Set 9 : code review 2 #

Patch Set 10 : merged #

Total comments: 2

Patch Set 11 : added chromeos define #

Patch Set 12 : merged #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -11 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/webui_login_view.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/login/webui_login_view.cc View 1 2 3 4 5 6 7 8 9 5 chunks +41 lines, -1 line 0 comments Download
M chrome/browser/chromeos/tab_first_render_watcher.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/tab_first_render_watcher.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/login/oobe.js View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/resources/chromeos/login/screen_gaia_signin.js View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/login/screen_offline_message.html View 1 2 3 4 5 6 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/resources/chromeos/login/screen_offline_message.js View 1 2 3 4 5 6 7 8 9 2 chunks +43 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 7 8 9 3 chunks +8 lines, -1 line 0 comments Download
M chrome/renderer/chrome_render_view_observer.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/chrome_render_view_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +9 lines, -1 line 0 comments Download
A chrome/renderer/frame_sniffer.h View 1 2 3 4 5 6 1 chunk +32 lines, -0 lines 0 comments Download
A chrome/renderer/frame_sniffer.cc View 1 2 3 4 5 6 7 8 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
altimofeev
PTAL: John: RenderView related part. Xiyan: JS part. Note, I haven't tested this with the ...
9 years, 3 months ago (2011-08-31 14:43:39 UTC) #1
Nikita (slow)
http://codereview.chromium.org/7779010/diff/6002/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/7779010/diff/6002/chrome/app/generated_resources.grd#newcode13174 chrome/app/generated_resources.grd:13174: Before signing in, please start a Guest session to ...
9 years, 3 months ago (2011-08-31 15:29:15 UTC) #2
xiyuan
I am not sure if DidFailProvisionalLoad would give a good test for captive portal. When ...
9 years, 3 months ago (2011-08-31 16:25:35 UTC) #3
jam
this doesn't need to be in content at all, so all the renderer side should ...
9 years, 3 months ago (2011-08-31 16:36:41 UTC) #4
jam
Also, for future reference, IPCs shouldn't span the content\chrome boundary. so anytime you find code ...
9 years, 3 months ago (2011-08-31 16:58:15 UTC) #5
altimofeev
Thank you for your comments. Please take another look. > I am not sure if ...
9 years, 3 months ago (2011-09-02 15:26:36 UTC) #6
xiyuan
LGTM the chromeos part. http://codereview.chromium.org/7779010/diff/15001/chrome/browser/resources/chromeos/login/screen_offline_message.js File chrome/browser/resources/chromeos/login/screen_offline_message.js (right): http://codereview.chromium.org/7779010/diff/15001/chrome/browser/resources/chromeos/login/screen_offline_message.js#newcode96 chrome/browser/resources/chromeos/login/screen_offline_message.js:96: * @param {integer} error Error ...
9 years, 3 months ago (2011-09-02 15:49:53 UTC) #7
jam
http://codereview.chromium.org/7779010/diff/6002/content/common/view_messages.h File content/common/view_messages.h (right): http://codereview.chromium.org/7779010/diff/6002/content/common/view_messages.h#newcode2104 content/common/view_messages.h:2104: IPC_MESSAGE_ROUTED1(ViewMsg_StartFrameSniffer, On 2011/09/02 15:26:36, altimofeev wrote: > On 2011/08/31 ...
9 years, 3 months ago (2011-09-02 16:52:59 UTC) #8
altimofeev
Zel: ping John: thank you for the explanations. Done. Xiyuan: thanks. Done. http://codereview.chromium.org/7779010/diff/15001/chrome/browser/resources/chromeos/login/screen_offline_message.js File chrome/browser/resources/chromeos/login/screen_offline_message.js ...
9 years, 3 months ago (2011-09-05 09:39:33 UTC) #9
zel
LGTM http://codereview.chromium.org/7779010/diff/23001/chrome/renderer/chrome_render_view_observer.cc File chrome/renderer/chrome_render_view_observer.cc (right): http://codereview.chromium.org/7779010/diff/23001/chrome/renderer/chrome_render_view_observer.cc#newcode242 chrome/renderer/chrome_render_view_observer.cc:242: IPC_MESSAGE_HANDLER(ChromeViewMsg_StartFrameSniffer, OnStartFrameSniffer) #if defined(OS_CHROMEOS)?
9 years, 3 months ago (2011-09-05 17:15:43 UTC) #10
altimofeev
http://codereview.chromium.org/7779010/diff/23001/chrome/renderer/chrome_render_view_observer.cc File chrome/renderer/chrome_render_view_observer.cc (right): http://codereview.chromium.org/7779010/diff/23001/chrome/renderer/chrome_render_view_observer.cc#newcode242 chrome/renderer/chrome_render_view_observer.cc:242: IPC_MESSAGE_HANDLER(ChromeViewMsg_StartFrameSniffer, OnStartFrameSniffer) On 2011/09/05 17:15:44, zel wrote: > #if ...
9 years, 3 months ago (2011-09-06 14:47:52 UTC) #11
jam
9 years, 3 months ago (2011-09-06 15:41:53 UTC) #12
lgtm

Powered by Google App Engine
This is Rietveld 408576698