Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: content/test/weburl_loader_mock.h

Issue 1366883002: [Reland] Post loading tasks on the appropriate WebFrameScheduler's queue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix UAF in BackgroundHTMLParser Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 blink::WebURLResponse& response, 48 blink::WebURLResponse& response,
49 blink::WebURLError& error, 49 blink::WebURLError& error,
50 blink::WebData& data) override; 50 blink::WebData& data) override;
51 void loadAsynchronously(const blink::WebURLRequest& request, 51 void loadAsynchronously(const blink::WebURLRequest& request,
52 blink::WebURLLoaderClient* client) override; 52 blink::WebURLLoaderClient* client) override;
53 void cancel() override; 53 void cancel() override;
54 void setDefersLoading(bool defer) override; 54 void setDefersLoading(bool defer) override;
55 55
56 bool isDeferred() { return is_deferred_; } 56 bool isDeferred() { return is_deferred_; }
57 57
58 void setLoadingTaskRunner(blink::WebTaskRunner*) override;
59
58 private: 60 private:
59 WebURLLoaderMockFactory* factory_; 61 WebURLLoaderMockFactory* factory_;
60 blink::WebURLLoaderClient* client_; 62 blink::WebURLLoaderClient* client_;
61 scoped_ptr<blink::WebURLLoader> default_loader_; 63 scoped_ptr<blink::WebURLLoader> default_loader_;
62 bool using_default_loader_; 64 bool using_default_loader_;
63 bool is_deferred_; 65 bool is_deferred_;
64 66
65 base::WeakPtrFactory<WebURLLoaderMock> weak_factory_; 67 base::WeakPtrFactory<WebURLLoaderMock> weak_factory_;
66 68
67 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderMock); 69 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderMock);
68 }; 70 };
69 71
70 #endif // CONTENT_TEST_WEBURL_LOADER_MOCK_H_ 72 #endif // CONTENT_TEST_WEBURL_LOADER_MOCK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698