summaryrefslogtreecommitdiff
path: root/chromium/content/common/child_process_host_impl.h
diff options
context:
space:
mode:
authorZeno Albisser <zeno.albisser@theqtcompany.com>2014-12-05 15:04:29 +0100
committerAndras Becsi <andras.becsi@theqtcompany.com>2014-12-09 10:49:28 +0100
commitaf6588f8d723931a298c995fa97259bb7f7deb55 (patch)
tree060ca707847ba1735f01af2372e0d5e494dc0366 /chromium/content/common/child_process_host_impl.h
parent2fff84d821cc7b1c785f6404e0f8091333283e74 (diff)
downloadqtwebengine-chromium-af6588f8d723931a298c995fa97259bb7f7deb55.tar.gz
BASELINE: Update chromium to 40.0.2214.28 and ninja to 1.5.3.
Change-Id: I759465284fd64d59ad120219cbe257f7402c4181 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
Diffstat (limited to 'chromium/content/common/child_process_host_impl.h')
-rw-r--r--chromium/content/common/child_process_host_impl.h38
1 files changed, 20 insertions, 18 deletions
diff --git a/chromium/content/common/child_process_host_impl.h b/chromium/content/common/child_process_host_impl.h
index d8a20323500..88c7cf25e83 100644
--- a/chromium/content/common/child_process_host_impl.h
+++ b/chromium/content/common/child_process_host_impl.h
@@ -17,15 +17,12 @@
#include "base/strings/string16.h"
#include "content/public/common/child_process_host.h"
#include "ipc/ipc_listener.h"
+#include "ui/gfx/gpu_memory_buffer.h"
namespace base {
class FilePath;
}
-namespace gfx {
-struct GpuMemoryBufferHandle;
-}
-
namespace IPC {
class MessageFilter;
}
@@ -39,7 +36,7 @@ class ChildProcessHostDelegate;
class CONTENT_EXPORT ChildProcessHostImpl : public ChildProcessHost,
public IPC::Listener {
public:
- virtual ~ChildProcessHostImpl();
+ ~ChildProcessHostImpl() override;
// Public and static for reuse by RenderMessageFilter.
static void AllocateSharedMemory(
@@ -58,13 +55,13 @@ class CONTENT_EXPORT ChildProcessHostImpl : public ChildProcessHost,
static int GenerateChildProcessUniqueId();
// ChildProcessHost implementation
- virtual bool Send(IPC::Message* message) OVERRIDE;
- virtual void ForceShutdown() OVERRIDE;
- virtual std::string CreateChannel() OVERRIDE;
- virtual bool IsChannelOpening() OVERRIDE;
- virtual void AddFilter(IPC::MessageFilter* filter) OVERRIDE;
+ bool Send(IPC::Message* message) override;
+ void ForceShutdown() override;
+ std::string CreateChannel() override;
+ bool IsChannelOpening() override;
+ void AddFilter(IPC::MessageFilter* filter) override;
#if defined(OS_POSIX)
- virtual int TakeClientFileDescriptor() OVERRIDE;
+ base::ScopedFD TakeClientFileDescriptor() override;
#endif
private:
@@ -73,10 +70,10 @@ class CONTENT_EXPORT ChildProcessHostImpl : public ChildProcessHost,
explicit ChildProcessHostImpl(ChildProcessHostDelegate* delegate);
// IPC::Listener methods:
- virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
- virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
- virtual void OnChannelError() OVERRIDE;
- virtual void OnBadMessageReceived(const IPC::Message& message) OVERRIDE;
+ bool OnMessageReceived(const IPC::Message& msg) override;
+ void OnChannelConnected(int32 peer_pid) override;
+ void OnChannelError() override;
+ void OnBadMessageReceived(const IPC::Message& message) override;
// Message handlers:
void OnShutdownRequest();
@@ -84,9 +81,14 @@ class CONTENT_EXPORT ChildProcessHostImpl : public ChildProcessHost,
base::SharedMemoryHandle* handle);
void OnAllocateGpuMemoryBuffer(uint32 width,
uint32 height,
- uint32 internalformat,
- uint32 usage,
- gfx::GpuMemoryBufferHandle* handle);
+ gfx::GpuMemoryBuffer::Format format,
+ gfx::GpuMemoryBuffer::Usage usage,
+ IPC::Message* reply);
+ void OnDeletedGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
+ uint32 sync_point);
+
+ void GpuMemoryBufferAllocated(IPC::Message* reply,
+ const gfx::GpuMemoryBufferHandle& handle);
ChildProcessHostDelegate* delegate_;
base::ProcessHandle peer_handle_;