Chromium Code Reviews

Side by Side Diff: webkit/glue/alt_error_page_resource_fetcher.h

Issue 20378: Reduce the amount of included header files. Vast change like in "Oh God! This... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
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 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 11
12 MSVC_PUSH_WARNING_LEVEL(0); 12 MSVC_PUSH_WARNING_LEVEL(0);
13 #include "Timer.h" 13 #include "Timer.h"
14 MSVC_POP_WARNING(); 14 MSVC_POP_WARNING();
15 15
16 #include "base/basictypes.h"
17 #include "base/scoped_ptr.h" 16 #include "base/scoped_ptr.h"
18 #include "webkit/glue/resource_fetcher.h" 17 #include "webkit/glue/resource_fetcher.h"
19 #include "webkit/glue/weberror_impl.h" 18 #include "webkit/glue/weberror_impl.h"
20 #include "webkit/glue/weburlrequest.h"
21 19
20 class ResourceFetcherWithTimeout;
22 class WebFrameImpl; 21 class WebFrameImpl;
22 class WebRequest;
23 class WebView; 23 class WebView;
24 24
25 // Used for downloading alternate dns error pages. Once downloading is done 25 // Used for downloading alternate dns error pages. Once downloading is done
26 // (or fails), the webview delegate is notified. 26 // (or fails), the webview delegate is notified.
27 class AltErrorPageResourceFetcher : public ResourceFetcher::Delegate { 27 class AltErrorPageResourceFetcher : public ResourceFetcher::Delegate {
28 public: 28 public:
29 AltErrorPageResourceFetcher(WebView* web_view, 29 AltErrorPageResourceFetcher(WebView* web_view,
30 const WebErrorImpl& web_error, 30 const WebErrorImpl& web_error,
31 WebFrameImpl* web_frame, 31 WebFrameImpl* web_frame,
32 const GURL& url); 32 const GURL& url);
33 ~AltErrorPageResourceFetcher();
33 34
34 virtual void OnURLFetchComplete(const WebCore::ResourceResponse& response, 35 virtual void OnURLFetchComplete(const WebCore::ResourceResponse& response,
35 const std::string& data); 36 const std::string& data);
36 37
37 private: 38 private:
38 // References to our owners 39 // References to our owners
39 WebView* web_view_; 40 WebView* web_view_;
40 WebErrorImpl web_error_; 41 WebErrorImpl web_error_;
41 WebFrameImpl* web_frame_; 42 WebFrameImpl* web_frame_;
42 scoped_ptr<WebRequest> failed_request_; 43 scoped_ptr<WebRequest> failed_request_;
43 44
44 // Does the actual fetching. 45 // Does the actual fetching.
45 scoped_ptr<ResourceFetcherWithTimeout> fetcher_; 46 scoped_ptr<ResourceFetcherWithTimeout> fetcher_;
46 47
47 DISALLOW_EVIL_CONSTRUCTORS(AltErrorPageResourceFetcher); 48 DISALLOW_COPY_AND_ASSIGN(AltErrorPageResourceFetcher);
48 }; 49 };
49 50
50 #endif // WEBKIT_GLUE_ALT_ERROR_PAGE_RESOURCE_FETCHER_H__ 51 #endif // WEBKIT_GLUE_ALT_ERROR_PAGE_RESOURCE_FETCHER_H__
51 52
OLDNEW

Powered by Google App Engine