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

Side by Side Diff: third_party/WebKit/Source/modules/filesystem/InspectorFileSystemAgent.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) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 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 27 matching lines...) Expand all
38 #include "core/events/Event.h" 38 #include "core/events/Event.h"
39 #include "core/fileapi/BlobCallback.h" 39 #include "core/fileapi/BlobCallback.h"
40 #include "core/fileapi/File.h" 40 #include "core/fileapi/File.h"
41 #include "core/fileapi/FileError.h" 41 #include "core/fileapi/FileError.h"
42 #include "core/fileapi/FileReader.h" 42 #include "core/fileapi/FileReader.h"
43 #include "core/frame/LocalFrame.h" 43 #include "core/frame/LocalFrame.h"
44 #include "core/html/HTMLMediaElement.h" 44 #include "core/html/HTMLMediaElement.h"
45 #include "core/html/VoidCallback.h" 45 #include "core/html/VoidCallback.h"
46 #include "core/html/parser/TextResourceDecoder.h" 46 #include "core/html/parser/TextResourceDecoder.h"
47 #include "core/inspector/InspectedFrames.h" 47 #include "core/inspector/InspectedFrames.h"
48 #include "core/inspector/InspectorState.h"
49 #include "modules/filesystem/DOMFileSystem.h" 48 #include "modules/filesystem/DOMFileSystem.h"
50 #include "modules/filesystem/DirectoryEntry.h" 49 #include "modules/filesystem/DirectoryEntry.h"
51 #include "modules/filesystem/DirectoryReader.h" 50 #include "modules/filesystem/DirectoryReader.h"
52 #include "modules/filesystem/EntriesCallback.h" 51 #include "modules/filesystem/EntriesCallback.h"
53 #include "modules/filesystem/Entry.h" 52 #include "modules/filesystem/Entry.h"
54 #include "modules/filesystem/EntryCallback.h" 53 #include "modules/filesystem/EntryCallback.h"
55 #include "modules/filesystem/ErrorCallback.h" 54 #include "modules/filesystem/ErrorCallback.h"
56 #include "modules/filesystem/FileEntry.h" 55 #include "modules/filesystem/FileEntry.h"
57 #include "modules/filesystem/FileSystemCallbacks.h" 56 #include "modules/filesystem/FileSystemCallbacks.h"
58 #include "modules/filesystem/LocalFileSystem.h" 57 #include "modules/filesystem/LocalFileSystem.h"
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 723
725 ExecutionContext* executionContext = assertExecutionContextForOrigin(error, SecurityOrigin::create(url).get()); 724 ExecutionContext* executionContext = assertExecutionContextForOrigin(error, SecurityOrigin::create(url).get());
726 if (!executionContext) 725 if (!executionContext)
727 return; 726 return;
728 727
729 DeleteEntryRequest::create(requestCallback, url)->start(executionContext); 728 DeleteEntryRequest::create(requestCallback, url)->start(executionContext);
730 } 729 }
731 730
732 void InspectorFileSystemAgent::restore() 731 void InspectorFileSystemAgent::restore()
733 { 732 {
734 m_enabled = m_state->getBoolean(FileSystemAgentState::fileSystemAgentEnabled ); 733 m_enabled = m_state->booleanProperty(FileSystemAgentState::fileSystemAgentEn abled, false);
735 } 734 }
736 735
737 InspectorFileSystemAgent::InspectorFileSystemAgent(InspectedFrames* inspectedFra mes) 736 InspectorFileSystemAgent::InspectorFileSystemAgent(InspectedFrames* inspectedFra mes)
738 : InspectorBaseAgent<InspectorFileSystemAgent, InspectorFrontend::FileSystem >("FileSystem") 737 : InspectorBaseAgent<InspectorFileSystemAgent, InspectorFrontend::FileSystem >("FileSystem")
739 , m_inspectedFrames(inspectedFrames) 738 , m_inspectedFrames(inspectedFrames)
740 , m_enabled(false) 739 , m_enabled(false)
741 { 740 {
742 ASSERT(m_inspectedFrames); 741 ASSERT(m_inspectedFrames);
743 } 742 }
744 743
(...skipping 17 matching lines...) Expand all
762 return 0; 761 return 0;
763 } 762 }
764 763
765 DEFINE_TRACE(InspectorFileSystemAgent) 764 DEFINE_TRACE(InspectorFileSystemAgent)
766 { 765 {
767 visitor->trace(m_inspectedFrames); 766 visitor->trace(m_inspectedFrames);
768 InspectorBaseAgent::trace(visitor); 767 InspectorBaseAgent::trace(visitor);
769 } 768 }
770 769
771 } // namespace blink 770 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698