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 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
611 if (message_service) | 611 if (message_service) |
612 message_service->CloseChannel(port_id, error_message); | 612 message_service->CloseChannel(port_id, error_message); |
613 } | 613 } |
614 | 614 |
615 void ChromeRenderMessageFilter::OnExtensionRequestForIOThread( | 615 void ChromeRenderMessageFilter::OnExtensionRequestForIOThread( |
616 int routing_id, | 616 int routing_id, |
617 const ExtensionHostMsg_Request_Params& params) { | 617 const ExtensionHostMsg_Request_Params& params) { |
618 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 618 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
619 | 619 |
620 ExtensionFunctionDispatcher::DispatchOnIOThread( | 620 ExtensionFunctionDispatcher::DispatchOnIOThread( |
621 extension_info_map_, profile_, render_process_id_, | 621 extension_info_map_.get(), |
622 weak_ptr_factory_.GetWeakPtr(), routing_id, params); | 622 profile_, |
| 623 render_process_id_, |
| 624 weak_ptr_factory_.GetWeakPtr(), |
| 625 routing_id, |
| 626 params); |
623 } | 627 } |
624 | 628 |
625 void ChromeRenderMessageFilter::OnExtensionShouldSuspendAck( | 629 void ChromeRenderMessageFilter::OnExtensionShouldSuspendAck( |
626 const std::string& extension_id, int sequence_id) { | 630 const std::string& extension_id, int sequence_id) { |
627 if (extensions::ExtensionSystem::Get(profile_)->process_manager()) { | 631 if (extensions::ExtensionSystem::Get(profile_)->process_manager()) { |
628 extensions::ExtensionSystem::Get(profile_)->process_manager()-> | 632 extensions::ExtensionSystem::Get(profile_)->process_manager()-> |
629 OnShouldSuspendAck(extension_id, sequence_id); | 633 OnShouldSuspendAck(extension_id, sequence_id); |
630 } | 634 } |
631 } | 635 } |
632 | 636 |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
777 | 781 |
778 void ChromeRenderMessageFilter::OnSetCookie(const IPC::Message& message, | 782 void ChromeRenderMessageFilter::OnSetCookie(const IPC::Message& message, |
779 const GURL& url, | 783 const GURL& url, |
780 const GURL& first_party_for_cookies, | 784 const GURL& first_party_for_cookies, |
781 const std::string& cookie) { | 785 const std::string& cookie) { |
782 #if defined(ENABLE_AUTOMATION) | 786 #if defined(ENABLE_AUTOMATION) |
783 AutomationResourceMessageFilter::SetCookiesForUrl( | 787 AutomationResourceMessageFilter::SetCookiesForUrl( |
784 render_process_id_, message.routing_id(), url, cookie); | 788 render_process_id_, message.routing_id(), url, cookie); |
785 #endif | 789 #endif |
786 } | 790 } |
OLD | NEW |