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

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

Issue 2238423002: [DevTools] Generate all files in inspector_protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2240663003
Patch Set: Created 4 years, 4 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/inspector_protocol/Values.h"
44 #include "platform/weborigin/SecurityOrigin.h" 43 #include "platform/weborigin/SecurityOrigin.h"
45 44
46 namespace blink { 45 namespace blink {
47 46
48 namespace DOMStorageAgentState { 47 namespace DOMStorageAgentState {
49 static const char domStorageAgentEnabled[] = "domStorageAgentEnabled"; 48 static const char domStorageAgentEnabled[] = "domStorageAgentEnabled";
50 }; 49 };
51 50
52 static bool hadException(ExceptionState& exceptionState, ErrorString* errorStrin g) 51 static bool hadException(ExceptionState& exceptionState, ErrorString* errorStrin g)
53 { 52 {
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 StorageNamespace* sessionStorage = StorageNamespaceController::from(m_page)- >sessionStorage(); 211 StorageNamespace* sessionStorage = StorageNamespaceController::from(m_page)- >sessionStorage();
213 if (!sessionStorage) { 212 if (!sessionStorage) {
214 if (errorString) 213 if (errorString)
215 *errorString = "SessionStorage is not supported"; 214 *errorString = "SessionStorage is not supported";
216 return nullptr; 215 return nullptr;
217 } 216 }
218 return sessionStorage->storageArea(frame->document()->getSecurityOrigin()); 217 return sessionStorage->storageArea(frame->document()->getSecurityOrigin());
219 } 218 }
220 219
221 } // namespace blink 220 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698