OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/renderer_host/chrome_render_message_filter.h" | 5 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 if (message_service) | 478 if (message_service) |
479 message_service->CloseChannel(port_id, connection_error); | 479 message_service->CloseChannel(port_id, connection_error); |
480 } | 480 } |
481 | 481 |
482 void ChromeRenderMessageFilter::OnExtensionRequestForIOThread( | 482 void ChromeRenderMessageFilter::OnExtensionRequestForIOThread( |
483 int routing_id, | 483 int routing_id, |
484 const ExtensionHostMsg_Request_Params& params) { | 484 const ExtensionHostMsg_Request_Params& params) { |
485 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 485 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
486 | 486 |
487 ExtensionFunctionDispatcher::DispatchOnIOThread( | 487 ExtensionFunctionDispatcher::DispatchOnIOThread( |
488 extension_info_map_, profile_, render_process_id_, | 488 extension_info_map_.get(), profile_, render_process_id_, |
489 weak_ptr_factory_.GetWeakPtr(), routing_id, params); | 489 weak_ptr_factory_.GetWeakPtr(), routing_id, params); |
490 } | 490 } |
491 | 491 |
492 void ChromeRenderMessageFilter::OnExtensionShouldUnloadAck( | 492 void ChromeRenderMessageFilter::OnExtensionShouldUnloadAck( |
493 const std::string& extension_id, int sequence_id) { | 493 const std::string& extension_id, int sequence_id) { |
494 if (extensions::ExtensionSystem::Get(profile_)->process_manager()) { | 494 if (extensions::ExtensionSystem::Get(profile_)->process_manager()) { |
495 extensions::ExtensionSystem::Get(profile_)->process_manager()-> | 495 extensions::ExtensionSystem::Get(profile_)->process_manager()-> |
496 OnShouldUnloadAck(extension_id, sequence_id); | 496 OnShouldUnloadAck(extension_id, sequence_id); |
497 } | 497 } |
498 } | 498 } |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
602 | 602 |
603 void ChromeRenderMessageFilter::OnSetCookie(const IPC::Message& message, | 603 void ChromeRenderMessageFilter::OnSetCookie(const IPC::Message& message, |
604 const GURL& url, | 604 const GURL& url, |
605 const GURL& first_party_for_cookies, | 605 const GURL& first_party_for_cookies, |
606 const std::string& cookie) { | 606 const std::string& cookie) { |
607 #if defined(ENABLE_AUTOMATION) | 607 #if defined(ENABLE_AUTOMATION) |
608 AutomationResourceMessageFilter::SetCookiesForUrl( | 608 AutomationResourceMessageFilter::SetCookiesForUrl( |
609 render_process_id_, message.routing_id(), url, cookie); | 609 render_process_id_, message.routing_id(), url, cookie); |
610 #endif | 610 #endif |
611 } | 611 } |
OLD | NEW |