| 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 WEBKIT_RENDERER_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ | 5 #ifndef WEBKIT_RENDERER_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ |
| 6 #define WEBKIT_RENDERER_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ | 6 #define WEBKIT_RENDERER_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebApplicationCacheHo
stClient.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebApplicationCacheHo
stClient.h" |
| 12 #include "third_party/WebKit/public/platform/WebURLResponse.h" | 12 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
| 13 #include "third_party/WebKit/public/platform/WebVector.h" | 13 #include "third_party/WebKit/public/platform/WebVector.h" |
| 14 #include "webkit/common/appcache/appcache_interfaces.h" | 14 #include "webkit/common/appcache/appcache_interfaces.h" |
| 15 #include "webkit/storage/webkit_storage_export.h" | 15 #include "webkit/renderer/webkit_storage_renderer_export.h" |
| 16 | 16 |
| 17 namespace WebKit { | 17 namespace WebKit { |
| 18 class WebFrame; | 18 class WebFrame; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace appcache { | 21 namespace appcache { |
| 22 | 22 |
| 23 class WEBKIT_STORAGE_EXPORT WebApplicationCacheHostImpl | 23 class WEBKIT_STORAGE_RENDERER_EXPORT WebApplicationCacheHostImpl |
| 24 : NON_EXPORTED_BASE(public WebKit::WebApplicationCacheHost) { | 24 : NON_EXPORTED_BASE(public WebKit::WebApplicationCacheHost) { |
| 25 public: | 25 public: |
| 26 // Returns the host having given id or NULL if there is no such host. | 26 // Returns the host having given id or NULL if there is no such host. |
| 27 static WebApplicationCacheHostImpl* FromId(int id); | 27 static WebApplicationCacheHostImpl* FromId(int id); |
| 28 | 28 |
| 29 // Returns the host associated with the current document in frame. | 29 // Returns the host associated with the current document in frame. |
| 30 static WebApplicationCacheHostImpl* FromFrame(const WebKit::WebFrame* frame); | 30 static WebApplicationCacheHostImpl* FromFrame(const WebKit::WebFrame* frame); |
| 31 | 31 |
| 32 WebApplicationCacheHostImpl(WebKit::WebApplicationCacheHostClient* client, | 32 WebApplicationCacheHostImpl(WebKit::WebApplicationCacheHostClient* client, |
| 33 AppCacheBackend* backend); | 33 AppCacheBackend* backend); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 bool is_get_method_; | 77 bool is_get_method_; |
| 78 IsNewMasterEntry is_new_master_entry_; | 78 IsNewMasterEntry is_new_master_entry_; |
| 79 appcache::AppCacheInfo cache_info_; | 79 appcache::AppCacheInfo cache_info_; |
| 80 GURL original_main_resource_url_; // Used to detect redirection. | 80 GURL original_main_resource_url_; // Used to detect redirection. |
| 81 bool was_select_cache_called_; | 81 bool was_select_cache_called_; |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 } // namespace | 84 } // namespace |
| 85 | 85 |
| 86 #endif // WEBKIT_RENDERER_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ | 86 #endif // WEBKIT_RENDERER_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ |
| OLD | NEW |