| 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_ERROR_PAGE_RESOURCE_FETCHER_H__ | 5 #ifndef WEBKIT_GLUE_ALT_ERROR_PAGE_RESOURCE_FETCHER_H__ |
| 6 #define WEBKIT_GLUE_ALT_ERROR_PAGE_RESOURCE_FETCHER_H__ | 6 #define WEBKIT_GLUE_ALT_ERROR_PAGE_RESOURCE_FETCHER_H__ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #pragma warning(push, 0) | 10 #pragma warning(push, 0) |
| 11 #include "Timer.h" | 11 #include "Timer.h" |
| 12 #pragma warning(pop) | 12 #pragma warning(pop) |
| 13 | 13 |
| 14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
| 15 #include "base/scoped_ptr.h" | 15 #include "base/scoped_ptr.h" |
| 16 #include "webkit/glue/resource_fetcher.h" | 16 #include "webkit/glue/resource_fetcher.h" |
| 17 #include "webkit/glue/weberror_impl.h" | 17 #include "webkit/glue/weberror_impl.h" |
| 18 #include "webkit/glue/weburlrequest.h" | 18 #include "webkit/glue/weburlrequest.h" |
| 19 | 19 |
| 20 class WebCore::ResourceResponse; | |
| 21 class WebFrameImpl; | 20 class WebFrameImpl; |
| 22 class WebView; | 21 class WebView; |
| 23 | 22 |
| 24 // Used for downloading alternate dns error pages. Once downloading is done | 23 // Used for downloading alternate dns error pages. Once downloading is done |
| 25 // (or fails), the webview delegate is notified. | 24 // (or fails), the webview delegate is notified. |
| 26 class AltErrorPageResourceFetcher : public ResourceFetcher::Delegate { | 25 class AltErrorPageResourceFetcher : public ResourceFetcher::Delegate { |
| 27 public: | 26 public: |
| 28 AltErrorPageResourceFetcher(WebView* web_view, | 27 AltErrorPageResourceFetcher(WebView* web_view, |
| 29 const WebErrorImpl& web_error, | 28 const WebErrorImpl& web_error, |
| 30 WebFrameImpl* web_frame, | 29 WebFrameImpl* web_frame, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 41 scoped_ptr<WebRequest> failed_request_; | 40 scoped_ptr<WebRequest> failed_request_; |
| 42 | 41 |
| 43 // Does the actual fetching. | 42 // Does the actual fetching. |
| 44 scoped_ptr<ResourceFetcherWithTimeout> fetcher_; | 43 scoped_ptr<ResourceFetcherWithTimeout> fetcher_; |
| 45 | 44 |
| 46 DISALLOW_EVIL_CONSTRUCTORS(AltErrorPageResourceFetcher); | 45 DISALLOW_EVIL_CONSTRUCTORS(AltErrorPageResourceFetcher); |
| 47 }; | 46 }; |
| 48 | 47 |
| 49 #endif // WEBKIT_GLUE_ALT_ERROR_PAGE_RESOURCE_FETCHER_H__ | 48 #endif // WEBKIT_GLUE_ALT_ERROR_PAGE_RESOURCE_FETCHER_H__ |
| 50 | 49 |
| OLD | NEW |