| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Samsung Electronics. All rights reserved. | 3 * Copyright (C) 2013 Samsung Electronics. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 : InspectorBaseAgent<InspectorDOMStorageAgent>("DOMStorage") | 71 : InspectorBaseAgent<InspectorDOMStorageAgent>("DOMStorage") |
| 72 , m_pageAgent(pageAgent) | 72 , m_pageAgent(pageAgent) |
| 73 , m_frontend(0) | 73 , m_frontend(0) |
| 74 { | 74 { |
| 75 } | 75 } |
| 76 | 76 |
| 77 InspectorDOMStorageAgent::~InspectorDOMStorageAgent() | 77 InspectorDOMStorageAgent::~InspectorDOMStorageAgent() |
| 78 { | 78 { |
| 79 } | 79 } |
| 80 | 80 |
| 81 void InspectorDOMStorageAgent::trace(Visitor* visitor) |
| 82 { |
| 83 visitor->trace(m_pageAgent); |
| 84 InspectorBaseAgent::trace(visitor); |
| 85 } |
| 86 |
| 81 void InspectorDOMStorageAgent::setFrontend(InspectorFrontend* frontend) | 87 void InspectorDOMStorageAgent::setFrontend(InspectorFrontend* frontend) |
| 82 { | 88 { |
| 83 m_frontend = frontend; | 89 m_frontend = frontend; |
| 84 } | 90 } |
| 85 | 91 |
| 86 void InspectorDOMStorageAgent::clearFrontend() | 92 void InspectorDOMStorageAgent::clearFrontend() |
| 87 { | 93 { |
| 88 m_frontend = 0; | 94 m_frontend = 0; |
| 89 disable(0); | 95 disable(0); |
| 90 } | 96 } |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 } | 217 } |
| 212 targetFrame = frame; | 218 targetFrame = frame; |
| 213 | 219 |
| 214 if (isLocalStorage) | 220 if (isLocalStorage) |
| 215 return StorageNamespace::localStorageArea(frame->document()->securityOri
gin()); | 221 return StorageNamespace::localStorageArea(frame->document()->securityOri
gin()); |
| 216 return m_pageAgent->page()->sessionStorage()->storageArea(frame->document()-
>securityOrigin()); | 222 return m_pageAgent->page()->sessionStorage()->storageArea(frame->document()-
>securityOrigin()); |
| 217 } | 223 } |
| 218 | 224 |
| 219 } // namespace WebCore | 225 } // namespace WebCore |
| 220 | 226 |
| OLD | NEW |