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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // NULL in unittests or for requests from the (NPAPI) plugin process. | 44 // NULL in unittests or for requests from the (NPAPI) plugin process. |
45 ResourceMessageFilter(int child_id, | 45 ResourceMessageFilter(int child_id, |
46 int process_type, | 46 int process_type, |
47 ChromeAppCacheService* appcache_service, | 47 ChromeAppCacheService* appcache_service, |
48 ChromeBlobStorageContext* blob_storage_context, | 48 ChromeBlobStorageContext* blob_storage_context, |
49 storage::FileSystemContext* file_system_context, | 49 storage::FileSystemContext* file_system_context, |
50 ServiceWorkerContextWrapper* service_worker_context, | 50 ServiceWorkerContextWrapper* service_worker_context, |
51 const GetContextsCallback& get_contexts_callback); | 51 const GetContextsCallback& get_contexts_callback); |
52 | 52 |
53 // BrowserMessageFilter implementation. | 53 // BrowserMessageFilter implementation. |
54 virtual void OnChannelClosing() OVERRIDE; | 54 virtual void OnChannelClosing() override; |
55 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 55 virtual bool OnMessageReceived(const IPC::Message& message) override; |
56 | 56 |
57 void GetContexts(const ResourceHostMsg_Request& request, | 57 void GetContexts(const ResourceHostMsg_Request& request, |
58 ResourceContext** resource_context, | 58 ResourceContext** resource_context, |
59 net::URLRequestContext** request_context); | 59 net::URLRequestContext** request_context); |
60 | 60 |
61 // Returns the net::URLRequestContext for the given request. | 61 // Returns the net::URLRequestContext for the given request. |
62 net::URLRequestContext* GetURLRequestContext(ResourceType request_type); | 62 net::URLRequestContext* GetURLRequestContext(ResourceType request_type); |
63 | 63 |
64 ChromeAppCacheService* appcache_service() const { | 64 ChromeAppCacheService* appcache_service() const { |
65 return appcache_service_.get(); | 65 return appcache_service_.get(); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 // This must come last to make sure weak pointers are invalidated first. | 102 // This must come last to make sure weak pointers are invalidated first. |
103 base::WeakPtrFactory<ResourceMessageFilter> weak_ptr_factory_; | 103 base::WeakPtrFactory<ResourceMessageFilter> weak_ptr_factory_; |
104 | 104 |
105 DISALLOW_IMPLICIT_CONSTRUCTORS(ResourceMessageFilter); | 105 DISALLOW_IMPLICIT_CONSTRUCTORS(ResourceMessageFilter); |
106 }; | 106 }; |
107 | 107 |
108 } // namespace content | 108 } // namespace content |
109 | 109 |
110 #endif // CONTENT_BROWSER_LOADER_RESOURCE_MESSAGE_FILTER_H_ | 110 #endif // CONTENT_BROWSER_LOADER_RESOURCE_MESSAGE_FILTER_H_ |
OLD | NEW |