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

Side by Side Diff: chrome/browser/renderer_host/chrome_render_message_filter.cc

Issue 16290004: Update chrome/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698