| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 WEBKIT_GLUE_ALT_404_PAGE_RESOURCE_HANDLE_CLIENT_H__ | 5 #ifndef WEBKIT_GLUE_ALT_404_PAGE_RESOURCE_HANDLE_CLIENT_H__ |
| 6 #define WEBKIT_GLUE_ALT_404_PAGE_RESOURCE_HANDLE_CLIENT_H__ | 6 #define WEBKIT_GLUE_ALT_404_PAGE_RESOURCE_HANDLE_CLIENT_H__ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
| 12 | 12 |
| 13 #include "webkit/glue/resource_fetcher.h" | 13 #include "webkit/glue/resource_fetcher.h" |
| 14 | 14 |
| 15 class WebFrameLoaderClient; | 15 class WebFrameLoaderClient; |
| 16 class WebCore::DocumentLoader; | |
| 17 class WebCore::Frame; | |
| 18 class WebCore::ResourceResponse; | |
| 19 | 16 |
| 20 // ResourceHandleClient implementation that is used for downloading alternate | 17 // ResourceHandleClient implementation that is used for downloading alternate |
| 21 // 404 pages. Once downloading is done (or fails), the WebFrameLoaderClient is | 18 // 404 pages. Once downloading is done (or fails), the WebFrameLoaderClient is |
| 22 // notified. | 19 // notified. |
| 23 class Alt404PageResourceFetcher : public ResourceFetcher::Delegate { | 20 class Alt404PageResourceFetcher : public ResourceFetcher::Delegate { |
| 24 public: | 21 public: |
| 25 Alt404PageResourceFetcher(WebFrameLoaderClient* webframeloaderclient, | 22 Alt404PageResourceFetcher(WebFrameLoaderClient* webframeloaderclient, |
| 26 WebCore::Frame* frame, | 23 WebCore::Frame* frame, |
| 27 WebCore::DocumentLoader* doc_loader, | 24 WebCore::DocumentLoader* doc_loader, |
| 28 const GURL& url); | 25 const GURL& url); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 46 // The DocumentLoader associated with this load. If there's an error | 43 // The DocumentLoader associated with this load. If there's an error |
| 47 // talking with the alt 404 page server, we need this to complete the | 44 // talking with the alt 404 page server, we need this to complete the |
| 48 // original load. | 45 // original load. |
| 49 RefPtr<WebCore::DocumentLoader> doc_loader_; | 46 RefPtr<WebCore::DocumentLoader> doc_loader_; |
| 50 | 47 |
| 51 DISALLOW_EVIL_CONSTRUCTORS(Alt404PageResourceFetcher); | 48 DISALLOW_EVIL_CONSTRUCTORS(Alt404PageResourceFetcher); |
| 52 }; | 49 }; |
| 53 | 50 |
| 54 #endif // WEBKIT_GLUE_ALT_404_PAGE_RESOURCE_HANDLE_CLIENT_H__ | 51 #endif // WEBKIT_GLUE_ALT_404_PAGE_RESOURCE_HANDLE_CLIENT_H__ |
| 55 | 52 |
| OLD | NEW |