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

Unified Diff: content/browser/renderer_host/resource_message_filter.cc

Issue 11414299: Add content/browser/loader/ for resource loading related classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/resource_message_filter.cc
===================================================================
--- content/browser/renderer_host/resource_message_filter.cc (revision 171168)
+++ content/browser/renderer_host/resource_message_filter.cc (working copy)
@@ -1,55 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/browser/renderer_host/resource_message_filter.h"
-
-#include "content/browser/renderer_host/resource_dispatcher_host_impl.h"
-#include "content/browser/appcache/chrome_appcache_service.h"
-#include "content/browser/fileapi/chrome_blob_storage_context.h"
-#include "content/public/browser/browser_thread.h"
-#include "content/public/browser/resource_context.h"
-
-namespace content {
-
-ResourceMessageFilter::ResourceMessageFilter(
- int child_id,
- ProcessType process_type,
- ResourceContext* resource_context,
- ChromeAppCacheService* appcache_service,
- ChromeBlobStorageContext* blob_storage_context,
- URLRequestContextSelector* url_request_context_selector)
- : child_id_(child_id),
- process_type_(process_type),
- resource_context_(resource_context),
- appcache_service_(appcache_service),
- blob_storage_context_(blob_storage_context),
- url_request_context_selector_(url_request_context_selector) {
- DCHECK(resource_context);
- DCHECK(url_request_context_selector);
- // |appcache_service| and |blob_storage_context| may be NULL in unittests.
-}
-
-ResourceMessageFilter::~ResourceMessageFilter() {
-}
-
-void ResourceMessageFilter::OnChannelClosing() {
- BrowserMessageFilter::OnChannelClosing();
-
- // Unhook us from all pending network requests so they don't get sent to a
- // deleted object.
- ResourceDispatcherHostImpl::Get()->CancelRequestsForProcess(child_id_);
-}
-
-bool ResourceMessageFilter::OnMessageReceived(const IPC::Message& message,
- bool* message_was_ok) {
- return ResourceDispatcherHostImpl::Get()->OnMessageReceived(
- message, this, message_was_ok);
-}
-
-net::URLRequestContext* ResourceMessageFilter::GetURLRequestContext(
- ResourceType::Type type) {
- return url_request_context_selector_->GetRequestContext(type);
-}
-
-} // namespace content
« no previous file with comments | « content/browser/renderer_host/resource_message_filter.h ('k') | content/browser/renderer_host/resource_request_info_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698