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 <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 76 |
77 namespace base { | 77 namespace base { |
78 class WaitableEvent; | 78 class WaitableEvent; |
79 } | 79 } |
80 | 80 |
81 namespace webkit_glue { | 81 namespace webkit_glue { |
82 struct FileUploadData; | 82 struct FileUploadData; |
83 } | 83 } |
84 | 84 |
85 namespace WebKit { | 85 namespace WebKit { |
| 86 class WebDataSource; |
86 class WebDragData; | 87 class WebDragData; |
87 class WebMediaPlayer; | 88 class WebMediaPlayer; |
88 class WebMediaPlayerClient; | 89 class WebMediaPlayerClient; |
89 class WebURLRequest; | 90 class WebURLRequest; |
90 struct WebFindOptions; | 91 struct WebFindOptions; |
91 } | 92 } |
92 | 93 |
93 // We need to prevent a page from trying to create infinite popups. It is not | 94 // We need to prevent a page from trying to create infinite popups. It is not |
94 // as simple as keeping a count of the number of immediate children | 95 // as simple as keeping a count of the number of immediate children |
95 // popups. Having an html file that window.open()s itself would create | 96 // popups. Having an html file that window.open()s itself would create |
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
709 const DictionaryValue& error_strings, int template_resource_id) const; | 710 const DictionaryValue& error_strings, int template_resource_id) const; |
710 void AltErrorPageFinished( | 711 void AltErrorPageFinished( |
711 WebKit::WebFrame* frame, const WebKit::WebURLError& original_error, | 712 WebKit::WebFrame* frame, const WebKit::WebURLError& original_error, |
712 const std::string& html); | 713 const std::string& html); |
713 | 714 |
714 // Decodes a data: URL image or returns an empty image in case of failure. | 715 // Decodes a data: URL image or returns an empty image in case of failure. |
715 SkBitmap ImageFromDataUrl(const GURL&) const; | 716 SkBitmap ImageFromDataUrl(const GURL&) const; |
716 | 717 |
717 void DumpLoadHistograms() const; | 718 void DumpLoadHistograms() const; |
718 | 719 |
| 720 // Logs the navigation state to the console. |
| 721 void LogNavigationState(const NavigationState* state, |
| 722 const WebKit::WebDataSource* ds) const; |
| 723 |
719 // Scan the given frame for password forms and send them up to the browser. | 724 // Scan the given frame for password forms and send them up to the browser. |
720 void SendPasswordForms(WebKit::WebFrame* frame); | 725 void SendPasswordForms(WebKit::WebFrame* frame); |
721 | 726 |
722 void Print(WebKit::WebFrame* frame, bool script_initiated); | 727 void Print(WebKit::WebFrame* frame, bool script_initiated); |
723 | 728 |
724 #if defined(OS_LINUX) | 729 #if defined(OS_LINUX) |
725 void UpdateFontRenderingFromRendererPrefs(); | 730 void UpdateFontRenderingFromRendererPrefs(); |
726 #else | 731 #else |
727 void UpdateFontRenderingFromRendererPrefs() { } | 732 void UpdateFontRenderingFromRendererPrefs() { } |
728 #endif | 733 #endif |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
983 // ImageResourceFetchers schedule via DownloadImage. | 988 // ImageResourceFetchers schedule via DownloadImage. |
984 typedef std::set<webkit_glue::ImageResourceFetcher*> ImageResourceFetcherSet; | 989 typedef std::set<webkit_glue::ImageResourceFetcher*> ImageResourceFetcherSet; |
985 ImageResourceFetcherSet image_fetchers_; | 990 ImageResourceFetcherSet image_fetchers_; |
986 | 991 |
987 typedef std::map<WebKit::WebView*, RenderView*> ViewMap; | 992 typedef std::map<WebKit::WebView*, RenderView*> ViewMap; |
988 | 993 |
989 DISALLOW_COPY_AND_ASSIGN(RenderView); | 994 DISALLOW_COPY_AND_ASSIGN(RenderView); |
990 }; | 995 }; |
991 | 996 |
992 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 997 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |