LEFT | RIGHT |
(no file at all) | |
1 /* | 1 /* |
2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple 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 | 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 static const Type APIType = Type::FramePolicyListener; | 46 static const Type APIType = Type::FramePolicyListener; |
47 | 47 |
48 static Ref<WebFramePolicyListenerProxy> create(WebFrameProxy* frame, uint64_
t listenerID, PolicyListenerType policyType) | 48 static Ref<WebFramePolicyListenerProxy> create(WebFrameProxy* frame, uint64_
t listenerID, PolicyListenerType policyType) |
49 { | 49 { |
50 return adoptRef(*new WebFramePolicyListenerProxy(frame, listenerID, poli
cyType)); | 50 return adoptRef(*new WebFramePolicyListenerProxy(frame, listenerID, poli
cyType)); |
51 } | 51 } |
52 | 52 |
53 void use(std::optional<WebsitePoliciesData>&&); | 53 void use(std::optional<WebsitePoliciesData>&&); |
54 void download(); | 54 void download(); |
55 void ignore(); | 55 void ignore(); |
| 56 void ignoreAndLockBackForwardList(); |
56 | 57 |
57 PolicyListenerType policyListenerType() const { return m_policyType; } | 58 PolicyListenerType policyListenerType() const { return m_policyType; } |
58 | 59 |
59 private: | 60 private: |
60 WebFramePolicyListenerProxy(WebFrameProxy*, uint64_t listenerID, PolicyListe
nerType); | 61 WebFramePolicyListenerProxy(WebFrameProxy*, uint64_t listenerID, PolicyListe
nerType); |
61 | 62 |
62 Type type() const override { return APIType; } | 63 Type type() const override { return APIType; } |
63 | 64 |
64 #if DELEGATE_REF_COUNTING_TO_COCOA | 65 #if DELEGATE_REF_COUNTING_TO_COCOA |
65 void* operator new(size_t size) { return newObject(size, APIType); } | 66 void* operator new(size_t size) { return newObject(size, APIType); } |
66 #endif | 67 #endif |
67 | 68 |
68 PolicyListenerType m_policyType; | 69 PolicyListenerType m_policyType; |
69 }; | 70 }; |
70 | 71 |
71 } // namespace WebKit | 72 } // namespace WebKit |
72 | 73 |
73 #undef DELEGATE_REF_COUNTING_TO_COCOA | 74 #undef DELEGATE_REF_COUNTING_TO_COCOA |
LEFT | RIGHT |