Changeset 156508 in webkit
- Timestamp:
- Sep 26, 2013 3:45:46 PM (11 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r156487 r156508 1 2013-09-26 Anders Carlsson <andersca@apple.com> 2 3 Remove Windows code 4 https://bugs.webkit.org/show_bug.cgi?id=121988 5 6 Reviewed by Antti Koivisto. 7 8 * Platform/CoreIPC/Connection.h: 9 * Platform/CoreIPC/win/ConnectionWin.cpp: Removed. 10 * Platform/SharedMemory.h: 11 * Platform/WorkQueue.h: 12 * Platform/win/SharedMemoryWin.cpp: Removed. 13 * Platform/win/WorkQueueWin.cpp: Removed. 14 * Shared/ChildProcess.cpp: 15 * Shared/ChildProcessProxy.cpp: 16 (WebKit::ChildProcessProxy::didFinishLaunching): 17 * UIProcess/Plugins/PluginInfoStore.cpp: 18 (WebKit::PluginInfoStore::loadPluginsIfNecessary): 19 * WebProcess/WebProcess.cpp: 20 1 21 2013-09-26 Anders Carlsson <andersca@apple.com> 2 22 -
trunk/Source/WebKit2/Platform/CoreIPC/Connection.h
r156420 r156508 127 127 }; 128 128 static bool identifierIsNull(Identifier identifier) { return identifier.port == MACH_PORT_NULL; } 129 #elif OS(WINDOWS)130 typedef HANDLE Identifier;131 static bool createServerAndClientIdentifiers(Identifier& serverIdentifier, Identifier& clientIdentifier);132 static bool identifierIsNull(Identifier identifier) { return !identifier; }133 129 #elif USE(UNIX_DOMAIN_SOCKETS) 134 130 typedef int Identifier; … … 313 309 #endif 314 310 315 #elif OS(WINDOWS)316 // Called on the connection queue.317 void readEventHandler();318 void writeEventHandler();319 320 // Called by Connection::SyncMessageState::waitWhileDispatchingSentWin32Messages.321 // The absoluteTime is in seconds, starting on January 1, 1970. The time is assumed to use the322 // same time zone as WTF::currentTime(). Dispatches sent (not posted) messages to the passed-in323 // set of HWNDs until the semaphore is signaled or absoluteTime is reached. Returns true if the324 // semaphore is signaled, false otherwise.325 static bool dispatchSentMessagesUntil(const Vector<HWND>& windows, WTF::BinarySemaphore& semaphore, double absoluteTime);326 327 Vector<uint8_t> m_readBuffer;328 OVERLAPPED m_readState;329 std::unique_ptr<MessageEncoder> m_pendingWriteEncoder;330 OVERLAPPED m_writeState;331 HANDLE m_connectionPipe;332 311 #elif USE(UNIX_DOMAIN_SOCKETS) 333 312 // Called on the connection queue. -
trunk/Source/WebKit2/Platform/SharedMemory.h
r146544 r156508 69 69 #if OS(DARWIN) 70 70 mutable mach_port_t m_port; 71 #elif OS(WINDOWS)72 mutable HANDLE m_handle;73 71 #elif USE(UNIX_DOMAIN_SOCKETS) 74 72 mutable int m_fileDescriptor; … … 87 85 static PassRefPtr<SharedMemory> createFromVMBuffer(void*, size_t); 88 86 89 #if OS(WINDOWS)90 static PassRefPtr<SharedMemory> adopt(HANDLE, size_t, Protection);91 #endif92 93 87 ~SharedMemory(); 94 88 … … 97 91 size_t size() const { return m_size; } 98 92 void* data() const { return m_data; } 99 #if OS(WINDOWS)100 HANDLE handle() const { return m_handle; }101 #endif102 93 103 94 // Creates a copy-on-write copy of the first |size| bytes. … … 114 105 #if OS(DARWIN) 115 106 mach_port_t m_port; 116 #elif OS(WINDOWS)117 HANDLE m_handle;118 107 #elif USE(UNIX_DOMAIN_SOCKETS) 119 108 int m_fileDescriptor; -
trunk/Source/WebKit2/Platform/WorkQueue.h
r149848 r156508 72 72 #if OS(DARWIN) 73 73 dispatch_queue_t dispatchQueue() const { return m_dispatchQueue; } 74 75 #elif OS(WINDOWS)76 void registerHandle(HANDLE, const Function<void()>&);77 void unregisterAndCloseHandle(HANDLE);78 74 #elif PLATFORM(QT) 79 75 QSocketNotifier* registerSocketEventHandler(int, QSocketNotifier::Type, const Function<void()>&); … … 97 93 static void executeFunction(void*); 98 94 dispatch_queue_t m_dispatchQueue; 99 #elif OS(WINDOWS)100 class WorkItemWin : public ThreadSafeRefCounted<WorkItemWin> {101 public:102 static PassRefPtr<WorkItemWin> create(const Function<void()>&, WorkQueue*);103 virtual ~WorkItemWin();104 105 Function<void()>& function() { return m_function; }106 WorkQueue* queue() const { return m_queue.get(); }107 108 protected:109 WorkItemWin(const Function<void()>&, WorkQueue*);110 111 private:112 Function<void()> m_function;113 RefPtr<WorkQueue> m_queue;114 };115 116 class HandleWorkItem : public WorkItemWin {117 public:118 static PassRefPtr<HandleWorkItem> createByAdoptingHandle(HANDLE, const Function<void()>&, WorkQueue*);119 virtual ~HandleWorkItem();120 121 void setWaitHandle(HANDLE waitHandle) { m_waitHandle = waitHandle; }122 HANDLE waitHandle() const { return m_waitHandle; }123 124 private:125 HandleWorkItem(HANDLE, const Function<void()>&, WorkQueue*);126 127 HANDLE m_handle;128 HANDLE m_waitHandle;129 };130 131 static void CALLBACK handleCallback(void* context, BOOLEAN timerOrWaitFired);132 static void CALLBACK timerCallback(void* context, BOOLEAN timerOrWaitFired);133 static DWORD WINAPI workThreadCallback(void* context);134 135 bool tryRegisterAsWorkThread();136 void unregisterAsWorkThread();137 void performWorkOnRegisteredWorkThread();138 139 static void unregisterWaitAndDestroyItemSoon(PassRefPtr<HandleWorkItem>);140 static DWORD WINAPI unregisterWaitAndDestroyItemCallback(void* context);141 142 volatile LONG m_isWorkThreadRegistered;143 144 Mutex m_workItemQueueLock;145 Vector<RefPtr<WorkItemWin>> m_workItemQueue;146 147 Mutex m_handlesLock;148 HashMap<HANDLE, RefPtr<HandleWorkItem>> m_handles;149 150 HANDLE m_timerQueue;151 95 #elif PLATFORM(QT) 152 96 class WorkItemQt; -
trunk/Source/WebKit2/Shared/ChildProcess.cpp
r150935 r156508 28 28 29 29 #include "SandboxInitializationParameters.h" 30 31 #if !OS(WINDOWS)32 30 #include <unistd.h> 33 #endif34 31 35 32 using namespace WebCore; -
trunk/Source/WebKit2/Shared/ChildProcessProxy.cpp
r156354 r156508 128 128 #if OS(DARWIN) 129 129 m_connection->setShouldCloseConnectionOnMachExceptions(); 130 #elif PLATFORM(QT) && !OS(WINDOWS)131 m_connection->setShouldCloseConnectionOnProcessTermination(processIdentifier());132 130 #endif 133 131 -
trunk/Source/WebKit2/UIProcess/Plugins/PluginInfoStore.cpp
r151530 r156508 64 64 } 65 65 66 // We use a ListHashSet so that plugins will be loaded from the additional plugins directories first67 // (which in turn means those plugins will be preferred if two plugins claim the same MIME type).68 #if OS(WINDOWS)69 typedef ListHashSet<String, 32, CaseFoldingHash> PathHashSet;70 #else71 typedef ListHashSet<String, 32> PathHashSet;72 #endif73 74 66 void PluginInfoStore::loadPluginsIfNecessary() 75 67 { … … 77 69 return; 78 70 79 PathHashSetuniquePluginPaths;71 ListHashSet<String, 32> uniquePluginPaths; 80 72 81 73 // First, load plug-ins from the additional plug-ins directories specified. … … 93 85 m_plugins.clear(); 94 86 95 PathHashSet::const_iterator end = uniquePluginPaths.end(); 96 for (PathHashSet::const_iterator it = uniquePluginPaths.begin(); it != end; ++it) 97 loadPlugin(m_plugins, *it); 87 for (const auto& pluginPath : uniquePluginPaths) 88 loadPlugin(m_plugins, pluginPath); 98 89 99 90 m_pluginListIsUpToDate = true; -
trunk/Source/WebKit2/WebProcess/WebProcess.cpp
r156354 r156508 80 80 #include <WebCore/Settings.h> 81 81 #include <WebCore/StorageTracker.h> 82 #include <unistd.h> 82 83 #include <wtf/CurrentTime.h> 83 84 #include <wtf/HashCountedSet.h> … … 95 96 #endif 96 97 97 #if !OS(WINDOWS)98 #include <unistd.h>99 #endif100 98 101 99 #if ENABLE(CUSTOM_PROTOCOLS)
Note: See TracChangeset
for help on using the changeset viewer.