| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 if (stream->pdata != this) | 93 if (stream->pdata != this) |
| 94 m_didFail = true; | 94 m_didFail = true; |
| 95 | 95 |
| 96 return 2; | 96 return 2; |
| 97 } | 97 } |
| 98 | 98 |
| 99 int32_t NPP_Write(NPStream* stream, int32_t offset, int32_t len, void* buffe
r) | 99 int32_t NPP_Write(NPStream* stream, int32_t offset, int32_t len, void* buffe
r) |
| 100 { | 100 { |
| 101 if (stream->pdata != this) | 101 if (stream->pdata != this) |
| 102 m_didFail = true; | 102 m_didFail = true; |
| 103 | 103 |
| 104 m_data.insert(m_data.end(), static_cast<char*>(buffer), static_cast<char
*>(buffer) + len); | 104 m_data.insert(m_data.end(), static_cast<char*>(buffer), static_cast<char
*>(buffer) + len); |
| 105 return len; | 105 return len; |
| 106 } | 106 } |
| 107 | 107 |
| 108 vector<char> m_data; | 108 vector<char> m_data; |
| 109 bool m_didFail; | 109 bool m_didFail; |
| 110 }; | 110 }; |
| 111 | 111 |
| 112 static PluginTest::Register<GetURLWithJavaScriptURL> getURLWithJavaScriptURLDest
royingPlugin("get-url-with-javascript-url"); | 112 static PluginTest::Register<GetURLWithJavaScriptURL> getURLWithJavaScriptURLDest
royingPlugin("get-url-with-javascript-url"); |
| OLD | NEW |