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

Side by Side Diff: Source/web/StorageNamespaceProxy.cpp

Issue 54053006: Move weborigin/ under platform/ so that it may someday call platform APIs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Stale refernence to weboriginexport in .gpyi Created 7 years, 1 month 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
« no previous file with comments | « Source/web/StorageAreaProxy.cpp ('k') | Source/web/WebDataSourceImpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 19 matching lines...) Expand all
30 #include "public/platform/WebStorageArea.h" 30 #include "public/platform/WebStorageArea.h"
31 #include "public/platform/WebStorageNamespace.h" 31 #include "public/platform/WebStorageNamespace.h"
32 #include "public/platform/WebString.h" 32 #include "public/platform/WebString.h"
33 #include "ChromeClientImpl.h" 33 #include "ChromeClientImpl.h"
34 #include "StorageAreaProxy.h" 34 #include "StorageAreaProxy.h"
35 #include "WebKit.h" 35 #include "WebKit.h"
36 #include "WebViewClient.h" 36 #include "WebViewClient.h"
37 #include "WebViewImpl.h" 37 #include "WebViewImpl.h"
38 #include "core/page/Chrome.h" 38 #include "core/page/Chrome.h"
39 #include "core/page/Page.h" 39 #include "core/page/Page.h"
40 #include "weborigin/SecurityOrigin.h" 40 #include "platform/weborigin/SecurityOrigin.h"
41 #include "wtf/MainThread.h" 41 #include "wtf/MainThread.h"
42 42
43 namespace WebCore { 43 namespace WebCore {
44 44
45 PassOwnPtr<StorageArea> StorageNamespace::localStorageArea(SecurityOrigin* origi n) 45 PassOwnPtr<StorageArea> StorageNamespace::localStorageArea(SecurityOrigin* origi n)
46 { 46 {
47 ASSERT(isMainThread()); 47 ASSERT(isMainThread());
48 static blink::WebStorageNamespace* localStorageNamespace = 0; 48 static blink::WebStorageNamespace* localStorageNamespace = 0;
49 if (!localStorageNamespace) 49 if (!localStorageNamespace)
50 localStorageNamespace = blink::Platform::current()->createLocalStorageNa mespace(); 50 localStorageNamespace = blink::Platform::current()->createLocalStorageNa mespace();
(...skipping 19 matching lines...) Expand all
70 { 70 {
71 return adoptPtr(new StorageAreaProxy(adoptPtr(m_storageNamespace->createStor ageArea(origin->toString())), SessionStorage)); 71 return adoptPtr(new StorageAreaProxy(adoptPtr(m_storageNamespace->createStor ageArea(origin->toString())), SessionStorage));
72 } 72 }
73 73
74 bool StorageNamespaceProxy::isSameNamespace(const blink::WebStorageNamespace& se ssionNamespace) 74 bool StorageNamespaceProxy::isSameNamespace(const blink::WebStorageNamespace& se ssionNamespace)
75 { 75 {
76 return m_storageNamespace && m_storageNamespace->isSameNamespace(sessionName space); 76 return m_storageNamespace && m_storageNamespace->isSameNamespace(sessionName space);
77 } 77 }
78 78
79 } // namespace WebCore 79 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/web/StorageAreaProxy.cpp ('k') | Source/web/WebDataSourceImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698