| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 void OnFilterAdded(IPC::Channel* channel) override; | 66 void OnFilterAdded(IPC::Channel* channel) override; |
| 67 void OnChannelClosing() override; | 67 void OnChannelClosing() override; |
| 68 bool OnMessageReceived(const IPC::Message& message) override; | 68 bool OnMessageReceived(const IPC::Message& message) override; |
| 69 void OnDestruct() const override; | 69 void OnDestruct() const override; |
| 70 | 70 |
| 71 base::WeakPtr<ResourceMessageFilter> GetWeakPtr(); | 71 base::WeakPtr<ResourceMessageFilter> GetWeakPtr(); |
| 72 | 72 |
| 73 void CreateLoaderAndStart(mojom::URLLoaderAssociatedRequest request, | 73 void CreateLoaderAndStart(mojom::URLLoaderAssociatedRequest request, |
| 74 int32_t routing_id, | 74 int32_t routing_id, |
| 75 int32_t request_id, | 75 int32_t request_id, |
| 76 uint32_t options, |
| 76 const ResourceRequest& url_request, | 77 const ResourceRequest& url_request, |
| 77 mojom::URLLoaderClientPtr client) override; | 78 mojom::URLLoaderClientPtr client) override; |
| 78 void SyncLoad(int32_t routing_id, | 79 void SyncLoad(int32_t routing_id, |
| 79 int32_t request_id, | 80 int32_t request_id, |
| 80 const ResourceRequest& request, | 81 const ResourceRequest& request, |
| 81 const SyncLoadCallback& callback) override; | 82 const SyncLoadCallback& callback) override; |
| 82 int child_id() const; | 83 int child_id() const; |
| 83 | 84 |
| 84 ResourceRequesterInfo* requester_info_for_test() { | 85 ResourceRequesterInfo* requester_info_for_test() { |
| 85 return requester_info_.get(); | 86 return requester_info_.get(); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 104 | 105 |
| 105 // This must come last to make sure weak pointers are invalidated first. | 106 // This must come last to make sure weak pointers are invalidated first. |
| 106 base::WeakPtrFactory<ResourceMessageFilter> weak_ptr_factory_; | 107 base::WeakPtrFactory<ResourceMessageFilter> weak_ptr_factory_; |
| 107 | 108 |
| 108 DISALLOW_IMPLICIT_CONSTRUCTORS(ResourceMessageFilter); | 109 DISALLOW_IMPLICIT_CONSTRUCTORS(ResourceMessageFilter); |
| 109 }; | 110 }; |
| 110 | 111 |
| 111 } // namespace content | 112 } // namespace content |
| 112 | 113 |
| 113 #endif // CONTENT_BROWSER_LOADER_RESOURCE_MESSAGE_FILTER_H_ | 114 #endif // CONTENT_BROWSER_LOADER_RESOURCE_MESSAGE_FILTER_H_ |
| OLD | NEW |