andersca@apple.com | 5eb521c | 2010-11-03 17:17:21 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2010 Apple Inc. All rights reserved. |
| 3 | * |
| 4 | * Redistribution and use in source and binary forms, with or without |
| 5 | * modification, are permitted provided that the following conditions |
| 6 | * are met: |
| 7 | * 1. Redistributions of source code must retain the above copyright |
| 8 | * notice, this list of conditions and the following disclaimer. |
| 9 | * 2. Redistributions in binary form must reproduce the above copyright |
| 10 | * notice, this list of conditions and the following disclaimer in the |
| 11 | * documentation and/or other materials provided with the distribution. |
| 12 | * |
| 13 | * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' |
| 14 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
| 15 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
| 16 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS |
| 17 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 18 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 19 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 20 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 21 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 22 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF |
| 23 | * THE POSSIBILITY OF SUCH DAMAGE. |
| 24 | */ |
| 25 | |
| 26 | #ifndef PluginProcessCreationParameters_h |
| 27 | #define PluginProcessCreationParameters_h |
| 28 | |
andersca@apple.com | 4bff8a5 | 2013-09-18 22:45:06 +0000 | [diff] [blame] | 29 | #if ENABLE(NETSCAPE_PLUGIN_API) |
andersca@apple.com | 5eb521c | 2010-11-03 17:17:21 +0000 | [diff] [blame] | 30 | |
carlosgc@webkit.org | 6b170fb | 2016-07-18 09:04:10 +0000 | [diff] [blame] | 31 | #include "Attachment.h" |
andersca@apple.com | 31b00cd | 2013-05-21 22:54:21 +0000 | [diff] [blame] | 32 | #include "PluginProcessAttributes.h" |
cdumez@apple.com | 7d7fe74a | 2017-04-10 08:02:21 +0000 | [diff] [blame] | 33 | #include <wtf/Seconds.h> |
andersca@apple.com | 5eb521c | 2010-11-03 17:17:21 +0000 | [diff] [blame] | 34 | |
mitz@apple.com | 111c4e8 | 2014-02-11 18:00:45 +0000 | [diff] [blame] | 35 | #if PLATFORM(COCOA) |
andersca@apple.com | 098ca3e | 2014-12-19 21:48:38 +0000 | [diff] [blame] | 36 | #include <WebCore/MachSendRight.h> |
andersca@apple.com | 5eb521c | 2010-11-03 17:17:21 +0000 | [diff] [blame] | 37 | #endif |
| 38 | |
andersca@apple.com | 69388f0 | 2013-12-30 20:20:02 +0000 | [diff] [blame] | 39 | namespace IPC { |
andersca@apple.com | 5ecb531 | 2016-08-20 00:11:17 +0000 | [diff] [blame] | 40 | class Decoder; |
andersca@apple.com | f7c9ab2 | 2016-08-19 22:52:59 +0000 | [diff] [blame] | 41 | class Encoder; |
andersca@apple.com | 5eb521c | 2010-11-03 17:17:21 +0000 | [diff] [blame] | 42 | } |
| 43 | |
| 44 | namespace WebKit { |
| 45 | |
| 46 | struct PluginProcessCreationParameters { |
| 47 | PluginProcessCreationParameters(); |
| 48 | |
andersca@apple.com | f7c9ab2 | 2016-08-19 22:52:59 +0000 | [diff] [blame] | 49 | void encode(IPC::Encoder&) const; |
andersca@apple.com | 5ecb531 | 2016-08-20 00:11:17 +0000 | [diff] [blame] | 50 | static bool decode(IPC::Decoder&, PluginProcessCreationParameters&); |
andersca@apple.com | 5eb521c | 2010-11-03 17:17:21 +0000 | [diff] [blame] | 51 | |
andersca@apple.com | 31b00cd | 2013-05-21 22:54:21 +0000 | [diff] [blame] | 52 | PluginProcessType processType; |
beidson@apple.com | 8f83e94 | 2012-08-06 23:42:36 +0000 | [diff] [blame] | 53 | bool supportsAsynchronousPluginInitialization; |
andersca@apple.com | 5eb521c | 2010-11-03 17:17:21 +0000 | [diff] [blame] | 54 | |
cdumez@apple.com | 7d7fe74a | 2017-04-10 08:02:21 +0000 | [diff] [blame] | 55 | Seconds minimumLifetime; |
| 56 | Seconds terminationTimeout; |
ap@apple.com | f9727c8 | 2012-08-31 23:27:27 +0000 | [diff] [blame] | 57 | |
mitz@apple.com | 111c4e8 | 2014-02-11 18:00:45 +0000 | [diff] [blame] | 58 | #if PLATFORM(COCOA) |
andersca@apple.com | 098ca3e | 2014-12-19 21:48:38 +0000 | [diff] [blame] | 59 | WebCore::MachSendRight acceleratedCompositingPort; |
mitz@apple.com | 07cf694 | 2015-10-10 20:05:53 +0000 | [diff] [blame] | 60 | #if TARGET_OS_IPHONE || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101100) |
oliver@apple.com | 7fae074 | 2015-03-27 19:04:28 +0000 | [diff] [blame] | 61 | RetainPtr<CFDataRef> networkATSContext; |
| 62 | #endif |
andersca@apple.com | 5eb521c | 2010-11-03 17:17:21 +0000 | [diff] [blame] | 63 | #endif |
carlosgc@webkit.org | 6b170fb | 2016-07-18 09:04:10 +0000 | [diff] [blame] | 64 | #if OS(LINUX) |
| 65 | IPC::Attachment memoryPressureMonitorHandle; |
| 66 | #endif |
andersca@apple.com | 5eb521c | 2010-11-03 17:17:21 +0000 | [diff] [blame] | 67 | }; |
| 68 | |
| 69 | } // namespace WebKit |
| 70 | |
andersca@apple.com | 4bff8a5 | 2013-09-18 22:45:06 +0000 | [diff] [blame] | 71 | #endif // ENABLE(NETSCAPE_PLUGIN_API) |
andersca@apple.com | 5eb521c | 2010-11-03 17:17:21 +0000 | [diff] [blame] | 72 | |
| 73 | #endif // PluginProcessCreationParameters_h |