| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // A wrapper around ResourceHandle and ResourceHandleClient that simplifies | 5 // A wrapper around ResourceHandle and ResourceHandleClient that simplifies |
| 6 // the download of an HTTP object. The interface is modeled after URLFetcher | 6 // the download of an HTTP object. The interface is modeled after URLFetcher |
| 7 // in the /chrome/browser. | 7 // in the /chrome/browser. |
| 8 // | 8 // |
| 9 // ResourceFetcher::Delegate::OnURLFetchComplete will be called async after | 9 // ResourceFetcher::Delegate::OnURLFetchComplete will be called async after |
| 10 // the ResourceFetcher object is created. | 10 // the ResourceFetcher object is created. |
| 11 | 11 |
| 12 #ifndef CONTENT_RENDERER_FETCHERS_RESOURCE_FETCHER_H_ | 12 #ifndef CONTENT_RENDERER_FETCHERS_RESOURCE_FETCHER_H_ |
| 13 #define CONTENT_RENDERER_FETCHERS_RESOURCE_FETCHER_H_ | 13 #define CONTENT_RENDERER_FETCHERS_RESOURCE_FETCHER_H_ |
| 14 | 14 |
| 15 #include <string> | 15 #include <string> |
| 16 | 16 |
| 17 #include "base/basictypes.h" | 17 #include "base/basictypes.h" |
| 18 #include "base/callback.h" | 18 #include "base/callback.h" |
| 19 #include "base/compiler_specific.h" | 19 #include "base/compiler_specific.h" |
| 20 #include "base/memory/scoped_ptr.h" | 20 #include "base/memory/scoped_ptr.h" |
| 21 #include "base/timer.h" | 21 #include "base/timer.h" |
| 22 #include "content/common/content_export.h" | 22 #include "content/common/content_export.h" |
| 23 #include "googleurl/src/gurl.h" | 23 #include "googleurl/src/gurl.h" |
| 24 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLLoaderClient.
h" | 24 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h" |
| 25 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLRequest.h" | 25 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
| 26 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLResponse.h" | 26 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
| 27 | 27 |
| 28 class GURL; | 28 class GURL; |
| 29 | 29 |
| 30 namespace WebKit { | 30 namespace WebKit { |
| 31 class WebFrame; | 31 class WebFrame; |
| 32 class WebURLLoader; | 32 class WebURLLoader; |
| 33 struct WebURLError; | 33 struct WebURLError; |
| 34 } | 34 } |
| 35 | 35 |
| 36 namespace content { | 36 namespace content { |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // kill the request. | 126 // kill the request. |
| 127 void TimeoutFired(); | 127 void TimeoutFired(); |
| 128 | 128 |
| 129 // Limit how long we wait for the alternate error page server. | 129 // Limit how long we wait for the alternate error page server. |
| 130 base::OneShotTimer<ResourceFetcherWithTimeout> timeout_timer_; | 130 base::OneShotTimer<ResourceFetcherWithTimeout> timeout_timer_; |
| 131 }; | 131 }; |
| 132 | 132 |
| 133 } // namespace content | 133 } // namespace content |
| 134 | 134 |
| 135 #endif // CONTENT_RENDERER_FETCHERS_RESOURCE_FETCHER_H_ | 135 #endif // CONTENT_RENDERER_FETCHERS_RESOURCE_FETCHER_H_ |
| OLD | NEW |