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

Side by Side Diff: third_party/WebKit/Source/modules/indexeddb/InspectorIndexedDBAgent.cpp

Issue 1621923002: [DevTools] Remove InspectorState. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 22 matching lines...) Expand all
33 #include "bindings/core/v8/ExceptionState.h" 33 #include "bindings/core/v8/ExceptionState.h"
34 #include "bindings/core/v8/ExceptionStatePlaceholder.h" 34 #include "bindings/core/v8/ExceptionStatePlaceholder.h"
35 #include "bindings/core/v8/ScriptController.h" 35 #include "bindings/core/v8/ScriptController.h"
36 #include "bindings/core/v8/ScriptState.h" 36 #include "bindings/core/v8/ScriptState.h"
37 #include "bindings/core/v8/V8PerIsolateData.h" 37 #include "bindings/core/v8/V8PerIsolateData.h"
38 #include "core/dom/DOMStringList.h" 38 #include "core/dom/DOMStringList.h"
39 #include "core/dom/Document.h" 39 #include "core/dom/Document.h"
40 #include "core/events/EventListener.h" 40 #include "core/events/EventListener.h"
41 #include "core/frame/LocalFrame.h" 41 #include "core/frame/LocalFrame.h"
42 #include "core/inspector/InspectedFrames.h" 42 #include "core/inspector/InspectedFrames.h"
43 #include "core/inspector/InspectorState.h"
44 #include "modules/IndexedDBNames.h" 43 #include "modules/IndexedDBNames.h"
45 #include "modules/indexeddb/DOMWindowIndexedDatabase.h" 44 #include "modules/indexeddb/DOMWindowIndexedDatabase.h"
46 #include "modules/indexeddb/IDBCursor.h" 45 #include "modules/indexeddb/IDBCursor.h"
47 #include "modules/indexeddb/IDBCursorWithValue.h" 46 #include "modules/indexeddb/IDBCursorWithValue.h"
48 #include "modules/indexeddb/IDBDatabase.h" 47 #include "modules/indexeddb/IDBDatabase.h"
49 #include "modules/indexeddb/IDBFactory.h" 48 #include "modules/indexeddb/IDBFactory.h"
50 #include "modules/indexeddb/IDBIndex.h" 49 #include "modules/indexeddb/IDBIndex.h"
51 #include "modules/indexeddb/IDBKey.h" 50 #include "modules/indexeddb/IDBKey.h"
52 #include "modules/indexeddb/IDBKeyPath.h" 51 #include "modules/indexeddb/IDBKeyPath.h"
53 #include "modules/indexeddb/IDBKeyRange.h" 52 #include "modules/indexeddb/IDBKeyRange.h"
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 , m_inspectedFrames(inspectedFrames) 614 , m_inspectedFrames(inspectedFrames)
616 { 615 {
617 } 616 }
618 617
619 InspectorIndexedDBAgent::~InspectorIndexedDBAgent() 618 InspectorIndexedDBAgent::~InspectorIndexedDBAgent()
620 { 619 {
621 } 620 }
622 621
623 void InspectorIndexedDBAgent::restore() 622 void InspectorIndexedDBAgent::restore()
624 { 623 {
625 if (m_state->getBoolean(IndexedDBAgentState::indexedDBAgentEnabled)) { 624 if (m_state->booleanProperty(IndexedDBAgentState::indexedDBAgentEnabled, fal se)) {
626 ErrorString error; 625 ErrorString error;
627 enable(&error); 626 enable(&error);
628 } 627 }
629 } 628 }
630 629
631 void InspectorIndexedDBAgent::enable(ErrorString*) 630 void InspectorIndexedDBAgent::enable(ErrorString*)
632 { 631 {
633 m_state->setBoolean(IndexedDBAgentState::indexedDBAgentEnabled, true); 632 m_state->setBoolean(IndexedDBAgentState::indexedDBAgentEnabled, true);
634 } 633 }
635 634
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
836 clearObjectStore->start(idbFactory, document->securityOrigin(), databaseName ); 835 clearObjectStore->start(idbFactory, document->securityOrigin(), databaseName );
837 } 836 }
838 837
839 DEFINE_TRACE(InspectorIndexedDBAgent) 838 DEFINE_TRACE(InspectorIndexedDBAgent)
840 { 839 {
841 visitor->trace(m_inspectedFrames); 840 visitor->trace(m_inspectedFrames);
842 InspectorBaseAgent::trace(visitor); 841 InspectorBaseAgent::trace(visitor);
843 } 842 }
844 843
845 } // namespace blink 844 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698