OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ | 5 #ifndef WEBKIT_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ |
6 #define WEBKIT_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ | 6 #define WEBKIT_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ |
7 | 7 |
8 #include "net/url_request/url_request.h" | 8 #include "net/url_request/url_request.h" |
9 #include "webkit/appcache/appcache_entry.h" | 9 #include "webkit/appcache/appcache_entry.h" |
10 #include "webkit/appcache/appcache_host.h" | 10 #include "webkit/appcache/appcache_host.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 // Main-resource loading ------------------------------------- | 70 // Main-resource loading ------------------------------------- |
71 // Frame and SharedWorker main resources are handled here. | 71 // Frame and SharedWorker main resources are handled here. |
72 | 72 |
73 void MaybeLoadMainResource(net::URLRequest* request); | 73 void MaybeLoadMainResource(net::URLRequest* request); |
74 | 74 |
75 // AppCacheStorage::Delegate methods | 75 // AppCacheStorage::Delegate methods |
76 virtual void OnMainResponseFound( | 76 virtual void OnMainResponseFound( |
77 const GURL& url, const AppCacheEntry& entry, | 77 const GURL& url, const AppCacheEntry& entry, |
78 const GURL& fallback_url, const AppCacheEntry& fallback_entry, | 78 const GURL& fallback_url, const AppCacheEntry& fallback_entry, |
79 int64 cache_id, const GURL& mainfest_url, | 79 int64 cache_id, const GURL& mainfest_url); |
80 bool was_blocked_by_policy); | |
81 | 80 |
82 // Sub-resource loading ------------------------------------- | 81 // Sub-resource loading ------------------------------------- |
83 // Dedicated worker and all manner of sub-resources are handled here. | 82 // Dedicated worker and all manner of sub-resources are handled here. |
84 | 83 |
85 void MaybeLoadSubResource(net::URLRequest* request); | 84 void MaybeLoadSubResource(net::URLRequest* request); |
86 void ContinueMaybeLoadSubResource(); | 85 void ContinueMaybeLoadSubResource(); |
87 | 86 |
88 // AppCacheHost::Observer override | 87 // AppCacheHost::Observer override |
89 virtual void OnCacheSelectionComplete(AppCacheHost* host); | 88 virtual void OnCacheSelectionComplete(AppCacheHost* host); |
90 | 89 |
(...skipping 26 matching lines...) Expand all Loading... |
117 // The job we use to deliver a response. | 116 // The job we use to deliver a response. |
118 scoped_refptr<AppCacheURLRequestJob> job_; | 117 scoped_refptr<AppCacheURLRequestJob> job_; |
119 | 118 |
120 friend class AppCacheRequestHandlerTest; | 119 friend class AppCacheRequestHandlerTest; |
121 DISALLOW_COPY_AND_ASSIGN(AppCacheRequestHandler); | 120 DISALLOW_COPY_AND_ASSIGN(AppCacheRequestHandler); |
122 }; | 121 }; |
123 | 122 |
124 } // namespace appcache | 123 } // namespace appcache |
125 | 124 |
126 #endif // WEBKIT_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ | 125 #endif // WEBKIT_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ |
OLD | NEW |