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

Side by Side Diff: content/browser/loader/resource_message_filter.cc

Issue 165333004: Revert "Allow MessageFilters to restrict listening to specific message classes" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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 "content/browser/loader/resource_message_filter.h" 5 #include "content/browser/loader/resource_message_filter.h"
6 6
7 #include "content/browser/appcache/chrome_appcache_service.h" 7 #include "content/browser/appcache/chrome_appcache_service.h"
8 #include "content/browser/fileapi/chrome_blob_storage_context.h" 8 #include "content/browser/fileapi/chrome_blob_storage_context.h"
9 #include "content/browser/loader/resource_dispatcher_host_impl.h" 9 #include "content/browser/loader/resource_dispatcher_host_impl.h"
10 #include "content/common/resource_messages.h"
11 #include "content/public/browser/resource_context.h" 10 #include "content/public/browser/resource_context.h"
12 #include "webkit/browser/fileapi/file_system_context.h" 11 #include "webkit/browser/fileapi/file_system_context.h"
13 12
14 namespace content { 13 namespace content {
15 14
16 ResourceMessageFilter::ResourceMessageFilter( 15 ResourceMessageFilter::ResourceMessageFilter(
17 int child_id, 16 int child_id,
18 int process_type, 17 int process_type,
19 ChromeAppCacheService* appcache_service, 18 ChromeAppCacheService* appcache_service,
20 ChromeBlobStorageContext* blob_storage_context, 19 ChromeBlobStorageContext* blob_storage_context,
21 fileapi::FileSystemContext* file_system_context, 20 fileapi::FileSystemContext* file_system_context,
22 const GetContextsCallback& get_contexts_callback) 21 const GetContextsCallback& get_contexts_callback)
23 : BrowserMessageFilter(ResourceMsgStart), 22 : child_id_(child_id),
24 child_id_(child_id),
25 process_type_(process_type), 23 process_type_(process_type),
26 appcache_service_(appcache_service), 24 appcache_service_(appcache_service),
27 blob_storage_context_(blob_storage_context), 25 blob_storage_context_(blob_storage_context),
28 file_system_context_(file_system_context), 26 file_system_context_(file_system_context),
29 get_contexts_callback_(get_contexts_callback), 27 get_contexts_callback_(get_contexts_callback),
30 weak_ptr_factory_(this) { 28 weak_ptr_factory_(this) {
31 } 29 }
32 30
33 ResourceMessageFilter::~ResourceMessageFilter() { 31 ResourceMessageFilter::~ResourceMessageFilter() {
34 } 32 }
(...skipping 15 matching lines...) Expand all
50 ResourceContext** resource_context, 48 ResourceContext** resource_context,
51 net::URLRequestContext** request_context) { 49 net::URLRequestContext** request_context) {
52 return get_contexts_callback_.Run(request, resource_context, request_context); 50 return get_contexts_callback_.Run(request, resource_context, request_context);
53 } 51 }
54 52
55 base::WeakPtr<ResourceMessageFilter> ResourceMessageFilter::GetWeakPtr() { 53 base::WeakPtr<ResourceMessageFilter> ResourceMessageFilter::GetWeakPtr() {
56 return weak_ptr_factory_.GetWeakPtr(); 54 return weak_ptr_factory_.GetWeakPtr();
57 } 55 }
58 56
59 } // namespace content 57 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_dispatcher_host.cc ('k') | content/browser/loader/resource_scheduler_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698