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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 53 |
54 namespace DOMStorageAgentState { | 54 namespace DOMStorageAgentState { |
55 static const char domStorageAgentEnabled[] = "domStorageAgentEnabled"; | 55 static const char domStorageAgentEnabled[] = "domStorageAgentEnabled"; |
56 }; | 56 }; |
57 | 57 |
58 static bool hadException(ExceptionCode ec, ErrorString* errorString) | 58 static bool hadException(ExceptionCode ec, ErrorString* errorString) |
59 { | 59 { |
60 switch (ec) { | 60 switch (ec) { |
61 case 0: | 61 case 0: |
62 return false; | 62 return false; |
63 case SECURITY_ERR: | 63 case SecurityError: |
64 *errorString = "Security error"; | 64 *errorString = "Security error"; |
65 return true; | 65 return true; |
66 default: | 66 default: |
67 *errorString = "Unknown DOM storage error"; | 67 *errorString = "Unknown DOM storage error"; |
68 return true; | 68 return true; |
69 } | 69 } |
70 } | 70 } |
71 | 71 |
72 InspectorDOMStorageAgent::InspectorDOMStorageAgent(InstrumentingAgents* instrume
ntingAgents, InspectorPageAgent* pageAgent, InspectorCompositeState* state) | 72 InspectorDOMStorageAgent::InspectorDOMStorageAgent(InstrumentingAgents* instrume
ntingAgents, InspectorPageAgent* pageAgent, InspectorCompositeState* state) |
73 : InspectorBaseAgent<InspectorDOMStorageAgent>("DOMStorage", instrumentingAg
ents, state) | 73 : InspectorBaseAgent<InspectorDOMStorageAgent>("DOMStorage", instrumentingAg
ents, state) |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 | 232 |
233 void InspectorDOMStorageAgent::reportMemoryUsage(MemoryObjectInfo* memoryObjectI
nfo) const | 233 void InspectorDOMStorageAgent::reportMemoryUsage(MemoryObjectInfo* memoryObjectI
nfo) const |
234 { | 234 { |
235 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::InspectorDO
MStorageAgent); | 235 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::InspectorDO
MStorageAgent); |
236 InspectorBaseAgent<InspectorDOMStorageAgent>::reportMemoryUsage(memoryObject
Info); | 236 InspectorBaseAgent<InspectorDOMStorageAgent>::reportMemoryUsage(memoryObject
Info); |
237 info.addWeakPointer(m_frontend); | 237 info.addWeakPointer(m_frontend); |
238 } | 238 } |
239 | 239 |
240 } // namespace WebCore | 240 } // namespace WebCore |
241 | 241 |
OLD | NEW |