| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, Google Inc. All rights reserved. | 2 * Copyright (C) 2011, Google Inc. All rights reserved. |
| 3 * Copyright (C) 2012, Samsung Electronics. All rights reserved. | 3 * Copyright (C) 2012, Samsung Electronics. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 class NavigatorContentUtils : public RefCountedSupplement<Page, NavigatorContent
Utils> { | 41 class NavigatorContentUtils : public RefCountedSupplement<Page, NavigatorContent
Utils> { |
| 42 public: | 42 public: |
| 43 virtual ~NavigatorContentUtils(); | 43 virtual ~NavigatorContentUtils(); |
| 44 | 44 |
| 45 static const char* supplementName(); | 45 static const char* supplementName(); |
| 46 static NavigatorContentUtils* from(Page*); | 46 static NavigatorContentUtils* from(Page*); |
| 47 | 47 |
| 48 static void registerProtocolHandler(Navigator*, const String& scheme, const
String& url, const String& title, ExceptionState&); | 48 static void registerProtocolHandler(Navigator*, const String& scheme, const
String& url, const String& title, ExceptionState&); |
| 49 | 49 |
| 50 #if ENABLE(CUSTOM_SCHEME_HANDLER) | |
| 51 static String isProtocolHandlerRegistered(Navigator*, const String& scheme,
const String& url, ExceptionState&); | 50 static String isProtocolHandlerRegistered(Navigator*, const String& scheme,
const String& url, ExceptionState&); |
| 52 static void unregisterProtocolHandler(Navigator*, const String& scheme, cons
t String& url, ExceptionState&); | 51 static void unregisterProtocolHandler(Navigator*, const String& scheme, cons
t String& url, ExceptionState&); |
| 53 #endif | |
| 54 | 52 |
| 55 static PassRefPtr<NavigatorContentUtils> create(NavigatorContentUtilsClient*
); | 53 static PassRefPtr<NavigatorContentUtils> create(NavigatorContentUtilsClient*
); |
| 56 | 54 |
| 57 private: | 55 private: |
| 58 explicit NavigatorContentUtils(NavigatorContentUtilsClient* client) | 56 explicit NavigatorContentUtils(NavigatorContentUtilsClient* client) |
| 59 : m_client(client) | 57 : m_client(client) |
| 60 { } | 58 { } |
| 61 | 59 |
| 62 NavigatorContentUtilsClient* client() { return m_client; } | 60 NavigatorContentUtilsClient* client() { return m_client; } |
| 63 | 61 |
| 64 NavigatorContentUtilsClient* m_client; | 62 NavigatorContentUtilsClient* m_client; |
| 65 }; | 63 }; |
| 66 | 64 |
| 67 } // namespace WebCore | 65 } // namespace WebCore |
| 68 | 66 |
| 69 #endif // NavigatorContentUtils_h | 67 #endif // NavigatorContentUtils_h |
| OLD | NEW |