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

Side by Side Diff: chrome/renderer/render_view.h

Issue 159575: Move alternate error page loading out of WebFrame.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/navigation_state.h ('k') | chrome/renderer/render_view.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 (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 CHROME_RENDERER_RENDER_VIEW_H_ 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_
6 #define CHROME_RENDERER_RENDER_VIEW_H_ 6 #define CHROME_RENDERER_RENDER_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 #include <queue> 9 #include <queue>
10 #include <vector> 10 #include <vector>
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 // information to the browser process. 602 // information to the browser process.
603 void BindDOMAutomationController(WebFrame* webframe); 603 void BindDOMAutomationController(WebFrame* webframe);
604 604
605 // Creates DevToolsClient and sets up JavaScript bindings for developer tools 605 // Creates DevToolsClient and sets up JavaScript bindings for developer tools
606 // UI that is going to be hosted by this RenderView. 606 // UI that is going to be hosted by this RenderView.
607 void CreateDevToolsClient(); 607 void CreateDevToolsClient();
608 608
609 // Locates a sub frame with given xpath 609 // Locates a sub frame with given xpath
610 WebFrame* GetChildFrame(const std::wstring& frame_xpath) const; 610 WebFrame* GetChildFrame(const std::wstring& frame_xpath) const;
611 611
612 std::string GetAltHTMLForTemplate(const DictionaryValue& error_strings, 612 // Alternate error page helpers.
613 int template_resource_id) const; 613 bool MaybeLoadAlternateErrorPage(
614 WebFrame* frame, const WebKit::WebURLError& error, bool replace);
615 std::string GetAltHTMLForTemplate(
616 const DictionaryValue& error_strings, int template_resource_id) const;
617 void AltErrorPageFinished(
618 WebFrame* frame, const GURL& unreachable_url, const std::string& html);
614 619
615 virtual void DidAddHistoryItem(); 620 virtual void DidAddHistoryItem();
616 621
617 // Decodes a data: URL image or returns an empty image in case of failure. 622 // Decodes a data: URL image or returns an empty image in case of failure.
618 SkBitmap ImageFromDataUrl(const GURL&) const; 623 SkBitmap ImageFromDataUrl(const GURL&) const;
619 624
620 void DumpLoadHistograms() const; 625 void DumpLoadHistograms() const;
621 626
622 // Scan the given frame for password forms and send them up to the browser. 627 // Scan the given frame for password forms and send them up to the browser.
623 void SendPasswordForms(WebFrame* frame); 628 void SendPasswordForms(WebFrame* frame);
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 822
818 RendererPreferences renderer_preferences_; 823 RendererPreferences renderer_preferences_;
819 824
820 // page id for the last navigation sent to the browser. 825 // page id for the last navigation sent to the browser.
821 int32 last_top_level_navigation_page_id_; 826 int32 last_top_level_navigation_page_id_;
822 827
823 DISALLOW_COPY_AND_ASSIGN(RenderView); 828 DISALLOW_COPY_AND_ASSIGN(RenderView);
824 }; 829 };
825 830
826 #endif // CHROME_RENDERER_RENDER_VIEW_H_ 831 #endif // CHROME_RENDERER_RENDER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/renderer/navigation_state.h ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698