| 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 28 matching lines...) Expand all Loading... |
| 39 #include "wtf/PassOwnPtr.h" | 39 #include "wtf/PassOwnPtr.h" |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 void WebStorageEventDispatcher::dispatchLocalStorageEvent( | 43 void WebStorageEventDispatcher::dispatchLocalStorageEvent( |
| 44 const WebString& key, const WebString& oldValue, | 44 const WebString& key, const WebString& oldValue, |
| 45 const WebString& newValue, const WebURL& origin, | 45 const WebString& newValue, const WebURL& origin, |
| 46 const WebURL& pageURL, WebStorageArea* sourceAreaInstance, | 46 const WebURL& pageURL, WebStorageArea* sourceAreaInstance, |
| 47 bool originatedInProcess) | 47 bool originatedInProcess) |
| 48 { | 48 { |
| 49 RefPtr<blink::SecurityOrigin> securityOrigin = blink::SecurityOrigin::create
(origin); | 49 RefPtr<SecurityOrigin> securityOrigin = SecurityOrigin::create(origin); |
| 50 blink::StorageArea::dispatchLocalStorageEvent( | 50 StorageArea::dispatchLocalStorageEvent( |
| 51 key, oldValue, newValue, securityOrigin.get(), pageURL, | 51 key, oldValue, newValue, securityOrigin.get(), pageURL, |
| 52 sourceAreaInstance, originatedInProcess); | 52 sourceAreaInstance, originatedInProcess); |
| 53 } | 53 } |
| 54 | 54 |
| 55 void WebStorageEventDispatcher::dispatchSessionStorageEvent( | 55 void WebStorageEventDispatcher::dispatchSessionStorageEvent( |
| 56 const WebString& key, const WebString& oldValue, | 56 const WebString& key, const WebString& oldValue, |
| 57 const WebString& newValue, const WebURL& origin, | 57 const WebString& newValue, const WebURL& origin, |
| 58 const WebURL& pageURL, const WebStorageNamespace& sessionNamespace, | 58 const WebURL& pageURL, const WebStorageNamespace& sessionNamespace, |
| 59 WebStorageArea* sourceAreaInstance, bool originatedInProcess) | 59 WebStorageArea* sourceAreaInstance, bool originatedInProcess) |
| 60 { | 60 { |
| 61 RefPtr<blink::SecurityOrigin> securityOrigin = blink::SecurityOrigin::create
(origin); | 61 RefPtr<SecurityOrigin> securityOrigin = SecurityOrigin::create(origin); |
| 62 blink::StorageArea::dispatchSessionStorageEvent( | 62 StorageArea::dispatchSessionStorageEvent( |
| 63 key, oldValue, newValue, securityOrigin.get(), pageURL, | 63 key, oldValue, newValue, securityOrigin.get(), pageURL, |
| 64 sessionNamespace, sourceAreaInstance, originatedInProcess); | 64 sessionNamespace, sourceAreaInstance, originatedInProcess); |
| 65 } | 65 } |
| 66 | 66 |
| 67 } // namespace blink | 67 } // namespace blink |
| OLD | NEW |