OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_THROTTLE_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_OFFLINE_RESOURCE_THROTTLE_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_OFFLINE_RESOURCE_THROTTLE_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_OFFLINE_RESOURCE_THROTTLE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 26 matching lines...) Expand all Loading... | |
37 // OfflineLoadPage callback. | 37 // OfflineLoadPage callback. |
38 void OnBlockingPageComplete(bool proceed); | 38 void OnBlockingPageComplete(bool proceed); |
39 | 39 |
40 // Erase the state associated with a deferred load request. | 40 // Erase the state associated with a deferred load request. |
41 void ClearRequestInfo(); | 41 void ClearRequestInfo(); |
42 bool IsRemote(const GURL& url) const; | 42 bool IsRemote(const GURL& url) const; |
43 | 43 |
44 // True if chrome should show the offline page. | 44 // True if chrome should show the offline page. |
45 bool ShouldShowOfflinePage(const GURL& url) const; | 45 bool ShouldShowOfflinePage(const GURL& url) const; |
46 | 46 |
47 // A callback to tell if an appcache exists. | 47 // A callback to tell if an appcache exists. |
falken
2014/12/16 08:16:49
This comment should generalized now that SW also e
michaeln
2015/01/09 01:47:36
i removed the comments since they were just statin
| |
48 void OnCanHandleOfflineComplete(int rv); | 48 void OnCanHandleOfflineComplete(int rv); |
49 | 49 |
50 net::URLRequest* request_; | 50 net::URLRequest* request_; |
51 // Safe to keep a pointer around since AppCacheService outlives all requests. | 51 // Safe to keep a pointer around since AppCacheService outlives all requests. |
52 content::AppCacheService* appcache_service_; | 52 content::AppCacheService* appcache_service_; |
53 net::CancelableCompletionCallback appcache_completion_callback_; | 53 net::CancelableCompletionCallback appcache_completion_callback_; |
54 net::CancelableCompletionCallback service_worker_completion_callback_; | |
55 int pending_callbacks_; | |
54 | 56 |
55 DISALLOW_COPY_AND_ASSIGN(OfflineResourceThrottle); | 57 DISALLOW_COPY_AND_ASSIGN(OfflineResourceThrottle); |
56 }; | 58 }; |
57 | 59 |
58 #endif // CHROME_BROWSER_RENDERER_HOST_OFFLINE_RESOURCE_THROTTLE_H_ | 60 #endif // CHROME_BROWSER_RENDERER_HOST_OFFLINE_RESOURCE_THROTTLE_H_ |
OLD | NEW |