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 | 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 SecurityOrigin*, const KURL& pageURL, const WebKit::WebStorageNamesp
ace&, | 66 SecurityOrigin*, const KURL& pageURL, const WebKit::WebStorageNamesp
ace&, |
67 WebKit::WebStorageArea* sourceAreaInstance, bool originatedInProcess
); | 67 WebKit::WebStorageArea* sourceAreaInstance, bool originatedInProcess
); |
68 | 68 |
69 private: | 69 private: |
70 bool canAccessStorage(Frame*) const; | 70 bool canAccessStorage(Frame*) const; |
71 | 71 |
72 static bool isEventSource(Storage*, WebKit::WebStorageArea* sourceAreaInstan
ce); | 72 static bool isEventSource(Storage*, WebKit::WebStorageArea* sourceAreaInstan
ce); |
73 | 73 |
74 OwnPtr<WebKit::WebStorageArea> m_storageArea; | 74 OwnPtr<WebKit::WebStorageArea> m_storageArea; |
75 StorageType m_storageType; | 75 StorageType m_storageType; |
| 76 mutable bool m_cachedCanAccessSetting; |
| 77 mutable void* m_cachedCanAccessSettingForFrame; |
76 }; | 78 }; |
77 | 79 |
78 } // namespace WebCore | 80 } // namespace WebCore |
79 | 81 |
80 #endif // StorageAreaProxy_h | 82 #endif // StorageAreaProxy_h |
OLD | NEW |