OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_TEST_WEBURL_LOADER_MOCK_H_ | 5 #ifndef CONTENT_TEST_WEBURL_LOADER_MOCK_H_ |
6 #define CONTENT_TEST_WEBURL_LOADER_MOCK_H_ | 6 #define CONTENT_TEST_WEBURL_LOADER_MOCK_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "third_party/WebKit/public/platform/WebURLLoader.h" | 10 #include "third_party/WebKit/public/platform/WebURLLoader.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 virtual void setDefersLoading(bool defer); | 50 virtual void setDefersLoading(bool defer); |
51 | 51 |
52 bool isDeferred() { return is_deferred_; } | 52 bool isDeferred() { return is_deferred_; } |
53 | 53 |
54 private: | 54 private: |
55 WebURLLoaderMockFactory* factory_; | 55 WebURLLoaderMockFactory* factory_; |
56 blink::WebURLLoaderClient* client_; | 56 blink::WebURLLoaderClient* client_; |
57 scoped_ptr<blink::WebURLLoader> default_loader_; | 57 scoped_ptr<blink::WebURLLoader> default_loader_; |
58 bool using_default_loader_; | 58 bool using_default_loader_; |
59 bool is_deferred_; | 59 bool is_deferred_; |
| 60 bool* this_deleted_; |
60 | 61 |
61 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderMock); | 62 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderMock); |
62 }; | 63 }; |
63 | 64 |
64 #endif // CONTENT_TEST_WEBURL_LOADER_MOCK_H_ | 65 #endif // CONTENT_TEST_WEBURL_LOADER_MOCK_H_ |
OLD | NEW |