| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 21 matching lines...) Expand all Loading... |
| 32 #include "bindings/core/v8/ScriptState.h" | 32 #include "bindings/core/v8/ScriptState.h" |
| 33 #include "core/fileapi/FileError.h" | 33 #include "core/fileapi/FileError.h" |
| 34 #include "core/frame/UseCounter.h" | 34 #include "core/frame/UseCounter.h" |
| 35 #include "core/html/VoidCallback.h" | 35 #include "core/html/VoidCallback.h" |
| 36 #include "modules/filesystem/DirectoryEntry.h" | 36 #include "modules/filesystem/DirectoryEntry.h" |
| 37 #include "modules/filesystem/EntryCallback.h" | 37 #include "modules/filesystem/EntryCallback.h" |
| 38 #include "modules/filesystem/ErrorCallback.h" | 38 #include "modules/filesystem/ErrorCallback.h" |
| 39 #include "modules/filesystem/FileSystemCallbacks.h" | 39 #include "modules/filesystem/FileSystemCallbacks.h" |
| 40 #include "modules/filesystem/MetadataCallback.h" | 40 #include "modules/filesystem/MetadataCallback.h" |
| 41 #include "platform/weborigin/SecurityOrigin.h" | 41 #include "platform/weborigin/SecurityOrigin.h" |
| 42 #include "wtf/text/StringBuilder.h" | 42 #include "platform/wtf/text/StringBuilder.h" |
| 43 | 43 |
| 44 namespace blink { | 44 namespace blink { |
| 45 | 45 |
| 46 Entry::Entry(DOMFileSystemBase* file_system, const String& full_path) | 46 Entry::Entry(DOMFileSystemBase* file_system, const String& full_path) |
| 47 : EntryBase(file_system, full_path) {} | 47 : EntryBase(file_system, full_path) {} |
| 48 | 48 |
| 49 DOMFileSystem* Entry::filesystem(ScriptState* script_state) const { | 49 DOMFileSystem* Entry::filesystem(ScriptState* script_state) const { |
| 50 if (file_system_->GetType() == kFileSystemTypeIsolated) | 50 if (file_system_->GetType() == kFileSystemTypeIsolated) |
| 51 UseCounter::Count( | 51 UseCounter::Count( |
| 52 script_state->GetExecutionContext(), | 52 script_state->GetExecutionContext(), |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 UseCounter::Count(script_state->GetExecutionContext(), | 113 UseCounter::Count(script_state->GetExecutionContext(), |
| 114 UseCounter::kEntry_ToURL_Method_IsolatedFileSystem); | 114 UseCounter::kEntry_ToURL_Method_IsolatedFileSystem); |
| 115 return static_cast<const EntryBase*>(this)->toURL(); | 115 return static_cast<const EntryBase*>(this)->toURL(); |
| 116 } | 116 } |
| 117 | 117 |
| 118 DEFINE_TRACE(Entry) { | 118 DEFINE_TRACE(Entry) { |
| 119 EntryBase::Trace(visitor); | 119 EntryBase::Trace(visitor); |
| 120 } | 120 } |
| 121 | 121 |
| 122 } // namespace blink | 122 } // namespace blink |
| OLD | NEW |