OLD | NEW |
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 #ifndef CONTENT_BROWSER_LOADER_RESOURCE_MESSAGE_FILTER_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_RESOURCE_MESSAGE_FILTER_H_ |
6 #define CONTENT_BROWSER_LOADER_RESOURCE_MESSAGE_FILTER_H_ | 6 #define CONTENT_BROWSER_LOADER_RESOURCE_MESSAGE_FILTER_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 int child_id, | 46 int child_id, |
47 int process_type, | 47 int process_type, |
48 ChromeAppCacheService* appcache_service, | 48 ChromeAppCacheService* appcache_service, |
49 ChromeBlobStorageContext* blob_storage_context, | 49 ChromeBlobStorageContext* blob_storage_context, |
50 fileapi::FileSystemContext* file_system_context, | 50 fileapi::FileSystemContext* file_system_context, |
51 ServiceWorkerContextWrapper* service_worker_context, | 51 ServiceWorkerContextWrapper* service_worker_context, |
52 const GetContextsCallback& get_contexts_callback); | 52 const GetContextsCallback& get_contexts_callback); |
53 | 53 |
54 // BrowserMessageFilter implementation. | 54 // BrowserMessageFilter implementation. |
55 virtual void OnChannelClosing() OVERRIDE; | 55 virtual void OnChannelClosing() OVERRIDE; |
56 virtual bool OnMessageReceived(const IPC::Message& message, | 56 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
57 bool* message_was_ok) OVERRIDE; | |
58 | 57 |
59 void GetContexts(const ResourceHostMsg_Request& request, | 58 void GetContexts(const ResourceHostMsg_Request& request, |
60 ResourceContext** resource_context, | 59 ResourceContext** resource_context, |
61 net::URLRequestContext** request_context); | 60 net::URLRequestContext** request_context); |
62 | 61 |
63 // Returns the net::URLRequestContext for the given request. | 62 // Returns the net::URLRequestContext for the given request. |
64 net::URLRequestContext* GetURLRequestContext( | 63 net::URLRequestContext* GetURLRequestContext( |
65 ResourceType::Type request_type); | 64 ResourceType::Type request_type); |
66 | 65 |
67 ChromeAppCacheService* appcache_service() const { | 66 ChromeAppCacheService* appcache_service() const { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 103 |
105 // This must come last to make sure weak pointers are invalidated first. | 104 // This must come last to make sure weak pointers are invalidated first. |
106 base::WeakPtrFactory<ResourceMessageFilter> weak_ptr_factory_; | 105 base::WeakPtrFactory<ResourceMessageFilter> weak_ptr_factory_; |
107 | 106 |
108 DISALLOW_IMPLICIT_CONSTRUCTORS(ResourceMessageFilter); | 107 DISALLOW_IMPLICIT_CONSTRUCTORS(ResourceMessageFilter); |
109 }; | 108 }; |
110 | 109 |
111 } // namespace content | 110 } // namespace content |
112 | 111 |
113 #endif // CONTENT_BROWSER_LOADER_RESOURCE_MESSAGE_FILTER_H_ | 112 #endif // CONTENT_BROWSER_LOADER_RESOURCE_MESSAGE_FILTER_H_ |
OLD | NEW |