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

Side by Side Diff: Source/WebKit/chromium/public/WebFrameClient.h

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
« no previous file with comments | « no previous file | Source/WebKit/chromium/public/WebSettings.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 133
134 134
135 // Navigational queries ------------------------------------------------ 135 // Navigational queries ------------------------------------------------
136 136
137 // The client may choose to alter the navigation policy. Otherwise, 137 // The client may choose to alter the navigation policy. Otherwise,
138 // defaultPolicy should just be returned. 138 // defaultPolicy should just be returned.
139 virtual WebNavigationPolicy decidePolicyForNavigation( 139 virtual WebNavigationPolicy decidePolicyForNavigation(
140 WebFrame*, const WebURLRequest&, WebNavigationType, 140 WebFrame*, const WebURLRequest&, WebNavigationType,
141 WebNavigationPolicy defaultPolicy, bool isRedirect) { return defaultPoli cy; } 141 WebNavigationPolicy defaultPolicy, bool isRedirect) { return defaultPoli cy; }
142 142
143 // Query if the specified request can be handled.
144 virtual bool canHandleRequest(
145 WebFrame*, const WebURLRequest& request) { return true; }
146
147 // Returns an error corresponding to canHandledRequest() returning false. 143 // Returns an error corresponding to canHandledRequest() returning false.
148 virtual WebURLError cannotHandleRequestError( 144 virtual WebURLError cannotHandleRequestError(
149 WebFrame*, const WebURLRequest& request) { return WebURLError(); } 145 WebFrame*, const WebURLRequest& request) { return WebURLError(); }
150 146
151 // Returns an error corresponding to a user cancellation event. 147 // Returns an error corresponding to a user cancellation event.
152 virtual WebURLError cancelledError( 148 virtual WebURLError cancelledError(
153 WebFrame*, const WebURLRequest& request) { return WebURLError(); } 149 WebFrame*, const WebURLRequest& request) { return WebURLError(); }
154 150
155 // Notify that a URL cannot be handled. 151 // Notify that a URL cannot be handled.
156 virtual void unableToImplementPolicyWithError( 152 virtual void unableToImplementPolicyWithError(
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 // Extensions3D.h in WebCore/platform/graphics). 429 // Extensions3D.h in WebCore/platform/graphics).
434 virtual void didLoseWebGLContext(WebFrame*, int) { } 430 virtual void didLoseWebGLContext(WebFrame*, int) { }
435 431
436 protected: 432 protected:
437 ~WebFrameClient() { } 433 ~WebFrameClient() { }
438 }; 434 };
439 435
440 } // namespace WebKit 436 } // namespace WebKit
441 437
442 #endif 438 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/WebKit/chromium/public/WebSettings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698