| 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 18 matching lines...) Expand all Loading... |
| 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; | 37 class LocalFrame; |
| 38 | 38 |
| 39 class NavigatorContentUtilsClient : public NoBaseWillBeGarbageCollectedFinalized
<NavigatorContentUtilsClient> { | 39 class NavigatorContentUtilsClient : public GarbageCollectedFinalized<NavigatorCo
ntentUtilsClient> { |
| 40 USING_FAST_MALLOC_WILL_BE_REMOVED(NavigatorContentUtilsClient); | |
| 41 public: | 40 public: |
| 42 virtual ~NavigatorContentUtilsClient() { } | 41 virtual ~NavigatorContentUtilsClient() { } |
| 43 virtual void registerProtocolHandler(const String& scheme, const KURL&, cons
t String& title) = 0; | 42 virtual void registerProtocolHandler(const String& scheme, const KURL&, cons
t String& title) = 0; |
| 44 | 43 |
| 45 enum CustomHandlersState { | 44 enum CustomHandlersState { |
| 46 CustomHandlersNew, | 45 CustomHandlersNew, |
| 47 CustomHandlersRegistered, | 46 CustomHandlersRegistered, |
| 48 CustomHandlersDeclined | 47 CustomHandlersDeclined |
| 49 }; | 48 }; |
| 50 | 49 |
| 51 virtual CustomHandlersState isProtocolHandlerRegistered(const String& scheme
, const KURL&) = 0; | 50 virtual CustomHandlersState isProtocolHandlerRegistered(const String& scheme
, const KURL&) = 0; |
| 52 virtual void unregisterProtocolHandler(const String& scheme, const KURL&) =
0; | 51 virtual void unregisterProtocolHandler(const String& scheme, const KURL&) =
0; |
| 53 | 52 |
| 54 DEFINE_INLINE_VIRTUAL_TRACE() { } | 53 DEFINE_INLINE_VIRTUAL_TRACE() { } |
| 55 }; | 54 }; |
| 56 | 55 |
| 57 MODULES_EXPORT void provideNavigatorContentUtilsTo(LocalFrame&, PassOwnPtrWillBe
RawPtr<NavigatorContentUtilsClient>); | 56 MODULES_EXPORT void provideNavigatorContentUtilsTo(LocalFrame&, RawPtr<Navigator
ContentUtilsClient>); |
| 58 | 57 |
| 59 } // namespace blink | 58 } // namespace blink |
| 60 | 59 |
| 61 #endif // NavigatorContentUtilsClient_h | 60 #endif // NavigatorContentUtilsClient_h |
| OLD | NEW |