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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 #include "modules/filesystem/Metadata.h" | 57 #include "modules/filesystem/Metadata.h" |
58 #include "modules/filesystem/MetadataCallback.h" | 58 #include "modules/filesystem/MetadataCallback.h" |
59 #include "platform/MIMETypeRegistry.h" | 59 #include "platform/MIMETypeRegistry.h" |
60 #include "platform/heap/Handle.h" | 60 #include "platform/heap/Handle.h" |
61 #include "platform/weborigin/KURL.h" | 61 #include "platform/weborigin/KURL.h" |
62 #include "platform/weborigin/SecurityOrigin.h" | 62 #include "platform/weborigin/SecurityOrigin.h" |
63 #include "wtf/ArrayBuffer.h" | 63 #include "wtf/ArrayBuffer.h" |
64 #include "wtf/text/Base64.h" | 64 #include "wtf/text/Base64.h" |
65 #include "wtf/text/TextEncoding.h" | 65 #include "wtf/text/TextEncoding.h" |
66 | 66 |
67 using WebCore::TypeBuilder::Array; | 67 using blink::TypeBuilder::Array; |
68 | 68 |
69 typedef WebCore::InspectorBackendDispatcher::FileSystemCommandHandler::RequestFi
leSystemRootCallback RequestFileSystemRootCallback; | 69 typedef blink::InspectorBackendDispatcher::FileSystemCommandHandler::RequestFile
SystemRootCallback RequestFileSystemRootCallback; |
70 typedef WebCore::InspectorBackendDispatcher::FileSystemCommandHandler::RequestDi
rectoryContentCallback RequestDirectoryContentCallback; | 70 typedef blink::InspectorBackendDispatcher::FileSystemCommandHandler::RequestDire
ctoryContentCallback RequestDirectoryContentCallback; |
71 typedef WebCore::InspectorBackendDispatcher::FileSystemCommandHandler::RequestMe
tadataCallback RequestMetadataCallback; | 71 typedef blink::InspectorBackendDispatcher::FileSystemCommandHandler::RequestMeta
dataCallback RequestMetadataCallback; |
72 typedef WebCore::InspectorBackendDispatcher::FileSystemCommandHandler::RequestFi
leContentCallback RequestFileContentCallback; | 72 typedef blink::InspectorBackendDispatcher::FileSystemCommandHandler::RequestFile
ContentCallback RequestFileContentCallback; |
73 typedef WebCore::InspectorBackendDispatcher::FileSystemCommandHandler::DeleteEnt
ryCallback DeleteEntryCallback; | 73 typedef blink::InspectorBackendDispatcher::FileSystemCommandHandler::DeleteEntry
Callback DeleteEntryCallback; |
74 | 74 |
75 namespace WebCore { | 75 namespace blink { |
76 | 76 |
77 namespace FileSystemAgentState { | 77 namespace FileSystemAgentState { |
78 static const char fileSystemAgentEnabled[] = "fileSystemAgentEnabled"; | 78 static const char fileSystemAgentEnabled[] = "fileSystemAgentEnabled"; |
79 } | 79 } |
80 | 80 |
81 namespace { | 81 namespace { |
82 | 82 |
83 template<typename BaseCallback, typename Handler, typename Argument> | 83 template<typename BaseCallback, typename Handler, typename Argument> |
84 class CallbackDispatcher FINAL : public BaseCallback { | 84 class CallbackDispatcher FINAL : public BaseCallback { |
85 public: | 85 public: |
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
721 continue; | 721 continue; |
722 LocalFrame* localFrame = toLocalFrame(frame); | 722 LocalFrame* localFrame = toLocalFrame(frame); |
723 if (localFrame->document() && localFrame->document()->securityOrigin()->
isSameSchemeHostPort(origin)) | 723 if (localFrame->document() && localFrame->document()->securityOrigin()->
isSameSchemeHostPort(origin)) |
724 return localFrame->document(); | 724 return localFrame->document(); |
725 } | 725 } |
726 | 726 |
727 *error = "No frame is available for the request"; | 727 *error = "No frame is available for the request"; |
728 return 0; | 728 return 0; |
729 } | 729 } |
730 | 730 |
731 } // namespace WebCore | 731 } // namespace blink |
OLD | NEW |