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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 public: | 46 public: |
47 virtual ~NavigatorContentUtils(); | 47 virtual ~NavigatorContentUtils(); |
48 | 48 |
49 static NavigatorContentUtils* from(LocalFrame&); | 49 static NavigatorContentUtils* from(LocalFrame&); |
50 static const char* supplementName(); | 50 static const char* supplementName(); |
51 | 51 |
52 static void registerProtocolHandler(Navigator&, const String& scheme, const
String& url, const String& title, ExceptionState&); | 52 static void registerProtocolHandler(Navigator&, const String& scheme, const
String& url, const String& title, ExceptionState&); |
53 static String isProtocolHandlerRegistered(Navigator&, const String& scheme,
const String& url, ExceptionState&); | 53 static String isProtocolHandlerRegistered(Navigator&, const String& scheme,
const String& url, ExceptionState&); |
54 static void unregisterProtocolHandler(Navigator&, const String& scheme, cons
t String& url, ExceptionState&); | 54 static void unregisterProtocolHandler(Navigator&, const String& scheme, cons
t String& url, ExceptionState&); |
55 | 55 |
56 static PassOwnPtrWillBeRawPtr<NavigatorContentUtils> create(PassOwnPtr<Navig
atorContentUtilsClient>); | 56 static PassOwnPtrWillBeRawPtr<NavigatorContentUtils> create(PassOwnPtrWillBe
RawPtr<NavigatorContentUtilsClient>); |
57 | 57 |
58 DEFINE_INLINE_VIRTUAL_TRACE() { WillBeHeapSupplement<LocalFrame>::trace(visi
tor); } | 58 DEFINE_INLINE_VIRTUAL_TRACE() |
| 59 { |
| 60 visitor->trace(m_client); |
| 61 WillBeHeapSupplement<LocalFrame>::trace(visitor); |
| 62 } |
59 | 63 |
60 void setClientForTest(PassOwnPtr<NavigatorContentUtilsClient> client) { m_cl
ient = client; } | 64 void setClientForTest(PassOwnPtrWillBeRawPtr<NavigatorContentUtilsClient> cl
ient) { m_client = client; } |
61 | 65 |
62 private: | 66 private: |
63 explicit NavigatorContentUtils(PassOwnPtr<NavigatorContentUtilsClient> clien
t) | 67 explicit NavigatorContentUtils(PassOwnPtrWillBeRawPtr<NavigatorContentUtilsC
lient> client) |
64 : m_client(client) | 68 : m_client(client) |
65 { } | 69 { |
| 70 } |
66 | 71 |
67 NavigatorContentUtilsClient* client() { return m_client.get(); } | 72 NavigatorContentUtilsClient* client() { return m_client.get(); } |
68 | 73 |
69 OwnPtr<NavigatorContentUtilsClient> m_client; | 74 OwnPtrWillBeMember<NavigatorContentUtilsClient> m_client; |
70 }; | 75 }; |
71 | 76 |
72 } // namespace blink | 77 } // namespace blink |
73 | 78 |
74 #endif // NavigatorContentUtils_h | 79 #endif // NavigatorContentUtils_h |
OLD | NEW |