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

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

Issue 271087: LTTF: Implement WebFrameLoaderClient::dispatchUnableToImplementPolicy() and so on (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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
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 #include "chrome/renderer/render_view.h" 5 #include "chrome/renderer/render_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1888 matching lines...) Expand 10 before | Expand all | Expand 10 after
1899 type == WebKit::WebNavigationTypeOther; 1899 type == WebKit::WebNavigationTypeOther;
1900 if (is_fork) { 1900 if (is_fork) {
1901 // Open the URL via the browser, not via WebKit. 1901 // Open the URL via the browser, not via WebKit.
1902 OpenURL(url, GURL(), default_policy); 1902 OpenURL(url, GURL(), default_policy);
1903 return WebKit::WebNavigationPolicyIgnore; 1903 return WebKit::WebNavigationPolicyIgnore;
1904 } 1904 }
1905 1905
1906 return default_policy; 1906 return default_policy;
1907 } 1907 }
1908 1908
1909 bool RenderView::canHandleRequest(const WebKit::WebURLRequest& request) {
1910 return true;
1911 }
1912
1913 WebKit::WebURLError RenderView::cannotShowURLError(
1914 const WebKit::WebURLRequest& request) {
1915 // No need to set fields of WebURLError. It is passed to
1916 // unableToImplementPolicyWithError() below.
1917 return WebKit::WebURLError();
1918 }
1919
1920 void RenderView::unableToImplementPolicyWithError(
1921 WebFrame*, const WebKit::WebURLError&) {
1922 // We don't need to do anything here.
1923 // The implementations of this method in WebKit/mac WebKit/win are
1924 // just to log some information of the parameters.
1925 }
1926
1909 void RenderView::willSubmitForm(WebFrame* frame, const WebForm& form) { 1927 void RenderView::willSubmitForm(WebFrame* frame, const WebForm& form) {
1910 NavigationState* navigation_state = 1928 NavigationState* navigation_state =
1911 NavigationState::FromDataSource(frame->provisionalDataSource()); 1929 NavigationState::FromDataSource(frame->provisionalDataSource());
1912 1930
1913 if (navigation_state->transition_type() == PageTransition::LINK) 1931 if (navigation_state->transition_type() == PageTransition::LINK)
1914 navigation_state->set_transition_type(PageTransition::FORM_SUBMIT); 1932 navigation_state->set_transition_type(PageTransition::FORM_SUBMIT);
1915 1933
1916 // Save these to be processed when the ensuing navigation is committed. 1934 // Save these to be processed when the ensuing navigation is committed.
1917 navigation_state->set_searchable_form_data( 1935 navigation_state->set_searchable_form_data(
1918 SearchableFormData::Create(form)); 1936 SearchableFormData::Create(form));
(...skipping 1729 matching lines...) Expand 10 before | Expand all | Expand 10 after
3648 new PluginMsg_SignalModalDialogEvent(host_window_)); 3666 new PluginMsg_SignalModalDialogEvent(host_window_));
3649 3667
3650 message->EnableMessagePumping(); // Runs a nested message loop. 3668 message->EnableMessagePumping(); // Runs a nested message loop.
3651 bool rv = Send(message); 3669 bool rv = Send(message);
3652 3670
3653 PluginChannelHost::Broadcast( 3671 PluginChannelHost::Broadcast(
3654 new PluginMsg_ResetModalDialogEvent(host_window_)); 3672 new PluginMsg_ResetModalDialogEvent(host_window_));
3655 3673
3656 return rv; 3674 return rv;
3657 } 3675 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698