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 30 matching lines...) Expand all Loading... |
41 class WebURL; | 41 class WebURL; |
42 class WebURLRequest; | 42 class WebURLRequest; |
43 class WebURLResponse; | 43 class WebURLResponse; |
44 struct WebURLError; | 44 struct WebURLError; |
45 | 45 |
46 // This interface is used by webkit to call out to the embedder. Webkit uses | 46 // This interface is used by webkit to call out to the embedder. Webkit uses |
47 // the WebFrameClient::createApplicationCacheHost method to create instances, | 47 // the WebFrameClient::createApplicationCacheHost method to create instances, |
48 // and calls delete when the instance is no longer needed. | 48 // and calls delete when the instance is no longer needed. |
49 class WebApplicationCacheHost { | 49 class WebApplicationCacheHost { |
50 public: | 50 public: |
51 // These values must match WebCore::ApplicationCacheHost::Status values | 51 // These values must match blink::ApplicationCacheHost::Status values |
52 enum Status { | 52 enum Status { |
53 Uncached, | 53 Uncached, |
54 Idle, | 54 Idle, |
55 Checking, | 55 Checking, |
56 Downloading, | 56 Downloading, |
57 UpdateReady, | 57 UpdateReady, |
58 Obsolete | 58 Obsolete |
59 }; | 59 }; |
60 | 60 |
61 // These values must match WebCore::ApplicationCacheHost::EventID values | 61 // These values must match blink::ApplicationCacheHost::EventID values |
62 enum EventID { | 62 enum EventID { |
63 CheckingEvent, | 63 CheckingEvent, |
64 ErrorEvent, | 64 ErrorEvent, |
65 NoUpdateEvent, | 65 NoUpdateEvent, |
66 DownloadingEvent, | 66 DownloadingEvent, |
67 ProgressEvent, | 67 ProgressEvent, |
68 UpdateReadyEvent, | 68 UpdateReadyEvent, |
69 CachedEvent, | 69 CachedEvent, |
70 ObsoleteEvent | 70 ObsoleteEvent |
71 }; | 71 }; |
(...skipping 51 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) { } | 123 ResourceInfo() : size(0), isMaster(false), isManifest(false), isExplicit
(false), isForeign(false), isFallback(false) { } |
124 }; | 124 }; |
125 virtual void getAssociatedCacheInfo(CacheInfo*) { } | 125 virtual void getAssociatedCacheInfo(CacheInfo*) { } |
126 virtual void getResourceList(WebVector<ResourceInfo>*) { } | 126 virtual void getResourceList(WebVector<ResourceInfo>*) { } |
127 virtual void deleteAssociatedCacheGroup() { } | 127 virtual void deleteAssociatedCacheGroup() { } |
128 }; | 128 }; |
129 | 129 |
130 } // namespace blink | 130 } // namespace blink |
131 | 131 |
132 #endif // WebApplicationCacheHost_h | 132 #endif // WebApplicationCacheHost_h |
OLD | NEW |