LEFT | RIGHT |
(no file at all) | |
1 /* | 1 /* |
2 * Copyright (C) 2016 Apple Inc. All rights reserved. | 2 * Copyright (C) 2016 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 encoder << sandboxExtensionHandle; | 42 encoder << sandboxExtensionHandle; |
43 encoder << data; | 43 encoder << data; |
44 encoder << string; | 44 encoder << string; |
45 encoder << MIMEType; | 45 encoder << MIMEType; |
46 encoder << encodingName; | 46 encoder << encodingName; |
47 encoder << baseURLString; | 47 encoder << baseURLString; |
48 encoder << unreachableURLString; | 48 encoder << unreachableURLString; |
49 encoder << provisionalLoadErrorURLString; | 49 encoder << provisionalLoadErrorURLString; |
50 encoder << shouldOpenExternalURLsPolicy; | 50 encoder << shouldOpenExternalURLsPolicy; |
51 encoder << shouldCheckNavigationPolicy; | 51 encoder << shouldCheckNavigationPolicy; |
| 52 encoder << lockBackForwardList; |
52 encoder << userData; | 53 encoder << userData; |
53 | 54 |
54 platformEncode(encoder); | 55 platformEncode(encoder); |
55 } | 56 } |
56 | 57 |
57 bool LoadParameters::decode(IPC::Decoder& decoder, LoadParameters& data) | 58 bool LoadParameters::decode(IPC::Decoder& decoder, LoadParameters& data) |
58 { | 59 { |
59 if (!decoder.decode(data.navigationID)) | 60 if (!decoder.decode(data.navigationID)) |
60 return false; | 61 return false; |
61 | 62 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 | 100 |
100 if (!decoder.decode(data.provisionalLoadErrorURLString)) | 101 if (!decoder.decode(data.provisionalLoadErrorURLString)) |
101 return false; | 102 return false; |
102 | 103 |
103 if (!decoder.decode(data.shouldOpenExternalURLsPolicy)) | 104 if (!decoder.decode(data.shouldOpenExternalURLsPolicy)) |
104 return false; | 105 return false; |
105 | 106 |
106 if (!decoder.decode(data.shouldCheckNavigationPolicy)) | 107 if (!decoder.decode(data.shouldCheckNavigationPolicy)) |
107 return false; | 108 return false; |
108 | 109 |
| 110 if (!decoder.decode(data.lockBackForwardList)) |
| 111 return false; |
| 112 |
109 if (!decoder.decode(data.userData)) | 113 if (!decoder.decode(data.userData)) |
110 return false; | 114 return false; |
111 | 115 |
112 if (!platformDecode(decoder, data)) | 116 if (!platformDecode(decoder, data)) |
113 return false; | 117 return false; |
114 | 118 |
115 return true; | 119 return true; |
116 } | 120 } |
117 | 121 |
118 #if !PLATFORM(COCOA) | 122 #if !PLATFORM(COCOA) |
119 | 123 |
120 void LoadParameters::platformEncode(IPC::Encoder&) const | 124 void LoadParameters::platformEncode(IPC::Encoder&) const |
121 { | 125 { |
122 } | 126 } |
123 | 127 |
124 bool LoadParameters::platformDecode(IPC::Decoder&, LoadParameters&) | 128 bool LoadParameters::platformDecode(IPC::Decoder&, LoadParameters&) |
125 { | 129 { |
126 return true; | 130 return true; |
127 } | 131 } |
128 | 132 |
129 #endif // !PLATFORM(COCOA) | 133 #endif // !PLATFORM(COCOA) |
130 | 134 |
131 | 135 |
132 } // namespace WebKit | 136 } // namespace WebKit |
LEFT | RIGHT |