Changeset 53180 in webkit
- Timestamp:
- Jan 12, 2010 10:51:24 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r53177 r53180 1 2010-01-11 Jeremy Orlow <jorlow@chromium.org> 2 3 Reviewed by Darin Fisher. 4 5 [Chromium] Move getSessionStorageNamespace from WebKitClient to WebViewClient 6 https://bugs.webkit.org/show_bug.cgi?id=33492 7 8 * page/Page.cpp: 9 (WebCore::Page::sessionStorage): 10 * storage/StorageNamespace.cpp: 11 (WebCore::StorageNamespace::sessionStorageNamespace): 12 * storage/StorageNamespace.h: 13 (WebCore::StorageNamespace::~StorageNamespace): 14 1 15 2010-01-12 Dumitru Daniliuc <dumi@chromium.org> 2 16 -
trunk/WebCore/page/Page.cpp
r52103 r53180 690 690 { 691 691 if (!m_sessionStorage && optionalCreate) 692 m_sessionStorage = StorageNamespace::sessionStorageNamespace( );692 m_sessionStorage = StorageNamespace::sessionStorageNamespace(this); 693 693 694 694 return m_sessionStorage.get(); -
trunk/WebCore/storage/StorageNamespace.cpp
r49040 r53180 42 42 } 43 43 44 PassRefPtr<StorageNamespace> StorageNamespace::sessionStorageNamespace() 44 // The page argument is only used by the Chromium port. 45 PassRefPtr<StorageNamespace> StorageNamespace::sessionStorageNamespace(Page*) 45 46 { 46 47 return StorageNamespaceImpl::sessionStorageNamespace(); -
trunk/WebCore/storage/StorageNamespace.h
r49040 r53180 36 36 namespace WebCore { 37 37 38 class SecurityOrigin; 39 class StorageArea; 38 class Page; 39 class SecurityOrigin; 40 class StorageArea; 40 41 41 42 43 44 45 static PassRefPtr<StorageNamespace> sessionStorageNamespace();42 // This interface is required for Chromium since these actions need to be proxied between processes. 43 class StorageNamespace : public RefCounted<StorageNamespace> { 44 public: 45 static PassRefPtr<StorageNamespace> localStorageNamespace(const String& path, unsigned quota); 46 static PassRefPtr<StorageNamespace> sessionStorageNamespace(Page*); 46 47 47 48 49 50 51 52 48 virtual ~StorageNamespace() { } 49 virtual PassRefPtr<StorageArea> storageArea(PassRefPtr<SecurityOrigin>) = 0; 50 virtual PassRefPtr<StorageNamespace> copy() = 0; 51 virtual void close() = 0; 52 virtual void unlock() = 0; 53 }; 53 54 54 55 } // namespace WebCore -
trunk/WebKit/chromium/ChangeLog
r53144 r53180 1 2010-01-11 Jeremy Orlow <jorlow@chromium.org> 2 3 Reviewed by Darin Fisher. 4 5 [Chromium] Move getSessionStorageNamespace from WebKitClient to WebViewClient 6 https://bugs.webkit.org/show_bug.cgi?id=33492 7 8 * public/WebKitClient.h: 9 * public/WebViewClient.h: 10 (WebKit::WebViewClient::getSessionStorageNamespace): 11 * src/StorageNamespaceProxy.cpp: 12 (WebCore::StorageNamespace::sessionStorageNamespace): 13 1 14 2010-01-11 Darin Fisher <darin@chromium.org> 2 15 -
trunk/WebKit/chromium/public/WebKitClient.h
r53001 r53180 90 90 91 91 // Return a new SessionStorage namespace. 92 // THIS IS DEPRECATED. WebViewClient::getSessionStorageNamespace() is the new way to access this. 92 93 virtual WebStorageNamespace* createSessionStorageNamespace() { return 0; } 93 94 -
trunk/WebKit/chromium/public/WebViewClient.h
r50681 r53180 49 49 class WebNotificationPresenter; 50 50 class WebRange; 51 class WebStorageNamespace; 51 52 class WebURL; 52 53 class WebView; … … 72 73 virtual WebWidget* createPopupMenu(const WebPopupMenuInfo&) { return 0; } 73 74 75 // Create a session storage namespace associated with this WebView. 76 virtual WebStorageNamespace* createSessionStorageNamespace() { return 0; } 74 77 75 78 // Misc ---------------------------------------------------------------- -
trunk/WebKit/chromium/src/StorageNamespaceProxy.cpp
r50746 r53180 29 29 #if ENABLE(DOM_STORAGE) 30 30 31 #include "Chrome.h" 32 #include "ChromeClientImpl.h" 33 #include "Page.h" 31 34 #include "SecurityOrigin.h" 32 35 #include "StorageAreaProxy.h" … … 35 38 #include "WebStorageNamespace.h" 36 39 #include "WebString.h" 40 #include "WebViewClient.h" 41 #include "WebViewImpl.h" 37 42 38 43 namespace WebCore { … … 43 48 } 44 49 45 PassRefPtr<StorageNamespace> StorageNamespace::sessionStorageNamespace( )50 PassRefPtr<StorageNamespace> StorageNamespace::sessionStorageNamespace(Page* page) 46 51 { 47 return new StorageNamespaceProxy(WebKit::webKitClient()->createSessionStorageNamespace()); 52 WebKit::ChromeClientImpl* chromeClientImpl = static_cast<WebKit::ChromeClientImpl*>(page->chrome()->client()); 53 WebKit::WebViewClient* webViewClient = chromeClientImpl->webView()->client(); 54 return new StorageNamespaceProxy(webViewClient->createSessionStorageNamespace()); 48 55 } 49 56
Note: See TracChangeset
for help on using the changeset viewer.