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

Side by Side Diff: content/renderer/render_frame_impl.h

Issue 1227823010: Handle empty error pages in DidFinishDocumentLoad (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: +test and comment in didFinishDocumentLoad Created 5 years, 5 months 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 const blink::WebHistoryItem& item, 427 const blink::WebHistoryItem& item,
428 blink::WebHistoryCommitType commit_type); 428 blink::WebHistoryCommitType commit_type);
429 virtual void didCreateNewDocument(blink::WebLocalFrame* frame); 429 virtual void didCreateNewDocument(blink::WebLocalFrame* frame);
430 virtual void didClearWindowObject(blink::WebLocalFrame* frame); 430 virtual void didClearWindowObject(blink::WebLocalFrame* frame);
431 virtual void didCreateDocumentElement(blink::WebLocalFrame* frame); 431 virtual void didCreateDocumentElement(blink::WebLocalFrame* frame);
432 virtual void didReceiveTitle(blink::WebLocalFrame* frame, 432 virtual void didReceiveTitle(blink::WebLocalFrame* frame,
433 const blink::WebString& title, 433 const blink::WebString& title,
434 blink::WebTextDirection direction); 434 blink::WebTextDirection direction);
435 virtual void didChangeIcon(blink::WebLocalFrame* frame, 435 virtual void didChangeIcon(blink::WebLocalFrame* frame,
436 blink::WebIconURL::Type icon_type); 436 blink::WebIconURL::Type icon_type);
437 virtual void didFinishDocumentLoad(blink::WebLocalFrame* frame); 437 virtual void didFinishDocumentLoad(blink::WebLocalFrame* frame,
438 bool document_is_empty);
438 virtual void didHandleOnloadEvents(blink::WebLocalFrame* frame); 439 virtual void didHandleOnloadEvents(blink::WebLocalFrame* frame);
439 virtual void didFailLoad(blink::WebLocalFrame* frame, 440 virtual void didFailLoad(blink::WebLocalFrame* frame,
440 const blink::WebURLError& error, 441 const blink::WebURLError& error,
441 blink::WebHistoryCommitType commit_type); 442 blink::WebHistoryCommitType commit_type);
442 virtual void didFinishLoad(blink::WebLocalFrame* frame); 443 virtual void didFinishLoad(blink::WebLocalFrame* frame);
443 virtual void didNavigateWithinPage(blink::WebLocalFrame* frame, 444 virtual void didNavigateWithinPage(blink::WebLocalFrame* frame,
444 const blink::WebHistoryItem& item, 445 const blink::WebHistoryItem& item,
445 blink::WebHistoryCommitType commit_type); 446 blink::WebHistoryCommitType commit_type);
446 virtual void didUpdateCurrentHistoryItem(blink::WebLocalFrame* frame); 447 virtual void didUpdateCurrentHistoryItem(blink::WebLocalFrame* frame);
447 virtual void didChangeThemeColor(); 448 virtual void didChangeThemeColor();
(...skipping 15 matching lines...) Expand all
463 const blink::WebString& message); 464 const blink::WebString& message);
464 virtual void showContextMenu(const blink::WebContextMenuData& data); 465 virtual void showContextMenu(const blink::WebContextMenuData& data);
465 virtual void clearContextMenu(); 466 virtual void clearContextMenu();
466 virtual void willSendRequest(blink::WebLocalFrame* frame, 467 virtual void willSendRequest(blink::WebLocalFrame* frame,
467 unsigned identifier, 468 unsigned identifier,
468 blink::WebURLRequest& request, 469 blink::WebURLRequest& request,
469 const blink::WebURLResponse& redirect_response); 470 const blink::WebURLResponse& redirect_response);
470 virtual void didReceiveResponse(blink::WebLocalFrame* frame, 471 virtual void didReceiveResponse(blink::WebLocalFrame* frame,
471 unsigned identifier, 472 unsigned identifier,
472 const blink::WebURLResponse& response); 473 const blink::WebURLResponse& response);
473 virtual void didFinishResourceLoad(blink::WebLocalFrame* frame,
474 unsigned identifier);
475 virtual void didLoadResourceFromMemoryCache( 474 virtual void didLoadResourceFromMemoryCache(
476 blink::WebLocalFrame* frame, 475 blink::WebLocalFrame* frame,
477 const blink::WebURLRequest& request, 476 const blink::WebURLRequest& request,
478 const blink::WebURLResponse& response); 477 const blink::WebURLResponse& response);
479 virtual void didDisplayInsecureContent(blink::WebLocalFrame* frame); 478 virtual void didDisplayInsecureContent(blink::WebLocalFrame* frame);
480 virtual void didRunInsecureContent(blink::WebLocalFrame* frame, 479 virtual void didRunInsecureContent(blink::WebLocalFrame* frame,
481 const blink::WebSecurityOrigin& origin, 480 const blink::WebSecurityOrigin& origin,
482 const blink::WebURL& target); 481 const blink::WebURL& target);
483 virtual void didAbortLoading(blink::WebLocalFrame* frame); 482 virtual void didAbortLoading(blink::WebLocalFrame* frame);
484 virtual void didCreateScriptContext(blink::WebLocalFrame* frame, 483 virtual void didCreateScriptContext(blink::WebLocalFrame* frame,
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 #endif 1010 #endif
1012 1011
1013 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1012 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1014 1013
1015 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1014 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1016 }; 1015 };
1017 1016
1018 } // namespace content 1017 } // namespace content
1019 1018
1020 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1019 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698