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

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

Issue 9425026: Remove getters for HTML5 related objects from the ResourceContext interface. Half of them weren't u… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix race condition Created 8 years, 10 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) 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_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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 request->set_priority(net::IDLE); 149 request->set_priority(net::IDLE);
150 } 150 }
151 151
152 if (resource_type == ResourceType::MAIN_FRAME) { 152 if (resource_type == ResourceType::MAIN_FRAME) {
153 throttles->push_back(new TransferNavigationResourceThrottle(request)); 153 throttles->push_back(new TransferNavigationResourceThrottle(request));
154 154
155 #if defined(OS_CHROMEOS) 155 #if defined(OS_CHROMEOS)
156 // We check offline first, then check safe browsing so that we still can 156 // We check offline first, then check safe browsing so that we still can
157 // block unsafe site after we remove offline page. 157 // block unsafe site after we remove offline page.
158 throttles->push_back(new OfflineResourceThrottle( 158 throttles->push_back(new OfflineResourceThrottle(
159 child_id, route_id, request, resource_context->GetAppCacheService())); 159 child_id, route_id, request, resource_context));
160 #endif 160 #endif
161 161
162 throttles->push_back( 162 throttles->push_back(
163 new prerender::PrerenderResourceThrottle(prerender_tracker_, 163 new prerender::PrerenderResourceThrottle(prerender_tracker_,
164 request, 164 request,
165 child_id, 165 child_id,
166 route_id)); 166 route_id));
167 } 167 }
168 168
169 AppendSafeBrowsingResourceThrottle(request, 169 AppendSafeBrowsingResourceThrottle(request,
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 // suggest auto-login, if available. 323 // suggest auto-login, if available.
324 AutoLoginPrompter::ShowInfoBarIfPossible(request, info->child_id(), 324 AutoLoginPrompter::ShowInfoBarIfPossible(request, info->child_id(),
325 info->route_id()); 325 info->route_id());
326 } 326 }
327 327
328 void ChromeResourceDispatcherHostDelegate::OnRequestRedirected( 328 void ChromeResourceDispatcherHostDelegate::OnRequestRedirected(
329 net::URLRequest* request, 329 net::URLRequest* request,
330 content::ResourceResponse* response) { 330 content::ResourceResponse* response) {
331 LoadTimingObserver::PopulateTimingInfo(request, response); 331 LoadTimingObserver::PopulateTimingInfo(request, response);
332 } 332 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698