OLD | NEW |
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 28 matching lines...) Expand all Loading... |
39 | 39 |
40 namespace blink { | 40 namespace blink { |
41 | 41 |
42 class ExecutionContext; | 42 class ExecutionContext; |
43 class Page; | 43 class Page; |
44 class SecurityOrigin; | 44 class SecurityOrigin; |
45 | 45 |
46 class MODULES_EXPORT InspectorFileSystemAgent final : public InspectorBaseAgent<
InspectorFileSystemAgent, InspectorFrontend::FileSystem>, public InspectorBacken
dDispatcher::FileSystemCommandHandler { | 46 class MODULES_EXPORT InspectorFileSystemAgent final : public InspectorBaseAgent<
InspectorFileSystemAgent, InspectorFrontend::FileSystem>, public InspectorBacken
dDispatcher::FileSystemCommandHandler { |
47 public: | 47 public: |
48 static PassOwnPtrWillBeRawPtr<InspectorFileSystemAgent> create(Page*); | 48 static PassOwnPtrWillBeRawPtr<InspectorFileSystemAgent> create(Page*); |
49 virtual ~InspectorFileSystemAgent(); | 49 ~InspectorFileSystemAgent() override; |
50 DECLARE_VIRTUAL_TRACE(); | 50 DECLARE_VIRTUAL_TRACE(); |
51 | 51 |
52 virtual void enable(ErrorString*) override; | 52 void enable(ErrorString*) override; |
53 | 53 |
54 virtual void requestFileSystemRoot(ErrorString*, const String& origin, const
String& typeString, PassRefPtrWillBeRawPtr<RequestFileSystemRootCallback>) over
ride; | 54 void requestFileSystemRoot(ErrorString*, const String& origin, const String&
typeString, PassRefPtrWillBeRawPtr<RequestFileSystemRootCallback>) override; |
55 virtual void requestDirectoryContent(ErrorString*, const String& url, PassRe
fPtrWillBeRawPtr<RequestDirectoryContentCallback>) override; | 55 void requestDirectoryContent(ErrorString*, const String& url, PassRefPtrWill
BeRawPtr<RequestDirectoryContentCallback>) override; |
56 virtual void requestMetadata(ErrorString*, const String& url, PassRefPtrWill
BeRawPtr<RequestMetadataCallback>) override; | 56 void requestMetadata(ErrorString*, const String& url, PassRefPtrWillBeRawPtr
<RequestMetadataCallback>) override; |
57 virtual void requestFileContent(ErrorString*, const String& url, bool readAs
Text, const int* start, const int* end, const String* charset, PassRefPtrWillBeR
awPtr<RequestFileContentCallback>) override; | 57 void requestFileContent(ErrorString*, const String& url, bool readAsText, co
nst int* start, const int* end, const String* charset, PassRefPtrWillBeRawPtr<Re
questFileContentCallback>) override; |
58 virtual void deleteEntry(ErrorString*, const String& url, PassRefPtrWillBeRa
wPtr<DeleteEntryCallback>) override; | 58 void deleteEntry(ErrorString*, const String& url, PassRefPtrWillBeRawPtr<Del
eteEntryCallback>) override; |
59 | 59 |
60 void disable(ErrorString*) override; | 60 void disable(ErrorString*) override; |
61 void restore() override; | 61 void restore() override; |
62 | 62 |
63 private: | 63 private: |
64 explicit InspectorFileSystemAgent(Page*); | 64 explicit InspectorFileSystemAgent(Page*); |
65 bool assertEnabled(ErrorString*); | 65 bool assertEnabled(ErrorString*); |
66 ExecutionContext* assertExecutionContextForOrigin(ErrorString*, SecurityOrig
in*); | 66 ExecutionContext* assertExecutionContextForOrigin(ErrorString*, SecurityOrig
in*); |
67 | 67 |
68 RawPtrWillBeMember<Page> m_page; | 68 RawPtrWillBeMember<Page> m_page; |
69 bool m_enabled; | 69 bool m_enabled; |
70 }; | 70 }; |
71 | 71 |
72 } // namespace blink | 72 } // namespace blink |
73 | 73 |
74 #endif // InspectorFileSystemAgent_h | 74 #endif // InspectorFileSystemAgent_h |
OLD | NEW |