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 #include "content/browser/loader/async_resource_handler.h" | 5 #include "content/browser/loader/async_resource_handler.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 } // namespace | 67 } // namespace |
68 | 68 |
69 class DependentIOBuffer : public net::WrappedIOBuffer { | 69 class DependentIOBuffer : public net::WrappedIOBuffer { |
70 public: | 70 public: |
71 DependentIOBuffer(ResourceBuffer* backing, char* memory) | 71 DependentIOBuffer(ResourceBuffer* backing, char* memory) |
72 : net::WrappedIOBuffer(memory), | 72 : net::WrappedIOBuffer(memory), |
73 backing_(backing) { | 73 backing_(backing) { |
74 } | 74 } |
75 private: | 75 private: |
76 virtual ~DependentIOBuffer() {} | 76 ~DependentIOBuffer() override {} |
77 scoped_refptr<ResourceBuffer> backing_; | 77 scoped_refptr<ResourceBuffer> backing_; |
78 }; | 78 }; |
79 | 79 |
80 AsyncResourceHandler::AsyncResourceHandler( | 80 AsyncResourceHandler::AsyncResourceHandler( |
81 net::URLRequest* request, | 81 net::URLRequest* request, |
82 ResourceDispatcherHostImpl* rdh) | 82 ResourceDispatcherHostImpl* rdh) |
83 : ResourceHandler(request), | 83 : ResourceHandler(request), |
84 ResourceMessageDelegate(request), | 84 ResourceMessageDelegate(request), |
85 rdh_(rdh), | 85 rdh_(rdh), |
86 pending_data_count_(0), | 86 pending_data_count_(0), |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 request()->LogUnblocked(); | 401 request()->LogUnblocked(); |
402 controller()->Resume(); | 402 controller()->Resume(); |
403 } | 403 } |
404 } | 404 } |
405 | 405 |
406 void AsyncResourceHandler::OnDefer() { | 406 void AsyncResourceHandler::OnDefer() { |
407 request()->LogBlockedBy("AsyncResourceHandler"); | 407 request()->LogBlockedBy("AsyncResourceHandler"); |
408 } | 408 } |
409 | 409 |
410 } // namespace content | 410 } // namespace content |
OLD | NEW |