| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Samsung Electronics. All Rights Reserved. | 2 * Copyright (C) 2012 Samsung Electronics. 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #define NavigatorContentUtilsClient_h | 27 #define NavigatorContentUtilsClient_h |
| 28 | 28 |
| 29 #include "modules/ModulesExport.h" | 29 #include "modules/ModulesExport.h" |
| 30 #include "platform/heap/Handle.h" | 30 #include "platform/heap/Handle.h" |
| 31 #include "platform/weborigin/KURL.h" | 31 #include "platform/weborigin/KURL.h" |
| 32 #include "wtf/Allocator.h" | 32 #include "wtf/Allocator.h" |
| 33 #include "wtf/text/WTFString.h" | 33 #include "wtf/text/WTFString.h" |
| 34 | 34 |
| 35 namespace blink { | 35 namespace blink { |
| 36 | 36 |
| 37 class LocalFrame; | |
| 38 | |
| 39 class NavigatorContentUtilsClient | 37 class NavigatorContentUtilsClient |
| 40 : public GarbageCollectedFinalized<NavigatorContentUtilsClient> { | 38 : public GarbageCollectedFinalized<NavigatorContentUtilsClient> { |
| 41 public: | 39 public: |
| 42 virtual ~NavigatorContentUtilsClient() {} | 40 virtual ~NavigatorContentUtilsClient() {} |
| 43 virtual void registerProtocolHandler(const String& scheme, | 41 virtual void registerProtocolHandler(const String& scheme, |
| 44 const KURL&, | 42 const KURL&, |
| 45 const String& title) = 0; | 43 const String& title) = 0; |
| 46 | 44 |
| 47 enum CustomHandlersState { | 45 enum CustomHandlersState { |
| 48 CustomHandlersNew, | 46 CustomHandlersNew, |
| 49 CustomHandlersRegistered, | 47 CustomHandlersRegistered, |
| 50 CustomHandlersDeclined | 48 CustomHandlersDeclined |
| 51 }; | 49 }; |
| 52 | 50 |
| 53 virtual CustomHandlersState isProtocolHandlerRegistered(const String& scheme, | 51 virtual CustomHandlersState isProtocolHandlerRegistered(const String& scheme, |
| 54 const KURL&) = 0; | 52 const KURL&) = 0; |
| 55 virtual void unregisterProtocolHandler(const String& scheme, const KURL&) = 0; | 53 virtual void unregisterProtocolHandler(const String& scheme, const KURL&) = 0; |
| 56 | 54 |
| 57 DEFINE_INLINE_VIRTUAL_TRACE() {} | 55 DEFINE_INLINE_VIRTUAL_TRACE() {} |
| 58 }; | 56 }; |
| 59 | 57 |
| 60 MODULES_EXPORT void provideNavigatorContentUtilsTo( | |
| 61 LocalFrame&, | |
| 62 NavigatorContentUtilsClient*); | |
| 63 | |
| 64 } // namespace blink | 58 } // namespace blink |
| 65 | 59 |
| 66 #endif // NavigatorContentUtilsClient_h | 60 #endif // NavigatorContentUtilsClient_h |
| OLD | NEW |