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

Side by Side Diff: components/html_viewer/web_url_loader_impl.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_HTML_VIEWER_WEB_URL_LOADER_IMPL_H_ 5 #ifndef COMPONENTS_HTML_VIEWER_WEB_URL_LOADER_IMPL_H_
6 #define COMPONENTS_HTML_VIEWER_WEB_URL_LOADER_IMPL_H_ 6 #define COMPONENTS_HTML_VIEWER_WEB_URL_LOADER_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "components/html_viewer/mock_web_blob_registry_impl.h" 10 #include "components/html_viewer/mock_web_blob_registry_impl.h"
(...skipping 29 matching lines...) Expand all
40 40
41 // blink::WebURLLoader methods: 41 // blink::WebURLLoader methods:
42 virtual void loadSynchronously(const blink::WebURLRequest& request, 42 virtual void loadSynchronously(const blink::WebURLRequest& request,
43 blink::WebURLResponse& response, 43 blink::WebURLResponse& response,
44 blink::WebURLError& error, 44 blink::WebURLError& error,
45 blink::WebData& data); 45 blink::WebData& data);
46 virtual void loadAsynchronously(const blink::WebURLRequest&, 46 virtual void loadAsynchronously(const blink::WebURLRequest&,
47 blink::WebURLLoaderClient* client); 47 blink::WebURLLoaderClient* client);
48 virtual void cancel(); 48 virtual void cancel();
49 virtual void setDefersLoading(bool defers_loading); 49 virtual void setDefersLoading(bool defers_loading);
50 virtual void setLoadingTaskRunner(blink::WebTaskRunner* web_task_runner);
50 51
51 void OnReceivedResponse(const blink::WebURLRequest& request, 52 void OnReceivedResponse(const blink::WebURLRequest& request,
52 mojo::URLResponsePtr response); 53 mojo::URLResponsePtr response);
53 void OnReceivedError(mojo::URLResponsePtr response); 54 void OnReceivedError(mojo::URLResponsePtr response);
54 void OnReceivedRedirect(const blink::WebURLRequest& request, 55 void OnReceivedRedirect(const blink::WebURLRequest& request,
55 mojo::URLResponsePtr response); 56 mojo::URLResponsePtr response);
56 void OnReceiveWebBlobData( 57 void OnReceiveWebBlobData(
57 const blink::WebURLRequest& request, 58 const blink::WebURLRequest& request,
58 const blink::WebVector<blink::WebBlobData::Item*>& items); 59 const blink::WebVector<blink::WebBlobData::Item*>& items);
59 void ReadMore(); 60 void ReadMore();
(...skipping 14 matching lines...) Expand all
74 size_t current_length_; 75 size_t current_length_;
75 76
76 base::WeakPtrFactory<WebURLLoaderImpl> weak_factory_; 77 base::WeakPtrFactory<WebURLLoaderImpl> weak_factory_;
77 78
78 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderImpl); 79 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderImpl);
79 }; 80 };
80 81
81 } // namespace html_viewer 82 } // namespace html_viewer
82 83
83 #endif // COMPONENTS_HTML_VIEWER_WEB_URL_LOADER_IMPL_H_ 84 #endif // COMPONENTS_HTML_VIEWER_WEB_URL_LOADER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698