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

Unified Diff: webkit/glue/alt_error_page_resource_fetcher.h

Issue 149172: Modify ResourceFetcher to use WebURLLoader instead of ResourceHandle.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: webkit/glue/alt_error_page_resource_fetcher.h
===================================================================
--- webkit/glue/alt_error_page_resource_fetcher.h (revision 19821)
+++ webkit/glue/alt_error_page_resource_fetcher.h (working copy)
@@ -7,12 +7,6 @@
#include <string>
-#include "base/compiler_specific.h"
-
-MSVC_PUSH_WARNING_LEVEL(0);
-#include "Timer.h"
-MSVC_POP_WARNING();
-
#include "base/scoped_ptr.h"
#include "webkit/api/public/WebURLError.h"
#include "webkit/api/public/WebURLRequest.h"
@@ -22,24 +16,26 @@
class WebFrameImpl;
class WebView;
+namespace webkit_glue {
+
// Used for downloading alternate dns error pages. Once downloading is done
// (or fails), the webview delegate is notified.
-class AltErrorPageResourceFetcher : public ResourceFetcher::Delegate {
+class AltErrorPageResourceFetcher {
public:
AltErrorPageResourceFetcher(WebView* web_view,
+ WebFrame* web_frame,
const WebKit::WebURLError& web_error,
- WebFrameImpl* web_frame,
const GURL& url);
~AltErrorPageResourceFetcher();
- virtual void OnURLFetchComplete(const WebCore::ResourceResponse& response,
- const std::string& data);
-
private:
+ void OnURLFetchComplete(const WebKit::WebURLResponse& response,
+ const std::string& data);
+
// References to our owners
WebView* web_view_;
+ WebFrame* web_frame_;
WebKit::WebURLError web_error_;
- WebFrameImpl* web_frame_;
WebKit::WebURLRequest failed_request_;
// Does the actual fetching.
@@ -48,4 +44,6 @@
DISALLOW_COPY_AND_ASSIGN(AltErrorPageResourceFetcher);
};
+} // namespace webkit_glue
+
#endif // WEBKIT_GLUE_ALT_ERROR_PAGE_RESOURCE_FETCHER_H__

Powered by Google App Engine
This is Rietveld 408576698