#include "content/common/pepper_renderer_instance_data.h"
#include "content/public/browser/browser_message_filter.h"
#include "content/public/common/three_d_api_types.h"
+#include "ipc/message_filter.h"
#include "media/audio/audio_parameters.h"
#include "media/base/channel_layout.h"
#include "net/cookies/canonical_cookie.h"
#include "ui/surface/transport_dib.h"
#if defined(OS_MACOSX)
-#include "base/mac/scoped_cftyperef.h"
#include "content/common/mac/font_loader.h"
#endif
class TaskRunner;
}
-namespace gfx {
-class Rect;
-struct GpuMemoryBufferHandle;
-}
-
namespace media {
class AudioManager;
struct MediaLogEvent;
public:
// Create the filter.
RenderMessageFilter(int render_process_id,
- bool is_guest,
PluginServiceImpl * plugin_service,
BrowserContext* browser_context,
net::URLRequestContextGetter* request_context,
MediaInternals* media_internals,
DOMStorageContextWrapper* dom_storage_context);
- // IPC::ChannelProxy::MessageFilter methods:
+ // IPC::MessageFilter methods:
virtual void OnChannelClosing() OVERRIDE;
virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
// BrowserMessageFilter methods:
- virtual bool OnMessageReceived(const IPC::Message& message,
- bool* message_was_ok) OVERRIDE;
+ virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
virtual void OnDestruct() const OVERRIDE;
virtual base::TaskRunner* OverrideTaskRunnerForMessage(
const IPC::Message& message) OVERRIDE;
IPC::Message* reply_msg);
void OnDeleteCookie(const GURL& url,
const std::string& cookieName);
- void OnCookiesEnabled(const GURL& url,
+ void OnCookiesEnabled(int render_frame_id,
+ const GURL& url,
const GURL& first_party_for_cookies,
bool* cookies_enabled);
void OnOpenChannelToPpapiBroker(int routing_id,
const base::FilePath& path);
void OnGenerateRoutingID(int* route_id);
- void OnDownloadUrl(const IPC::Message& message,
+ void OnDownloadUrl(int render_view_id,
const GURL& url,
const Referrer& referrer,
- const base::string16& suggested_name);
+ const base::string16& suggested_name,
+ const bool use_prompt);
void OnCheckNotificationPermission(const GURL& source_origin,
int* permission_level);
// in the renderer on POSIX due to the sandbox.
void OnAllocateSharedMemory(uint32 buffer_size,
base::SharedMemoryHandle* handle);
+ void AllocateSharedBitmapOnFileThread(uint32 buffer_size,
+ const cc::SharedBitmapId& id,
+ IPC::Message* reply_msg);
void OnAllocateSharedBitmap(uint32 buffer_size,
const cc::SharedBitmapId& id,
- base::SharedMemoryHandle* handle);
+ IPC::Message* reply_msg);
void OnAllocatedSharedBitmap(size_t buffer_size,
const base::SharedMemoryHandle& handle,
const cc::SharedBitmapId& id);
void OnCompletedOpenChannelToNpapiPlugin(
OpenChannelToNpapiPluginCallback* client);
- void OnUpdateIsDelayed(const IPC::Message& msg);
void OnAre3DAPIsBlocked(int render_view_id,
const GURL& top_origin_url,
ThreeDAPIType requester,
uint32_t data_size);
#endif
- void OnAllocateGpuMemoryBuffer(uint32 width,
- uint32 height,
- uint32 internalformat,
- gfx::GpuMemoryBufferHandle* handle);
+ void OnAddNavigationTransitionData(
+ int render_frame_id,
+ const std::string& allowed_destination_host_pattern,
+ const std::string& selector,
+ const std::string& markup);
// Cached resource request dispatcher host and plugin service, guaranteed to
// be non-null if Init succeeds. We do not own the objects, they are managed
int render_process_id_;
- bool is_guest_;
-
std::set<OpenChannelToNpapiPluginCallback*> plugin_host_clients_;
// Records the last time we sampled CPU usage of the renderer process.
media::AudioManager* audio_manager_;
MediaInternals* media_internals_;
-#if defined(OS_MACOSX)
- base::ScopedCFTypeRef<CFTypeRef> last_io_surface_;
-#endif
-
DISALLOW_COPY_AND_ASSIGN(RenderMessageFilter);
};