Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: webkit/api/src/StorageEventDispatcherChromium.cpp

Issue 223013: Another stab at the Chromium side of storage events. The WebKit side can be ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
39 #include "WebKit.h" 39 #include "WebKit.h"
40 #include "WebKitClient.h" 40 #include "WebKitClient.h"
41 #include "WebString.h" 41 #include "WebString.h"
42 42
43 namespace WebCore { 43 namespace WebCore {
44 44
45 void StorageEventDispatcher::dispatch(const String& key, const String& oldValue, 45 void StorageEventDispatcher::dispatch(const String& key, const String& oldValue,
46 const String& newValue, StorageType storageType, 46 const String& newValue, StorageType storageType,
47 SecurityOrigin* origin, Frame* sourceFrame) 47 SecurityOrigin* origin, Frame* sourceFrame)
48 { 48 {
49 // FIXME: Implement. 49 ASSERT(!sourceFrame); // Sad, but true.
50 WebKit::webKitClient()->dispatchStorageEvent(key, oldValue, newValue, origin->toString(), storageType == LocalStorage);
50 } 51 }
51 52
52 } // namespace WebCore 53 } // namespace WebCore
53 54
54 #endif // ENABLE(DOM_STORAGE) 55 #endif // ENABLE(DOM_STORAGE)
OLDNEW
« no previous file with comments | « webkit/api/public/WebStorageEventDispatcher.h ('k') | webkit/api/src/StorageEventDispatcherImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698