| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |