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

Side by Side Diff: ios/web/web_state/ui/crw_web_controller.mm

Issue 2339323002: [ios] Removed usused handleDocumentRetitledMessage:context: handler. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 #import "ios/web/web_state/ui/crw_web_controller.h" 5 #import "ios/web/web_state/ui/crw_web_controller.h"
6 6
7 #import <WebKit/WebKit.h> 7 #import <WebKit/WebKit.h>
8 8
9 #import <objc/runtime.h> 9 #import <objc/runtime.h>
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 2533 matching lines...) Expand 10 before | Expand all | Expand 10 after
2544 dispatch_once(&onceToken, ^{ 2544 dispatch_once(&onceToken, ^{
2545 handlers = new std::map<std::string, SEL>(); 2545 handlers = new std::map<std::string, SEL>();
2546 (*handlers)["addPluginPlaceholders"] = 2546 (*handlers)["addPluginPlaceholders"] =
2547 @selector(handleAddPluginPlaceholdersMessage:context:); 2547 @selector(handleAddPluginPlaceholdersMessage:context:);
2548 (*handlers)["chrome.send"] = @selector(handleChromeSendMessage:context:); 2548 (*handlers)["chrome.send"] = @selector(handleChromeSendMessage:context:);
2549 (*handlers)["console"] = @selector(handleConsoleMessage:context:); 2549 (*handlers)["console"] = @selector(handleConsoleMessage:context:);
2550 (*handlers)["geolocationDialog.suppressed"] = 2550 (*handlers)["geolocationDialog.suppressed"] =
2551 @selector(handleGeolocationDialogSuppressedMessage:context:); 2551 @selector(handleGeolocationDialogSuppressedMessage:context:);
2552 (*handlers)["document.favicons"] = 2552 (*handlers)["document.favicons"] =
2553 @selector(handleDocumentFaviconsMessage:context:); 2553 @selector(handleDocumentFaviconsMessage:context:);
2554 (*handlers)["document.retitled"] =
2555 @selector(handleDocumentRetitledMessage:context:);
2556 (*handlers)["document.submit"] = 2554 (*handlers)["document.submit"] =
2557 @selector(handleDocumentSubmitMessage:context:); 2555 @selector(handleDocumentSubmitMessage:context:);
2558 (*handlers)["externalRequest"] = 2556 (*handlers)["externalRequest"] =
2559 @selector(handleExternalRequestMessage:context:); 2557 @selector(handleExternalRequestMessage:context:);
2560 (*handlers)["form.activity"] = 2558 (*handlers)["form.activity"] =
2561 @selector(handleFormActivityMessage:context:); 2559 @selector(handleFormActivityMessage:context:);
2562 (*handlers)["navigator.credentials.request"] = 2560 (*handlers)["navigator.credentials.request"] =
2563 @selector(handleCredentialsRequestedMessage:context:); 2561 @selector(handleCredentialsRequestedMessage:context:);
2564 (*handlers)["navigator.credentials.notifySignedIn"] = 2562 (*handlers)["navigator.credentials.notifySignedIn"] =
2565 @selector(handleSignedInMessage:context:); 2563 @selector(handleSignedInMessage:context:);
(...skipping 3050 matching lines...) Expand 10 before | Expand all | Expand 10 after
5616 } 5614 }
5617 5615
5618 return web::WEB_VIEW_DOCUMENT_TYPE_GENERIC; 5616 return web::WEB_VIEW_DOCUMENT_TYPE_GENERIC;
5619 } 5617 }
5620 5618
5621 - (NSString*)refererFromNavigationAction:(WKNavigationAction*)action { 5619 - (NSString*)refererFromNavigationAction:(WKNavigationAction*)action {
5622 return [action.request valueForHTTPHeaderField:@"Referer"]; 5620 return [action.request valueForHTTPHeaderField:@"Referer"];
5623 } 5621 }
5624 5622
5625 @end 5623 @end
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698