OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 #ifndef WebApplicationCacheHost_h | 31 #ifndef WebApplicationCacheHost_h |
32 #define WebApplicationCacheHost_h | 32 #define WebApplicationCacheHost_h |
33 | 33 |
34 #include "WebCommon.h" | 34 #include "WebCommon.h" |
35 #include "WebURL.h" | 35 #include "WebURL.h" |
36 #include "WebVector.h" | 36 #include "WebVector.h" |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 class WebApplicationCacheHostClient; | |
41 class WebURL; | 40 class WebURL; |
42 class WebURLRequest; | 41 class WebURLRequest; |
43 class WebURLResponse; | 42 class WebURLResponse; |
44 struct WebURLError; | |
45 | 43 |
46 // This interface is used by webkit to call out to the embedder. Webkit uses | 44 // This interface is used by webkit to call out to the embedder. Webkit uses |
47 // the WebFrameClient::createApplicationCacheHost method to create instances, | 45 // the WebFrameClient::createApplicationCacheHost method to create instances, |
48 // and calls delete when the instance is no longer needed. | 46 // and calls delete when the instance is no longer needed. |
49 class WebApplicationCacheHost { | 47 class WebApplicationCacheHost { |
50 public: | 48 public: |
51 // These values must match blink::ApplicationCacheHost::Status values | 49 // These values must match blink::ApplicationCacheHost::Status values |
52 enum Status { | 50 enum Status { |
53 Uncached, | 51 Uncached, |
54 Idle, | 52 Idle, |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 ResourceInfo() : size(0), isMaster(false), isManifest(false), isExplicit
(false), isForeign(false), isFallback(false) { } | 121 ResourceInfo() : size(0), isMaster(false), isManifest(false), isExplicit
(false), isForeign(false), isFallback(false) { } |
124 }; | 122 }; |
125 virtual void getAssociatedCacheInfo(CacheInfo*) { } | 123 virtual void getAssociatedCacheInfo(CacheInfo*) { } |
126 virtual void getResourceList(WebVector<ResourceInfo>*) { } | 124 virtual void getResourceList(WebVector<ResourceInfo>*) { } |
127 virtual void deleteAssociatedCacheGroup() { } | 125 virtual void deleteAssociatedCacheGroup() { } |
128 }; | 126 }; |
129 | 127 |
130 } // namespace blink | 128 } // namespace blink |
131 | 129 |
132 #endif // WebApplicationCacheHost_h | 130 #endif // WebApplicationCacheHost_h |
OLD | NEW |