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

Side by Side Diff: Source/WebKit/chromium/src/StorageNamespaceProxy.cpp

Issue 15820002: Page::chrome() should return a reference. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 7 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 30 matching lines...) Expand all
41 41
42 namespace WebCore { 42 namespace WebCore {
43 43
44 PassRefPtr<StorageNamespace> StorageNamespace::localStorageNamespace(unsigned qu ota) 44 PassRefPtr<StorageNamespace> StorageNamespace::localStorageNamespace(unsigned qu ota)
45 { 45 {
46 return adoptRef(new StorageNamespaceProxy(WebKit::Platform::current()->creat eLocalStorageNamespace("", quota), LocalStorage)); 46 return adoptRef(new StorageNamespaceProxy(WebKit::Platform::current()->creat eLocalStorageNamespace("", quota), LocalStorage));
47 } 47 }
48 48
49 PassRefPtr<StorageNamespace> StorageNamespace::sessionStorageNamespace(Page* pag e, unsigned quota) 49 PassRefPtr<StorageNamespace> StorageNamespace::sessionStorageNamespace(Page* pag e, unsigned quota)
50 { 50 {
51 WebKit::WebViewClient* webViewClient = static_cast<WebKit::WebViewImpl*>(pag e->chrome()->client()->webView())->client(); 51 WebKit::WebViewClient* webViewClient = static_cast<WebKit::WebViewImpl*>(pag e->chrome().client()->webView())->client();
52 return adoptRef(new StorageNamespaceProxy(webViewClient->createSessionStorag eNamespace(quota), SessionStorage)); 52 return adoptRef(new StorageNamespaceProxy(webViewClient->createSessionStorag eNamespace(quota), SessionStorage));
53 } 53 }
54 54
55 // FIXME: storageNamespace argument should be a PassOwnPtr. 55 // FIXME: storageNamespace argument should be a PassOwnPtr.
56 StorageNamespaceProxy::StorageNamespaceProxy(WebKit::WebStorageNamespace* storag eNamespace, StorageType storageType) 56 StorageNamespaceProxy::StorageNamespaceProxy(WebKit::WebStorageNamespace* storag eNamespace, StorageType storageType)
57 : m_storageNamespace(adoptPtr(storageNamespace)) 57 : m_storageNamespace(adoptPtr(storageNamespace))
58 , m_storageType(storageType) 58 , m_storageType(storageType)
59 { 59 {
60 } 60 }
61 61
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 { 100 {
101 ASSERT_NOT_REACHED(); 101 ASSERT_NOT_REACHED();
102 } 102 }
103 103
104 bool StorageNamespaceProxy::isSameNamespace(const WebKit::WebStorageNamespace& s essionNamespace) 104 bool StorageNamespaceProxy::isSameNamespace(const WebKit::WebStorageNamespace& s essionNamespace)
105 { 105 {
106 return m_storageNamespace && m_storageNamespace->isSameNamespace(sessionName space); 106 return m_storageNamespace && m_storageNamespace->isSameNamespace(sessionName space);
107 } 107 }
108 108
109 } // namespace WebCore 109 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/src/FrameLoaderClientImpl.cpp ('k') | Source/WebKit/chromium/src/WebPluginContainerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698