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 "base/logging.h" |
8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebData.h" | 8 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebData.h" |
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLLoaderClient.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLLoader
Client.h" |
10 #include "webkit/support/weburl_loader_mock_factory.h" | 10 #include "webkit/support/weburl_loader_mock_factory.h" |
11 | 11 |
12 WebURLLoaderMock::WebURLLoaderMock(WebURLLoaderMockFactory* factory, | 12 WebURLLoaderMock::WebURLLoaderMock(WebURLLoaderMockFactory* factory, |
13 WebKit::WebURLLoader* default_loader) | 13 WebKit::WebURLLoader* default_loader) |
14 : factory_(factory), | 14 : factory_(factory), |
15 client_(NULL), | 15 client_(NULL), |
16 default_loader_(default_loader), | 16 default_loader_(default_loader), |
17 using_default_loader_(false) { | 17 using_default_loader_(false) { |
18 } | 18 } |
19 | 19 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 factory_->CancelLoad(this); | 65 factory_->CancelLoad(this); |
66 } | 66 } |
67 | 67 |
68 void WebURLLoaderMock::setDefersLoading(bool deferred) { | 68 void WebURLLoaderMock::setDefersLoading(bool deferred) { |
69 if (using_default_loader_) { | 69 if (using_default_loader_) { |
70 default_loader_->setDefersLoading(deferred); | 70 default_loader_->setDefersLoading(deferred); |
71 return; | 71 return; |
72 } | 72 } |
73 NOTIMPLEMENTED(); | 73 NOTIMPLEMENTED(); |
74 } | 74 } |
OLD | NEW |