OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "webkit/support/weburl_loader_mock.h" | 5 #include "webkit/support/weburl_loader_mock.h" |
6 | 6 |
| 7 #include "base/logging.h" |
7 #include "third_party/WebKit/WebKit/chromium/public/WebData.h" | 8 #include "third_party/WebKit/WebKit/chromium/public/WebData.h" |
8 #include "third_party/WebKit/WebKit/chromium/public/WebURLLoaderClient.h" | 9 #include "third_party/WebKit/WebKit/chromium/public/WebURLLoaderClient.h" |
9 #include "webkit/support/weburl_loader_mock_factory.h" | 10 #include "webkit/support/weburl_loader_mock_factory.h" |
10 | 11 |
11 WebURLLoaderMock::WebURLLoaderMock(WebURLLoaderMockFactory* factory, | 12 WebURLLoaderMock::WebURLLoaderMock(WebURLLoaderMockFactory* factory, |
12 WebKit::WebURLLoader* default_loader) | 13 WebKit::WebURLLoader* default_loader) |
13 : factory_(factory), | 14 : factory_(factory), |
14 client_(NULL), | 15 client_(NULL), |
15 default_loader_(default_loader), | 16 default_loader_(default_loader), |
16 using_default_loader_(false) { | 17 using_default_loader_(false) { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 factory_->CancelLoad(this); | 65 factory_->CancelLoad(this); |
65 } | 66 } |
66 | 67 |
67 void WebURLLoaderMock::setDefersLoading(bool deferred) { | 68 void WebURLLoaderMock::setDefersLoading(bool deferred) { |
68 if (using_default_loader_) { | 69 if (using_default_loader_) { |
69 default_loader_->setDefersLoading(deferred); | 70 default_loader_->setDefersLoading(deferred); |
70 return; | 71 return; |
71 } | 72 } |
72 NOTIMPLEMENTED(); | 73 NOTIMPLEMENTED(); |
73 } | 74 } |
OLD | NEW |