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

Side by Side Diff: Source/core/inspector/InspectorDOMStorageAgent.cpp

Issue 18548003: Rename ExceptionCode constants to use the names in the spec (2/3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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) 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
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
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
OLDNEW
« no previous file with comments | « Source/core/html/track/TextTrackRegion.cpp ('k') | Source/core/inspector/InspectorStyleSheet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698