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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 const WebURL& pageUrl, WebStorageArea* sourceAreaInstance, | 48 const WebURL& pageUrl, WebStorageArea* sourceAreaInstance, |
49 bool originatedInProcess); | 49 bool originatedInProcess); |
50 | 50 |
51 // Dispatch a session storage event to appropiate documents. | 51 // Dispatch a session storage event to appropiate documents. |
52 WEBKIT_EXPORT static void dispatchSessionStorageEvent( | 52 WEBKIT_EXPORT static void dispatchSessionStorageEvent( |
53 const WebString& key, const WebString& oldValue, | 53 const WebString& key, const WebString& oldValue, |
54 const WebString& newValue, const WebURL& origin, | 54 const WebString& newValue, const WebURL& origin, |
55 const WebURL& pageUrl, const WebStorageNamespace&, | 55 const WebURL& pageUrl, const WebStorageNamespace&, |
56 WebStorageArea* sourceAreaInstance, bool originatedInProcess); | 56 WebStorageArea* sourceAreaInstance, bool originatedInProcess); |
57 | 57 |
58 private: | 58 // DEPRECATED - The instance methods are going away soon in favor |
59 WebStorageEventDispatcher() { } | 59 // of the two static dispatch methods above. |
| 60 WEBKIT_EXPORT static WebStorageEventDispatcher* create(); |
| 61 virtual ~WebStorageEventDispatcher() { } |
| 62 virtual void dispatchStorageEvent(const WebString& key, const WebString& old
Value, |
| 63 const WebString& newValue, const WebString
& origin, |
| 64 const WebURL& url, bool isLocalStorage) =
0; |
60 }; | 65 }; |
61 | 66 |
62 } // namespace WebKit | 67 } // namespace WebKit |
63 | 68 |
64 #endif // WebStorageEventDispatcher_h | 69 #endif // WebStorageEventDispatcher_h |
OLD | NEW |