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

Side by Side Diff: Source/WebKit/chromium/src/FrameLoaderClientImpl.cpp

Issue 15179002: Remove code that is unused after ContextMenu cleanup (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove canHandleRequest code from DRT Created 7 years, 7 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 /* 1 /*
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after
1076 // This method is called when we fail to load the URL for an <object> tag 1076 // This method is called when we fail to load the URL for an <object> tag
1077 // that has fallback content (child elements) and is being loaded as a frame . 1077 // that has fallback content (child elements) and is being loaded as a frame .
1078 // The error parameter indicates the reason for the load failure. 1078 // The error parameter indicates the reason for the load failure.
1079 // We should let the fallback content load only if this wasn't a cancelled 1079 // We should let the fallback content load only if this wasn't a cancelled
1080 // request. 1080 // request.
1081 // Note: The mac version also has a case for "WebKitErrorPluginWillHandleLoa d" 1081 // Note: The mac version also has a case for "WebKitErrorPluginWillHandleLoa d"
1082 ResourceError c = cancelledError(ResourceRequest()); 1082 ResourceError c = cancelledError(ResourceRequest());
1083 return error.errorCode() != c.errorCode() || error.domain() != c.domain(); 1083 return error.errorCode() != c.errorCode() || error.domain() != c.domain();
1084 } 1084 }
1085 1085
1086 bool FrameLoaderClientImpl::canHandleRequest(const ResourceRequest& request) con st
1087 {
1088 return m_webFrame->client()->canHandleRequest(
1089 m_webFrame, WrappedResourceRequest(request));
1090 }
1091
1092 bool FrameLoaderClientImpl::canShowMIMEType(const String& mimeType) const 1086 bool FrameLoaderClientImpl::canShowMIMEType(const String& mimeType) const
1093 { 1087 {
1094 // This method is called to determine if the media type can be shown 1088 // This method is called to determine if the media type can be shown
1095 // "internally" (i.e. inside the browser) regardless of whether or not the 1089 // "internally" (i.e. inside the browser) regardless of whether or not the
1096 // browser or a plugin is doing the rendering. 1090 // browser or a plugin is doing the rendering.
1097 1091
1098 // mimeType strings are supposed to be ASCII, but if they are not for some 1092 // mimeType strings are supposed to be ASCII, but if they are not for some
1099 // reason, then it just means that the mime type will fail all of these "is 1093 // reason, then it just means that the mime type will fail all of these "is
1100 // supported" checks and go down the path of an unhandled mime type. 1094 // supported" checks and go down the path of an unhandled mime type.
1101 if (WebKit::Platform::current()->mimeRegistry()->supportsMIMEType(mimeType) == WebMimeRegistry::IsSupported) 1095 if (WebKit::Platform::current()->mimeRegistry()->supportsMIMEType(mimeType) == WebMimeRegistry::IsSupported)
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
1366 m_webFrame->client()->didLoseWebGLContext(m_webFrame, arbRobustnessConte xtLostReason); 1360 m_webFrame->client()->didLoseWebGLContext(m_webFrame, arbRobustnessConte xtLostReason);
1367 } 1361 }
1368 1362
1369 void FrameLoaderClientImpl::dispatchWillInsertBody() 1363 void FrameLoaderClientImpl::dispatchWillInsertBody()
1370 { 1364 {
1371 if (m_webFrame->client()) 1365 if (m_webFrame->client())
1372 m_webFrame->client()->willInsertBody(m_webFrame); 1366 m_webFrame->client()->willInsertBody(m_webFrame);
1373 } 1367 }
1374 1368
1375 } // namespace WebKit 1369 } // namespace WebKit
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/src/FrameLoaderClientImpl.h ('k') | Source/WebKit/chromium/src/WebSettingsImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698