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

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

Issue 7631063: Prefix all IPC messages used by src\chrome with Chrome. For e.g ChromeViewMsg_, ChromeViewHostMsg... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 "chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate. h" 5 #include "chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate. h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/content_settings/host_content_settings_map.h" 9 #include "chrome/browser/content_settings/host_content_settings_map.h"
10 #include "chrome/browser/download/download_request_limiter.h" 10 #include "chrome/browser/download/download_request_limiter.h"
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 293
294 // We must send the content settings for the URL before sending response 294 // We must send the content settings for the URL before sending response
295 // headers to the renderer. 295 // headers to the renderer.
296 const content::ResourceContext& resource_context = filter->resource_context(); 296 const content::ResourceContext& resource_context = filter->resource_context();
297 ProfileIOData* io_data = 297 ProfileIOData* io_data =
298 reinterpret_cast<ProfileIOData*>(resource_context.GetUserData(NULL)); 298 reinterpret_cast<ProfileIOData*>(resource_context.GetUserData(NULL));
299 HostContentSettingsMap* map = io_data->GetHostContentSettingsMap(); 299 HostContentSettingsMap* map = io_data->GetHostContentSettingsMap();
300 300
301 ResourceDispatcherHostRequestInfo* info = 301 ResourceDispatcherHostRequestInfo* info =
302 resource_dispatcher_host_->InfoForRequest(request); 302 resource_dispatcher_host_->InfoForRequest(request);
303 filter->Send(new ViewMsg_SetContentSettingsForLoadingURL( 303 filter->Send(new ChromeViewMsg_SetContentSettingsForLoadingURL(
304 info->route_id(), request->url(), 304 info->route_id(), request->url(),
305 map->GetContentSettings(request->url(), request->url()))); 305 map->GetContentSettings(request->url(), request->url())));
306 306
307 // See if the response contains the X-Auto-Login header. If so, this was 307 // See if the response contains the X-Auto-Login header. If so, this was
308 // a request for a login page, and the server is allowing the browser to 308 // a request for a login page, and the server is allowing the browser to
309 // suggest auto-login, if available. 309 // suggest auto-login, if available.
310 AutoLoginInfoBarDelegate::ShowIfAutoLoginRequested(request, info->child_id(), 310 AutoLoginInfoBarDelegate::ShowIfAutoLoginRequested(request, info->child_id(),
311 info->route_id()); 311 info->route_id());
312 } 312 }
313 313
314 void ChromeResourceDispatcherHostDelegate::OnRequestRedirected( 314 void ChromeResourceDispatcherHostDelegate::OnRequestRedirected(
315 net::URLRequest* request, 315 net::URLRequest* request,
316 ResourceResponse* response, 316 ResourceResponse* response,
317 ResourceMessageFilter* filter) { 317 ResourceMessageFilter* filter) {
318 LoadTimingObserver::PopulateTimingInfo(request, response); 318 LoadTimingObserver::PopulateTimingInfo(request, response);
319 } 319 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/chrome_render_view_host_observer.cc ('k') | chrome/browser/renderer_host/web_cache_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698