| OLD | NEW |
| 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_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ | 5 #ifndef WEBKIT_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ |
| 6 #define WEBKIT_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ | 6 #define WEBKIT_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include "googleurl/src/gurl.h" | 8 #include "googleurl/src/gurl.h" |
| 9 #include "webkit/api/public/WebApplicationCacheHostClient.h" | 9 #include "webkit/api/public/WebApplicationCacheHostClient.h" |
| 10 #include "webkit/api/public/WebURLResponse.h" | 10 #include "webkit/api/public/WebURLResponse.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 virtual void selectCacheWithoutManifest(); | 33 virtual void selectCacheWithoutManifest(); |
| 34 virtual bool selectCacheWithManifest(const WebKit::WebURL& manifestURL); | 34 virtual bool selectCacheWithManifest(const WebKit::WebURL& manifestURL); |
| 35 virtual void didReceiveResponseForMainResource(const WebKit::WebURLResponse&); | 35 virtual void didReceiveResponseForMainResource(const WebKit::WebURLResponse&); |
| 36 virtual void didReceiveDataForMainResource(const char* data, int len); | 36 virtual void didReceiveDataForMainResource(const char* data, int len); |
| 37 virtual void didFinishLoadingMainResource(bool success); | 37 virtual void didFinishLoadingMainResource(bool success); |
| 38 virtual WebKit::WebApplicationCacheHost::Status status(); | 38 virtual WebKit::WebApplicationCacheHost::Status status(); |
| 39 virtual bool startUpdate(); | 39 virtual bool startUpdate(); |
| 40 virtual bool swapCache(); | 40 virtual bool swapCache(); |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 enum ShouldCaptureMainResponse { | 43 enum IsNewMasterEntry { |
| 44 MAYBE, | 44 MAYBE, |
| 45 YES, | 45 YES, |
| 46 NO | 46 NO |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 WebKit::WebApplicationCacheHostClient* client_; | 49 WebKit::WebApplicationCacheHostClient* client_; |
| 50 AppCacheBackend* backend_; | 50 AppCacheBackend* backend_; |
| 51 int host_id_; | 51 int host_id_; |
| 52 bool has_status_; | 52 bool has_status_; |
| 53 appcache::Status status_; | 53 appcache::Status status_; |
| 54 bool has_cached_status_; | 54 bool has_cached_status_; |
| 55 appcache::Status cached_status_; | 55 appcache::Status cached_status_; |
| 56 WebKit::WebURLResponse main_response_; | 56 WebKit::WebURLResponse document_response_; |
| 57 GURL main_response_url_; | 57 GURL document_url_; |
| 58 bool is_in_http_family_; | 58 bool is_scheme_supported_; |
| 59 ShouldCaptureMainResponse should_capture_main_response_; | 59 bool is_get_method_; |
| 60 IsNewMasterEntry is_new_master_entry_; |
| 60 }; | 61 }; |
| 61 | 62 |
| 62 } // namespace | 63 } // namespace |
| 63 | 64 |
| 64 #endif // WEBKIT_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ | 65 #endif // WEBKIT_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ |
| OLD | NEW |