| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 21 matching lines...) Expand all Loading... |
| 32 #define WebApplicationCacheHostClient_h | 32 #define WebApplicationCacheHostClient_h |
| 33 | 33 |
| 34 #include "WebApplicationCacheHost.h" | 34 #include "WebApplicationCacheHost.h" |
| 35 #include "WebCommon.h" | 35 #include "WebCommon.h" |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 // This interface is used by the embedder to call into webkit. | 39 // This interface is used by the embedder to call into webkit. |
| 40 class WebApplicationCacheHostClient { | 40 class WebApplicationCacheHostClient { |
| 41 public: | 41 public: |
| 42 // Called when a different cache, including possibly no cache, is associated w
ith the host. | 42 // Called when a different cache, including possibly no cache, is associated |
| 43 // with the host. |
| 43 virtual void didChangeCacheAssociation() = 0; | 44 virtual void didChangeCacheAssociation() = 0; |
| 44 | 45 |
| 45 // Called to fire events in the scriptable interface. | 46 // Called to fire events in the scriptable interface. |
| 46 virtual void notifyEventListener(WebApplicationCacheHost::EventID) = 0; | 47 virtual void notifyEventListener(WebApplicationCacheHost::EventID) = 0; |
| 47 virtual void notifyProgressEventListener(const WebURL&, | 48 virtual void notifyProgressEventListener(const WebURL&, |
| 48 int num_total, | 49 int num_total, |
| 49 int num_complete) = 0; | 50 int num_complete) = 0; |
| 50 virtual void notifyErrorEventListener(WebApplicationCacheHost::ErrorReason, | 51 virtual void notifyErrorEventListener(WebApplicationCacheHost::ErrorReason, |
| 51 const WebURL&, | 52 const WebURL&, |
| 52 int status, | 53 int status, |
| 53 const WebString& message) = 0; | 54 const WebString& message) = 0; |
| 54 | 55 |
| 55 protected: | 56 protected: |
| 56 // Should not be deleted by the embedder. | 57 // Should not be deleted by the embedder. |
| 57 virtual ~WebApplicationCacheHostClient() {} | 58 virtual ~WebApplicationCacheHostClient() {} |
| 58 }; | 59 }; |
| 59 | 60 |
| 60 } // namespace blink | 61 } // namespace blink |
| 61 | 62 |
| 62 #endif // WebApplicationCacheHostClient_h | 63 #endif // WebApplicationCacheHostClient_h |
| OLD | NEW |