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 #ifndef CHROME_BROWSER_RENDERER_HOST_OFFLINE_RESOURCE_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_OFFLINE_RESOURCE_HANDLER_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_OFFLINE_RESOURCE_HANDLER_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_OFFLINE_RESOURCE_HANDLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "chrome/browser/chromeos/offline/offline_load_page.h" | 12 #include "chrome/browser/chromeos/offline/offline_load_page.h" |
13 #include "content/browser/renderer_host/resource_handler.h" | 13 #include "content/browser/renderer_host/resource_handler.h" |
14 #include "net/base/completion_callback.h" | 14 #include "net/base/completion_callback.h" |
15 | 15 |
16 class ChromeAppCacheService; | 16 class ChromeAppCacheService; |
17 class MessageLoop; | |
18 class ResourceDispatcherHost; | 17 class ResourceDispatcherHost; |
19 | 18 |
20 namespace net { | 19 namespace net { |
21 class URLRequest; | 20 class URLRequest; |
22 } // namespace net | 21 } // namespace net |
23 | 22 |
24 // Used to show an offline interstitial page when the network is not available. | 23 // Used to show an offline interstitial page when the network is not available. |
25 class OfflineResourceHandler : public ResourceHandler { | 24 class OfflineResourceHandler : public ResourceHandler { |
26 public: | 25 public: |
27 OfflineResourceHandler(ResourceHandler* handler, | 26 OfflineResourceHandler(ResourceHandler* handler, |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 int deferred_request_id_; | 80 int deferred_request_id_; |
82 GURL deferred_url_; | 81 GURL deferred_url_; |
83 | 82 |
84 scoped_refptr<net::CancelableOldCompletionCallback<OfflineResourceHandler> > | 83 scoped_refptr<net::CancelableOldCompletionCallback<OfflineResourceHandler> > |
85 appcache_completion_callback_; | 84 appcache_completion_callback_; |
86 | 85 |
87 DISALLOW_COPY_AND_ASSIGN(OfflineResourceHandler); | 86 DISALLOW_COPY_AND_ASSIGN(OfflineResourceHandler); |
88 }; | 87 }; |
89 | 88 |
90 #endif // CHROME_BROWSER_RENDERER_HOST_OFFLINE_RESOURCE_HANDLER_H_ | 89 #endif // CHROME_BROWSER_RENDERER_HOST_OFFLINE_RESOURCE_HANDLER_H_ |
OLD | NEW |