Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(565)

Side by Side Diff: content/browser/renderer_host/render_message_filter.cc

Issue 7230052: Make kClearSiteDataOnExit work correctly for Flash in multi-profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/render_message_filter.h" 5 #include "content/browser/renderer_host/render_message_filter.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 public: 117 public:
118 OpenChannelToNpapiPluginCallback(RenderMessageFilter* filter, 118 OpenChannelToNpapiPluginCallback(RenderMessageFilter* filter,
119 IPC::Message* reply_msg) 119 IPC::Message* reply_msg)
120 : RenderMessageCompletionCallback(filter, reply_msg) { 120 : RenderMessageCompletionCallback(filter, reply_msg) {
121 } 121 }
122 122
123 virtual int ID() { 123 virtual int ID() {
124 return filter()->render_process_id(); 124 return filter()->render_process_id();
125 } 125 }
126 126
127 virtual bool SaveLocalState() {
128 return filter()->SaveLocalState();
129 }
130
127 virtual bool OffTheRecord() { 131 virtual bool OffTheRecord() {
128 return filter()->incognito(); 132 return filter()->incognito();
129 } 133 }
130 134
131 virtual void SetPluginInfo(const webkit::npapi::WebPluginInfo& info) { 135 virtual void SetPluginInfo(const webkit::npapi::WebPluginInfo& info) {
132 info_ = info; 136 info_ = info;
133 } 137 }
134 138
135 virtual void OnChannelOpened(const IPC::ChannelHandle& handle) { 139 virtual void OnChannelOpened(const IPC::ChannelHandle& handle) {
136 WriteReplyAndDeleteThis(handle); 140 WriteReplyAndDeleteThis(handle);
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 IPC_MESSAGE_UNHANDLED(handled = false) 375 IPC_MESSAGE_UNHANDLED(handled = false)
372 IPC_END_MESSAGE_MAP_EX() 376 IPC_END_MESSAGE_MAP_EX()
373 377
374 return handled; 378 return handled;
375 } 379 }
376 380
377 void RenderMessageFilter::OnDestruct() const { 381 void RenderMessageFilter::OnDestruct() const {
378 BrowserThread::DeleteOnIOThread::Destruct(this); 382 BrowserThread::DeleteOnIOThread::Destruct(this);
379 } 383 }
380 384
385
386 bool RenderMessageFilter::SaveLocalState() const {
387 return content::GetContentClient()->browser()->AllowSaveLocalState(
388 resource_context_);
389 }
390
381 void RenderMessageFilter::OnMsgCreateWindow( 391 void RenderMessageFilter::OnMsgCreateWindow(
382 const ViewHostMsg_CreateWindow_Params& params, 392 const ViewHostMsg_CreateWindow_Params& params,
383 int* route_id, int64* cloned_session_storage_namespace_id) { 393 int* route_id, int64* cloned_session_storage_namespace_id) {
384 if (!content::GetContentClient()->browser()->CanCreateWindow( 394 if (!content::GetContentClient()->browser()->CanCreateWindow(
385 params.opener_url, params.window_container_type, resource_context_)) { 395 params.opener_url, params.window_container_type, resource_context_)) {
386 *route_id = MSG_ROUTING_NONE; 396 *route_id = MSG_ROUTING_NONE;
387 return; 397 return;
388 } 398 }
389 399
390 *cloned_session_storage_namespace_id = 400 *cloned_session_storage_namespace_id =
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 file_for_transit = base::FileDescriptor(file, true); 862 file_for_transit = base::FileDescriptor(file, true);
853 #endif 863 #endif
854 } 864 }
855 865
856 IPC::Message* reply = new ViewMsg_AsyncOpenFile_ACK( 866 IPC::Message* reply = new ViewMsg_AsyncOpenFile_ACK(
857 routing_id, error_code, file_for_transit, message_id); 867 routing_id, error_code, file_for_transit, message_id);
858 BrowserThread::PostTask( 868 BrowserThread::PostTask(
859 BrowserThread::IO, FROM_HERE, NewRunnableMethod( 869 BrowserThread::IO, FROM_HERE, NewRunnableMethod(
860 this, &RenderMessageFilter::Send, reply)); 870 this, &RenderMessageFilter::Send, reply));
861 } 871 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698