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

Side by Side Diff: public/web/WebFrameClient.h

Issue 1226113002: Move protocol registration from WebViewClient to WebFrameClient, part 2/3. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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 | « Source/web/WebViewImpl.cpp ('k') | public/web/WebViewClient.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 23 matching lines...) Expand all
34 #include "../platform/WebColor.h" 34 #include "../platform/WebColor.h"
35 #include "WebAXObject.h" 35 #include "WebAXObject.h"
36 #include "WebDOMMessageEvent.h" 36 #include "WebDOMMessageEvent.h"
37 #include "WebDataSource.h" 37 #include "WebDataSource.h"
38 #include "WebFrame.h" 38 #include "WebFrame.h"
39 #include "WebHistoryCommitType.h" 39 #include "WebHistoryCommitType.h"
40 #include "WebHistoryItem.h" 40 #include "WebHistoryItem.h"
41 #include "WebIconURL.h" 41 #include "WebIconURL.h"
42 #include "WebNavigationPolicy.h" 42 #include "WebNavigationPolicy.h"
43 #include "WebNavigationType.h" 43 #include "WebNavigationType.h"
44 #include "WebNavigatorContentUtilsClient.h"
44 #include "WebSandboxFlags.h" 45 #include "WebSandboxFlags.h"
45 #include "WebTextDirection.h" 46 #include "WebTextDirection.h"
46 #include "public/platform/WebCommon.h" 47 #include "public/platform/WebCommon.h"
47 #include "public/platform/WebFileSystem.h" 48 #include "public/platform/WebFileSystem.h"
48 #include "public/platform/WebFileSystemType.h" 49 #include "public/platform/WebFileSystemType.h"
49 #include "public/platform/WebSecurityOrigin.h" 50 #include "public/platform/WebSecurityOrigin.h"
50 #include "public/platform/WebStorageQuotaCallbacks.h" 51 #include "public/platform/WebStorageQuotaCallbacks.h"
51 #include "public/platform/WebStorageQuotaType.h" 52 #include "public/platform/WebStorageQuotaType.h"
52 #include "public/platform/WebURLError.h" 53 #include "public/platform/WebURLError.h"
53 #include "public/platform/WebURLRequest.h" 54 #include "public/platform/WebURLRequest.h"
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 virtual WebPermissionClient* permissionClient() { return 0; } 640 virtual WebPermissionClient* permissionClient() { return 0; }
640 641
641 // Virtual Reality ----------------------------------------------------- 642 // Virtual Reality -----------------------------------------------------
642 643
643 // Access the embedder API for virtual reality client. 644 // Access the embedder API for virtual reality client.
644 virtual WebVRClient* webVRClient() { return 0; } 645 virtual WebVRClient* webVRClient() { return 0; }
645 646
646 // App Banners --------------------------------------------------------- 647 // App Banners ---------------------------------------------------------
647 virtual WebAppBannerClient* appBannerClient() { return 0; } 648 virtual WebAppBannerClient* appBannerClient() { return 0; }
648 649
650 // Navigator Content Utils --------------------------------------------
651
652 // Registers a new URL handler for the given protocol.
653 virtual void registerProtocolHandler(const WebString& scheme,
654 const WebURL& url,
655 const WebString& title) { }
656
657 // Unregisters a given URL handler for the given protocol.
658 virtual void unregisterProtocolHandler(const WebString& scheme, const WebURL & url) { }
659
660 // Check if a given URL handler is registered for the given protocol.
661 virtual WebCustomHandlersState isProtocolHandlerRegistered(const WebString& scheme, const WebURL& url)
662 {
663 return WebCustomHandlersNew;
664 }
665
649 protected: 666 protected:
650 virtual ~WebFrameClient() { } 667 virtual ~WebFrameClient() { }
651 }; 668 };
652 669
653 } // namespace blink 670 } // namespace blink
654 671
655 #endif 672 #endif
OLDNEW
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | public/web/WebViewClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698