| OLD | NEW | 
|---|
| 1 // Copyright (c) 2009 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" | 
| 11 | 11 | 
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 55   AppCacheStorage* storage(); | 55   AppCacheStorage* storage(); | 
| 56 | 56 | 
| 57   // Main-resource loading ------------------------------------- | 57   // Main-resource loading ------------------------------------- | 
| 58 | 58 | 
| 59   void MaybeLoadMainResource(URLRequest* request); | 59   void MaybeLoadMainResource(URLRequest* request); | 
| 60 | 60 | 
| 61   // AppCacheStorage::Delegate methods | 61   // AppCacheStorage::Delegate methods | 
| 62   virtual void OnMainResponseFound( | 62   virtual void OnMainResponseFound( | 
| 63       const GURL& url, const AppCacheEntry& entry, | 63       const GURL& url, const AppCacheEntry& entry, | 
| 64       const AppCacheEntry& fallback_entry, | 64       const AppCacheEntry& fallback_entry, | 
| 65       int64 cache_id, const GURL& mainfest_url); | 65       int64 cache_id, const GURL& mainfest_url, | 
|  | 66       bool was_blocked_by_policy); | 
| 66 | 67 | 
| 67   // Sub-resource loading ------------------------------------- | 68   // Sub-resource loading ------------------------------------- | 
| 68 | 69 | 
| 69   void MaybeLoadSubResource(URLRequest* request); | 70   void MaybeLoadSubResource(URLRequest* request); | 
| 70   void ContinueMaybeLoadSubResource(); | 71   void ContinueMaybeLoadSubResource(); | 
| 71 | 72 | 
| 72   // AppCacheHost::Observer override | 73   // AppCacheHost::Observer override | 
| 73   virtual void OnCacheSelectionComplete(AppCacheHost* host); | 74   virtual void OnCacheSelectionComplete(AppCacheHost* host); | 
| 74 | 75 | 
| 75   // Data members ----------------------------------------------- | 76   // Data members ----------------------------------------------- | 
| (...skipping 19 matching lines...) Expand all  Loading... | 
| 95   scoped_refptr<AppCacheURLRequestJob> job_; | 96   scoped_refptr<AppCacheURLRequestJob> job_; | 
| 96 | 97 | 
| 97   friend class AppCacheRequestHandlerTest; | 98   friend class AppCacheRequestHandlerTest; | 
| 98   DISALLOW_COPY_AND_ASSIGN(AppCacheRequestHandler); | 99   DISALLOW_COPY_AND_ASSIGN(AppCacheRequestHandler); | 
| 99 }; | 100 }; | 
| 100 | 101 | 
| 101 }  // namespace appcache | 102 }  // namespace appcache | 
| 102 | 103 | 
| 103 #endif  // WEBKIT_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ | 104 #endif  // WEBKIT_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ | 
| 104 | 105 | 
| OLD | NEW | 
|---|