| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 class AudioMessageFilter; | 45 class AudioMessageFilter; |
| 46 class DictionaryValue; | 46 class DictionaryValue; |
| 47 class DevToolsAgent; | 47 class DevToolsAgent; |
| 48 class DevToolsClient; | 48 class DevToolsClient; |
| 49 class FilePath; | 49 class FilePath; |
| 50 class GURL; | 50 class GURL; |
| 51 class ListValue; | 51 class ListValue; |
| 52 class NavigationState; | 52 class NavigationState; |
| 53 class PrintWebViewHelper; | 53 class PrintWebViewHelper; |
| 54 class WebFrame; | |
| 55 class WebPluginDelegate; | 54 class WebPluginDelegate; |
| 56 class WebPluginDelegateProxy; | 55 class WebPluginDelegateProxy; |
| 57 class WebDevToolsAgentDelegate; | 56 class WebDevToolsAgentDelegate; |
| 58 struct ContextMenuMediaParams; | 57 struct ContextMenuMediaParams; |
| 59 struct ThumbnailScore; | 58 struct ThumbnailScore; |
| 60 struct ViewMsg_ClosePage_Params; | 59 struct ViewMsg_ClosePage_Params; |
| 61 struct ViewMsg_Navigate_Params; | 60 struct ViewMsg_Navigate_Params; |
| 62 struct ViewMsg_UploadFile_Params; | 61 struct ViewMsg_UploadFile_Params; |
| 63 struct WebDropData; | 62 struct WebDropData; |
| 64 | 63 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 } | 133 } |
| 135 | 134 |
| 136 // IPC::Channel::Listener | 135 // IPC::Channel::Listener |
| 137 virtual void OnMessageReceived(const IPC::Message& msg); | 136 virtual void OnMessageReceived(const IPC::Message& msg); |
| 138 | 137 |
| 139 // WebViewDelegate | 138 // WebViewDelegate |
| 140 virtual bool CanAcceptLoadDrops() const; | 139 virtual bool CanAcceptLoadDrops() const; |
| 141 virtual void ShowModalHTMLDialog(const GURL& url, int width, int height, | 140 virtual void ShowModalHTMLDialog(const GURL& url, int width, int height, |
| 142 const std::string& json_arguments, | 141 const std::string& json_arguments, |
| 143 std::string* json_retval); | 142 std::string* json_retval); |
| 144 virtual void RunJavaScriptAlert(WebFrame* webframe, | 143 virtual void RunJavaScriptAlert(WebKit::WebFrame* webframe, |
| 145 const std::wstring& message); | 144 const std::wstring& message); |
| 146 virtual bool RunJavaScriptConfirm(WebFrame* webframe, | 145 virtual bool RunJavaScriptConfirm(WebKit::WebFrame* webframe, |
| 147 const std::wstring& message); | 146 const std::wstring& message); |
| 148 virtual bool RunJavaScriptPrompt(WebFrame* webframe, | 147 virtual bool RunJavaScriptPrompt(WebKit::WebFrame* webframe, |
| 149 const std::wstring& message, | 148 const std::wstring& message, |
| 150 const std::wstring& default_value, | 149 const std::wstring& default_value, |
| 151 std::wstring* result); | 150 std::wstring* result); |
| 152 virtual bool RunBeforeUnloadConfirm(WebFrame* webframe, | 151 virtual bool RunBeforeUnloadConfirm(WebKit::WebFrame* webframe, |
| 153 const std::wstring& message); | 152 const std::wstring& message); |
| 154 virtual void QueryFormFieldAutofill(const std::wstring& field_name, | 153 virtual void QueryFormFieldAutofill(const std::wstring& field_name, |
| 155 const std::wstring& text, | 154 const std::wstring& text, |
| 156 int64 node_id); | 155 int64 node_id); |
| 157 virtual void RemoveStoredAutofillEntry(const std::wstring& field_name, | 156 virtual void RemoveStoredAutofillEntry(const std::wstring& field_name, |
| 158 const std::wstring& text); | 157 const std::wstring& text); |
| 159 virtual void UpdateTargetURL(WebView* webview, | 158 virtual void UpdateTargetURL(WebView* webview, |
| 160 const GURL& url); | 159 const GURL& url); |
| 161 virtual void RunFileChooser(bool multi_select, | 160 virtual void RunFileChooser(bool multi_select, |
| 162 const string16& title, | 161 const string16& title, |
| 163 const FilePath& initial_filename, | 162 const FilePath& initial_filename, |
| 164 WebFileChooserCallback* file_chooser); | 163 WebFileChooserCallback* file_chooser); |
| 165 virtual void AddMessageToConsole(WebView* webview, | 164 virtual void AddMessageToConsole(WebView* webview, |
| 166 const std::wstring& message, | 165 const std::wstring& message, |
| 167 unsigned int line_no, | 166 unsigned int line_no, |
| 168 const std::wstring& source_id); | 167 const std::wstring& source_id); |
| 169 | 168 |
| 170 virtual void DidStartLoading(WebView* webview); | 169 virtual void DidStartLoading(WebView* webview); |
| 171 virtual void DidStopLoading(WebView* webview); | 170 virtual void DidStopLoading(WebView* webview); |
| 172 virtual void DidCreateDataSource(WebFrame* frame, WebKit::WebDataSource* ds); | 171 virtual void DidCreateDataSource(WebKit::WebFrame* frame, |
| 172 WebKit::WebDataSource* ds); |
| 173 virtual void DidStartProvisionalLoadForFrame( | 173 virtual void DidStartProvisionalLoadForFrame( |
| 174 WebView* webview, | 174 WebView* webview, |
| 175 WebFrame* frame, | 175 WebKit::WebFrame* frame, |
| 176 NavigationGesture gesture); | 176 NavigationGesture gesture); |
| 177 virtual void DidReceiveProvisionalLoadServerRedirect(WebView* webview, | 177 virtual void DidReceiveProvisionalLoadServerRedirect(WebView* webview, |
| 178 WebFrame* frame); | 178 WebKit::WebFrame* frame); |
| 179 virtual void DidFailProvisionalLoadWithError( | 179 virtual void DidFailProvisionalLoadWithError( |
| 180 WebView* webview, | 180 WebView* webview, |
| 181 const WebKit::WebURLError& error, | 181 const WebKit::WebURLError& error, |
| 182 WebFrame* frame); | 182 WebKit::WebFrame* frame); |
| 183 virtual void LoadNavigationErrorPage( | 183 virtual void LoadNavigationErrorPage( |
| 184 WebFrame* frame, | 184 WebKit::WebFrame* frame, |
| 185 const WebKit::WebURLRequest& failed_request, | 185 const WebKit::WebURLRequest& failed_request, |
| 186 const WebKit::WebURLError& error, | 186 const WebKit::WebURLError& error, |
| 187 const std::string& html, | 187 const std::string& html, |
| 188 bool replace); | 188 bool replace); |
| 189 virtual void DidReceiveDocumentData(WebFrame* frame, const char* data, | 189 virtual void DidReceiveDocumentData(WebKit::WebFrame* frame, const char* data, |
| 190 size_t data_len); | 190 size_t data_len); |
| 191 virtual void DidCommitLoadForFrame(WebView* webview, WebFrame* frame, | 191 virtual void DidCommitLoadForFrame(WebView* webview, WebKit::WebFrame* frame, |
| 192 bool is_new_navigation); | 192 bool is_new_navigation); |
| 193 virtual void DidReceiveTitle(WebView* webview, | 193 virtual void DidReceiveTitle(WebView* webview, |
| 194 const std::wstring& title, | 194 const std::wstring& title, |
| 195 WebFrame* frame); | 195 WebKit::WebFrame* frame); |
| 196 virtual void DidFinishLoadForFrame(WebView* webview, | 196 virtual void DidFinishLoadForFrame(WebView* webview, |
| 197 WebFrame* frame); | 197 WebKit::WebFrame* frame); |
| 198 virtual void DidFailLoadWithError(WebView* webview, | 198 virtual void DidFailLoadWithError(WebView* webview, |
| 199 const WebKit::WebURLError& error, | 199 const WebKit::WebURLError& error, |
| 200 WebFrame* forFrame); | 200 WebKit::WebFrame* forFrame); |
| 201 virtual void DidFinishDocumentLoadForFrame(WebView* webview, WebFrame* frame); | 201 virtual void DidFinishDocumentLoadForFrame(WebView* webview, WebKit::WebFrame*
frame); |
| 202 virtual bool DidLoadResourceFromMemoryCache( | 202 virtual bool DidLoadResourceFromMemoryCache( |
| 203 WebView* webview, | 203 WebView* webview, |
| 204 const WebKit::WebURLRequest& request, | 204 const WebKit::WebURLRequest& request, |
| 205 const WebKit::WebURLResponse& response, | 205 const WebKit::WebURLResponse& response, |
| 206 WebFrame* frame); | 206 WebKit::WebFrame* frame); |
| 207 virtual void DidHandleOnloadEventsForFrame(WebView* webview, WebFrame* frame); | 207 virtual void DidHandleOnloadEventsForFrame(WebView* webview, WebKit::WebFrame*
frame); |
| 208 virtual void DidChangeLocationWithinPageForFrame(WebView* webview, | 208 virtual void DidChangeLocationWithinPageForFrame(WebView* webview, |
| 209 WebFrame* frame, | 209 WebKit::WebFrame* frame, |
| 210 bool is_new_navigation); | 210 bool is_new_navigation); |
| 211 virtual void DidContentsSizeChange(WebKit::WebWidget* webwidget, | 211 virtual void DidContentsSizeChange(WebKit::WebWidget* webwidget, |
| 212 int new_width, | 212 int new_width, |
| 213 int new_height); | 213 int new_height); |
| 214 | 214 |
| 215 virtual void DidCompleteClientRedirect(WebView* webview, | 215 virtual void DidCompleteClientRedirect(WebView* webview, |
| 216 WebFrame* frame, | 216 WebKit::WebFrame* frame, |
| 217 const GURL& source); | 217 const GURL& source); |
| 218 virtual void WillCloseFrame(WebView* webview, WebFrame* frame); | 218 virtual void WillCloseFrame(WebView* webview, WebKit::WebFrame* frame); |
| 219 virtual void WillSubmitForm(WebView* webview, WebFrame* frame, | 219 virtual void WillSubmitForm(WebView* webview, WebKit::WebFrame* frame, |
| 220 const WebKit::WebForm& form); | 220 const WebKit::WebForm& form); |
| 221 virtual void WillSendRequest(WebFrame* webframe, | 221 virtual void WillSendRequest(WebKit::WebFrame* webframe, |
| 222 uint32 identifier, | 222 uint32 identifier, |
| 223 WebKit::WebURLRequest* request, | 223 WebKit::WebURLRequest* request, |
| 224 const WebKit::WebURLResponse& redirect_response); | 224 const WebKit::WebURLResponse& redirect_response); |
| 225 virtual void DidReceiveResponse(WebFrame* webframe, | 225 virtual void DidReceiveResponse(WebKit::WebFrame* webframe, |
| 226 uint32 identifier, | 226 uint32 identifier, |
| 227 const WebKit::WebURLResponse& response); | 227 const WebKit::WebURLResponse& response); |
| 228 virtual void DidFinishLoading(WebFrame* webframe, uint32 identifier); | 228 virtual void DidFinishLoading(WebKit::WebFrame* webframe, uint32 identifier); |
| 229 | 229 |
| 230 virtual void WindowObjectCleared(WebFrame* webframe); | 230 virtual void WindowObjectCleared(WebKit::WebFrame* webframe); |
| 231 virtual void DocumentElementAvailable(WebFrame* webframe); | 231 virtual void DocumentElementAvailable(WebKit::WebFrame* webframe); |
| 232 virtual void DidCreateScriptContextForFrame(WebFrame* webframe); | 232 virtual void DidCreateScriptContextForFrame(WebKit::WebFrame* webframe); |
| 233 virtual void DidDestroyScriptContextForFrame(WebFrame* webframe); | 233 virtual void DidDestroyScriptContextForFrame(WebKit::WebFrame* webframe); |
| 234 virtual void DidCreateIsolatedScriptContext(WebFrame* webframe); | 234 virtual void DidCreateIsolatedScriptContext(WebKit::WebFrame* webframe); |
| 235 | 235 |
| 236 virtual WebKit::WebNavigationPolicy PolicyForNavigationAction( | 236 virtual WebKit::WebNavigationPolicy PolicyForNavigationAction( |
| 237 WebView* webview, | 237 WebView* webview, |
| 238 WebFrame* frame, | 238 WebKit::WebFrame* frame, |
| 239 const WebKit::WebURLRequest& request, | 239 const WebKit::WebURLRequest& request, |
| 240 WebKit::WebNavigationType type, | 240 WebKit::WebNavigationType type, |
| 241 WebKit::WebNavigationPolicy default_policy, | 241 WebKit::WebNavigationPolicy default_policy, |
| 242 bool is_redirect); | 242 bool is_redirect); |
| 243 | 243 |
| 244 virtual WebView* CreateWebView(WebView* webview, | 244 virtual WebView* CreateWebView(WebView* webview, |
| 245 bool user_gesture, | 245 bool user_gesture, |
| 246 const GURL& creator_url); | 246 const GURL& creator_url); |
| 247 virtual WebKit::WebWidget* CreatePopupWidget( | 247 virtual WebKit::WebWidget* CreatePopupWidget( |
| 248 WebView* webview, | 248 WebView* webview, |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 int active_match_ordinal, | 313 int active_match_ordinal, |
| 314 const WebKit::WebRect& selection); | 314 const WebKit::WebRect& selection); |
| 315 virtual bool WasOpenedByUserGesture() const; | 315 virtual bool WasOpenedByUserGesture() const; |
| 316 virtual void FocusAccessibilityObject(WebCore::AccessibilityObject* acc_obj); | 316 virtual void FocusAccessibilityObject(WebCore::AccessibilityObject* acc_obj); |
| 317 virtual void DidMovePlugin(const WebPluginGeometry& move); | 317 virtual void DidMovePlugin(const WebPluginGeometry& move); |
| 318 virtual void WillDestroyPluginWindow(gfx::PluginWindowHandle handle); | 318 virtual void WillDestroyPluginWindow(gfx::PluginWindowHandle handle); |
| 319 virtual void SpellCheck(const std::wstring& word, int* misspell_location, | 319 virtual void SpellCheck(const std::wstring& word, int* misspell_location, |
| 320 int* misspell_length); | 320 int* misspell_length); |
| 321 virtual std::wstring GetAutoCorrectWord(const std::wstring& word); | 321 virtual std::wstring GetAutoCorrectWord(const std::wstring& word); |
| 322 virtual void SetInputMethodState(bool enabled); | 322 virtual void SetInputMethodState(bool enabled); |
| 323 virtual void ScriptedPrint(WebFrame* frame); | 323 virtual void ScriptedPrint(WebKit::WebFrame* frame); |
| 324 virtual void UserMetricsRecordAction(const std::wstring& action); | 324 virtual void UserMetricsRecordAction(const std::wstring& action); |
| 325 virtual void DnsPrefetch(const std::vector<std::string>& host_names); | 325 virtual void DnsPrefetch(const std::vector<std::string>& host_names); |
| 326 | 326 |
| 327 // DomSerializerDelegate | 327 // DomSerializerDelegate |
| 328 virtual void DidSerializeDataForFrame(const GURL& frame_url, | 328 virtual void DidSerializeDataForFrame(const GURL& frame_url, |
| 329 const std::string& data, PageSavingSerializationStatus status); | 329 const std::string& data, PageSavingSerializationStatus status); |
| 330 | 330 |
| 331 // WebKit::WebWidgetClient | 331 // WebKit::WebWidgetClient |
| 332 // Most methods are handled by RenderWidget. | 332 // Most methods are handled by RenderWidget. |
| 333 virtual void show(WebKit::WebNavigationPolicy policy); | 333 virtual void show(WebKit::WebNavigationPolicy policy); |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 // set to 'MSG_ROUTING_NONE' if the true ID is not yet known. In this case, | 406 // set to 'MSG_ROUTING_NONE' if the true ID is not yet known. In this case, |
| 407 // CompleteInit must be called later with the true ID. | 407 // CompleteInit must be called later with the true ID. |
| 408 void Init(gfx::NativeViewId parent, | 408 void Init(gfx::NativeViewId parent, |
| 409 base::WaitableEvent* modal_dialog_event, // takes ownership | 409 base::WaitableEvent* modal_dialog_event, // takes ownership |
| 410 int32 opener_id, | 410 int32 opener_id, |
| 411 const RendererPreferences& renderer_prefs, | 411 const RendererPreferences& renderer_prefs, |
| 412 const WebPreferences& webkit_prefs, | 412 const WebPreferences& webkit_prefs, |
| 413 SharedRenderViewCounter* counter, | 413 SharedRenderViewCounter* counter, |
| 414 int32 routing_id); | 414 int32 routing_id); |
| 415 | 415 |
| 416 void UpdateURL(WebFrame* frame); | 416 void UpdateURL(WebKit::WebFrame* frame); |
| 417 void UpdateTitle(WebFrame* frame, const std::wstring& title); | 417 void UpdateTitle(WebKit::WebFrame* frame, const std::wstring& title); |
| 418 void UpdateSessionHistory(WebFrame* frame); | 418 void UpdateSessionHistory(WebKit::WebFrame* frame); |
| 419 | 419 |
| 420 // Update current main frame's encoding and send it to browser window. | 420 // Update current main frame's encoding and send it to browser window. |
| 421 // Since we want to let users see the right encoding info from menu | 421 // Since we want to let users see the right encoding info from menu |
| 422 // before finishing loading, we call the UpdateEncoding in | 422 // before finishing loading, we call the UpdateEncoding in |
| 423 // a) function:DidCommitLoadForFrame. When this function is called, | 423 // a) function:DidCommitLoadForFrame. When this function is called, |
| 424 // that means we have got first data. In here we try to get encoding | 424 // that means we have got first data. In here we try to get encoding |
| 425 // of page if it has been specified in http header. | 425 // of page if it has been specified in http header. |
| 426 // b) function:DidReceiveTitle. When this function is called, | 426 // b) function:DidReceiveTitle. When this function is called, |
| 427 // that means we have got specified title. Because in most of webpages, | 427 // that means we have got specified title. Because in most of webpages, |
| 428 // title tags will follow meta tags. In here we try to get encoding of | 428 // title tags will follow meta tags. In here we try to get encoding of |
| 429 // page if it has been specified in meta tag. | 429 // page if it has been specified in meta tag. |
| 430 // c) function:DidFinishDocumentLoadForFrame. When this function is | 430 // c) function:DidFinishDocumentLoadForFrame. When this function is |
| 431 // called, that means we have got whole html page. In here we should | 431 // called, that means we have got whole html page. In here we should |
| 432 // finally get right encoding of page. | 432 // finally get right encoding of page. |
| 433 void UpdateEncoding(WebFrame* frame, const std::wstring& encoding_name); | 433 void UpdateEncoding(WebKit::WebFrame* frame, const std::wstring& encoding_name
); |
| 434 | 434 |
| 435 // Captures the thumbnail and text contents for indexing for the given load | 435 // Captures the thumbnail and text contents for indexing for the given load |
| 436 // ID. If the view's load ID is different than the parameter, this call is | 436 // ID. If the view's load ID is different than the parameter, this call is |
| 437 // a NOP. Typically called on a timer, so the load ID may have changed in the | 437 // a NOP. Typically called on a timer, so the load ID may have changed in the |
| 438 // meantime. | 438 // meantime. |
| 439 void CapturePageInfo(int load_id, bool preliminary_capture); | 439 void CapturePageInfo(int load_id, bool preliminary_capture); |
| 440 | 440 |
| 441 // Called to retrieve the text from the given frame contents, the page text | 441 // Called to retrieve the text from the given frame contents, the page text |
| 442 // up to the maximum amount will be placed into the given buffer | 442 // up to the maximum amount will be placed into the given buffer |
| 443 void CaptureText(WebFrame* frame, std::wstring* contents); | 443 void CaptureText(WebKit::WebFrame* frame, std::wstring* contents); |
| 444 | 444 |
| 445 // Creates a thumbnail of |frame|'s contents resized to (|w|, |h|) | 445 // Creates a thumbnail of |frame|'s contents resized to (|w|, |h|) |
| 446 // and puts that in |thumbnail|. Thumbnail metadata goes in |score|. | 446 // and puts that in |thumbnail|. Thumbnail metadata goes in |score|. |
| 447 bool CaptureThumbnail(WebView* view, int w, int h, | 447 bool CaptureThumbnail(WebView* view, int w, int h, |
| 448 SkBitmap* thumbnail, | 448 SkBitmap* thumbnail, |
| 449 ThumbnailScore* score); | 449 ThumbnailScore* score); |
| 450 | 450 |
| 451 // Calculates how "boring" a thumbnail is. The boring score is the | 451 // Calculates how "boring" a thumbnail is. The boring score is the |
| 452 // 0,1 ranged percentage of pixels that are the most common | 452 // 0,1 ranged percentage of pixels that are the most common |
| 453 // luma. Higher boring scores indicate that a higher percentage of a | 453 // luma. Higher boring scores indicate that a higher percentage of a |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 599 // Attempt to upload the file that we are trying to process if any. | 599 // Attempt to upload the file that we are trying to process if any. |
| 600 // Reset the pending file upload data if the form was successfully | 600 // Reset the pending file upload data if the form was successfully |
| 601 // posted. | 601 // posted. |
| 602 void ProcessPendingUpload(); | 602 void ProcessPendingUpload(); |
| 603 | 603 |
| 604 // Reset the pending file upload. | 604 // Reset the pending file upload. |
| 605 void ResetPendingUpload(); | 605 void ResetPendingUpload(); |
| 606 | 606 |
| 607 // Exposes the DOMAutomationController object that allows JS to send | 607 // Exposes the DOMAutomationController object that allows JS to send |
| 608 // information to the browser process. | 608 // information to the browser process. |
| 609 void BindDOMAutomationController(WebFrame* webframe); | 609 void BindDOMAutomationController(WebKit::WebFrame* webframe); |
| 610 | 610 |
| 611 // Creates DevToolsClient and sets up JavaScript bindings for developer tools | 611 // Creates DevToolsClient and sets up JavaScript bindings for developer tools |
| 612 // UI that is going to be hosted by this RenderView. | 612 // UI that is going to be hosted by this RenderView. |
| 613 void CreateDevToolsClient(); | 613 void CreateDevToolsClient(); |
| 614 | 614 |
| 615 // Locates a sub frame with given xpath | 615 // Locates a sub frame with given xpath |
| 616 WebFrame* GetChildFrame(const std::wstring& frame_xpath) const; | 616 WebKit::WebFrame* GetChildFrame(const std::wstring& frame_xpath) const; |
| 617 | 617 |
| 618 enum ErrorPageType { | 618 enum ErrorPageType { |
| 619 DNS_ERROR, | 619 DNS_ERROR, |
| 620 HTTP_404, | 620 HTTP_404, |
| 621 CONNECTION_ERROR, | 621 CONNECTION_ERROR, |
| 622 }; | 622 }; |
| 623 | 623 |
| 624 // Alternate error page helpers. | 624 // Alternate error page helpers. |
| 625 GURL GetAlternateErrorPageURL( | 625 GURL GetAlternateErrorPageURL( |
| 626 const GURL& failed_url, ErrorPageType error_type); | 626 const GURL& failed_url, ErrorPageType error_type); |
| 627 bool MaybeLoadAlternateErrorPage( | 627 bool MaybeLoadAlternateErrorPage( |
| 628 WebFrame* frame, const WebKit::WebURLError& error, bool replace); | 628 WebKit::WebFrame* frame, const WebKit::WebURLError& error, bool replace); |
| 629 std::string GetAltHTMLForTemplate( | 629 std::string GetAltHTMLForTemplate( |
| 630 const DictionaryValue& error_strings, int template_resource_id) const; | 630 const DictionaryValue& error_strings, int template_resource_id) const; |
| 631 void AltErrorPageFinished( | 631 void AltErrorPageFinished( |
| 632 WebFrame* frame, const WebKit::WebURLError& original_error, | 632 WebKit::WebFrame* frame, const WebKit::WebURLError& original_error, |
| 633 const std::string& html); | 633 const std::string& html); |
| 634 | 634 |
| 635 virtual void DidAddHistoryItem(); | 635 virtual void DidAddHistoryItem(); |
| 636 | 636 |
| 637 // Decodes a data: URL image or returns an empty image in case of failure. | 637 // Decodes a data: URL image or returns an empty image in case of failure. |
| 638 SkBitmap ImageFromDataUrl(const GURL&) const; | 638 SkBitmap ImageFromDataUrl(const GURL&) const; |
| 639 | 639 |
| 640 void DumpLoadHistograms() const; | 640 void DumpLoadHistograms() const; |
| 641 | 641 |
| 642 // Scan the given frame for password forms and send them up to the browser. | 642 // Scan the given frame for password forms and send them up to the browser. |
| 643 void SendPasswordForms(WebFrame* frame); | 643 void SendPasswordForms(WebKit::WebFrame* frame); |
| 644 | 644 |
| 645 void Print(WebFrame* frame, bool script_initiated); | 645 void Print(WebKit::WebFrame* frame, bool script_initiated); |
| 646 | 646 |
| 647 #if defined(OS_LINUX) | 647 #if defined(OS_LINUX) |
| 648 void UpdateFontRenderingFromRendererPrefs(); | 648 void UpdateFontRenderingFromRendererPrefs(); |
| 649 #else | 649 #else |
| 650 void UpdateFontRenderingFromRendererPrefs() { } | 650 void UpdateFontRenderingFromRendererPrefs() { } |
| 651 #endif | 651 #endif |
| 652 | 652 |
| 653 // Bitwise-ORed set of extra bindings that have been enabled. See | 653 // Bitwise-ORed set of extra bindings that have been enabled. See |
| 654 // BindingsPolicy for details. | 654 // BindingsPolicy for details. |
| 655 int enabled_bindings_; | 655 int enabled_bindings_; |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 | 837 |
| 838 RendererPreferences renderer_preferences_; | 838 RendererPreferences renderer_preferences_; |
| 839 | 839 |
| 840 // page id for the last navigation sent to the browser. | 840 // page id for the last navigation sent to the browser. |
| 841 int32 last_top_level_navigation_page_id_; | 841 int32 last_top_level_navigation_page_id_; |
| 842 | 842 |
| 843 DISALLOW_COPY_AND_ASSIGN(RenderView); | 843 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 844 }; | 844 }; |
| 845 | 845 |
| 846 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 846 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |