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

Side by Side Diff: third_party/WebKit/Source/modules/storage/InspectorDOMStorageAgent.cpp

Issue 1738073002: DevTools: introduce protocol::Value, baseline for hierarchical data in remote debugging protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
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 22 matching lines...) Expand all
33 #include "core/dom/DOMException.h" 33 #include "core/dom/DOMException.h"
34 #include "core/dom/Document.h" 34 #include "core/dom/Document.h"
35 #include "core/dom/ExceptionCode.h" 35 #include "core/dom/ExceptionCode.h"
36 #include "core/frame/LocalDOMWindow.h" 36 #include "core/frame/LocalDOMWindow.h"
37 #include "core/frame/LocalFrame.h" 37 #include "core/frame/LocalFrame.h"
38 #include "core/inspector/InspectedFrames.h" 38 #include "core/inspector/InspectedFrames.h"
39 #include "core/page/Page.h" 39 #include "core/page/Page.h"
40 #include "modules/storage/Storage.h" 40 #include "modules/storage/Storage.h"
41 #include "modules/storage/StorageNamespace.h" 41 #include "modules/storage/StorageNamespace.h"
42 #include "modules/storage/StorageNamespaceController.h" 42 #include "modules/storage/StorageNamespaceController.h"
43 #include "platform/JSONValues.h" 43 #include "platform/inspector_protocol/Values.h"
44 #include "platform/weborigin/SecurityOrigin.h" 44 #include "platform/weborigin/SecurityOrigin.h"
45 45
46 namespace blink { 46 namespace blink {
47 47
48 namespace DOMStorageAgentState { 48 namespace DOMStorageAgentState {
49 static const char domStorageAgentEnabled[] = "domStorageAgentEnabled"; 49 static const char domStorageAgentEnabled[] = "domStorageAgentEnabled";
50 }; 50 };
51 51
52 static bool hadException(ExceptionState& exceptionState, ErrorString* errorStrin g) 52 static bool hadException(ExceptionState& exceptionState, ErrorString* errorStrin g)
53 { 53 {
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 StorageNamespace* sessionStorage = StorageNamespaceController::from(m_page)- >sessionStorage(); 213 StorageNamespace* sessionStorage = StorageNamespaceController::from(m_page)- >sessionStorage();
214 if (!sessionStorage) { 214 if (!sessionStorage) {
215 if (errorString) 215 if (errorString)
216 *errorString = "SessionStorage is not supported"; 216 *errorString = "SessionStorage is not supported";
217 return nullptr; 217 return nullptr;
218 } 218 }
219 return sessionStorage->storageArea(frame->document()->securityOrigin()); 219 return sessionStorage->storageArea(frame->document()->securityOrigin());
220 } 220 }
221 221
222 } // namespace blink 222 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698