| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 public: | 46 public: |
| 47 static PassOwnPtrWillBeRawPtr<InspectorFileSystemAgent> create(InspectedFram
es*); | 47 static PassOwnPtrWillBeRawPtr<InspectorFileSystemAgent> create(InspectedFram
es*); |
| 48 ~InspectorFileSystemAgent() override; | 48 ~InspectorFileSystemAgent() override; |
| 49 DECLARE_VIRTUAL_TRACE(); | 49 DECLARE_VIRTUAL_TRACE(); |
| 50 | 50 |
| 51 void enable(ErrorString*) override; | 51 void enable(ErrorString*) override; |
| 52 | 52 |
| 53 void requestFileSystemRoot(ErrorString*, const String& origin, const String&
typeString, PassRefPtr<RequestFileSystemRootCallback>) override; | 53 void requestFileSystemRoot(ErrorString*, const String& origin, const String&
typeString, PassRefPtr<RequestFileSystemRootCallback>) override; |
| 54 void requestDirectoryContent(ErrorString*, const String& url, PassRefPtr<Req
uestDirectoryContentCallback>) override; | 54 void requestDirectoryContent(ErrorString*, const String& url, PassRefPtr<Req
uestDirectoryContentCallback>) override; |
| 55 void requestMetadata(ErrorString*, const String& url, PassRefPtr<RequestMeta
dataCallback>) override; | 55 void requestMetadata(ErrorString*, const String& url, PassRefPtr<RequestMeta
dataCallback>) override; |
| 56 void requestFileContent(ErrorString*, const String& url, bool readAsText, co
nst int* start, const int* end, const String* charset, PassRefPtr<RequestFileCon
tentCallback>) override; | 56 void requestFileContent(ErrorString*, const String& url, bool readAsText, co
nst OptionalValue<int>& start, const OptionalValue<int>& end, const OptionalValu
e<String>& charset, PassRefPtr<RequestFileContentCallback>) override; |
| 57 void deleteEntry(ErrorString*, const String& url, PassRefPtr<DeleteEntryCall
back>) override; | 57 void deleteEntry(ErrorString*, const String& url, PassRefPtr<DeleteEntryCall
back>) override; |
| 58 | 58 |
| 59 void disable(ErrorString*) override; | 59 void disable(ErrorString*) override; |
| 60 void restore() override; | 60 void restore() override; |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 explicit InspectorFileSystemAgent(InspectedFrames*); | 63 explicit InspectorFileSystemAgent(InspectedFrames*); |
| 64 bool assertEnabled(ErrorString*); | 64 bool assertEnabled(ErrorString*); |
| 65 ExecutionContext* assertExecutionContextForOrigin(ErrorString*, SecurityOrig
in*); | 65 ExecutionContext* assertExecutionContextForOrigin(ErrorString*, SecurityOrig
in*); |
| 66 | 66 |
| 67 RawPtrWillBeMember<InspectedFrames> m_inspectedFrames; | 67 RawPtrWillBeMember<InspectedFrames> m_inspectedFrames; |
| 68 bool m_enabled; | 68 bool m_enabled; |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 } // namespace blink | 71 } // namespace blink |
| 72 | 72 |
| 73 #endif // InspectorFileSystemAgent_h | 73 #endif // InspectorFileSystemAgent_h |
| OLD | NEW |