blob: 5eb75449921ea37b2ff3db92539eab024b140f3f [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Multiply-included message file, hence no include guard.
#include "build/build_config.h"
#include "content/common/content_export.h"
#include "content/common/content_param_traits.h"
#include "content/public/common/common_param_traits.h"
#include "ipc/ipc_channel_handle.h"
#include "ipc/ipc_message_macros.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/rect.h"
#define IPC_MESSAGE_START PluginProcessMsgStart
// PluginProcess messages
// These are messages sent from the browser to the plugin process.
// Tells the plugin process to create a new channel for communication with a
// given renderer. The channel name is returned in a
// PluginProcessHostMsg_ChannelCreated message. The renderer ID is passed so
// that the plugin process reuses an existing channel to that process if it
// exists. This ID is a unique opaque identifier generated by the browser
// process.
int /* renderer_id */,
bool /* off_the_record */)
// Tells the plugin process to notify every connected renderer of the pending
// shutdown, so we don't mistake it for a crash.
std::string /* site */,
uint64 /* flags */,
uint64 /* max_age */)
// PluginProcessHost messages
// These are messages sent from the plugin process to the browser process.
// Response to a PluginProcessMsg_CreateChannel message.
IPC::ChannelHandle /* channel_handle */)
int /* renderer_id */)
bool /* success */)
#if defined(OS_WIN)
// Destroys the given window's parent on the UI thread.
HWND /* window */,
HWND /* parent */)
#if defined(OS_MACOSX)
// On Mac OS X, we need the browser to keep track of plugin windows so
// that it can add and remove them from stacking groups, hide and show the
// menu bar, etc. We pass the window rect for convenience so that the
// browser can easily tell if the window is fullscreen.
// Notifies the browser that the plugin has selected a window (i.e., brought
// it to the front and wants it to have keyboard focus).
uint32 /* window ID */,
gfx::Rect /* window rect */,
bool /* modal */)
// Notifies the browser that the plugin has shown a window.
uint32 /* window ID */,
gfx::Rect /* window rect */,
bool /* modal */)
// Notifies the browser that the plugin has hidden a window.
uint32 /* window ID */,
gfx::Rect /* window rect */)
// Notifies the browser that a plugin instance has requested a cursor
// visibility change.
bool /* cursor visibility */)