| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 18 matching lines...) Expand all Loading... |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef DataObjectItem_h | 31 #ifndef DataObjectItem_h |
| 32 #define DataObjectItem_h | 32 #define DataObjectItem_h |
| 33 | 33 |
| 34 #include "core/CoreExport.h" | 34 #include "core/CoreExport.h" |
| 35 #include "core/fileapi/File.h" | 35 #include "core/fileapi/File.h" |
| 36 #include "platform/SharedBuffer.h" | 36 #include "platform/SharedBuffer.h" |
| 37 #include "platform/heap/Handle.h" | 37 #include "platform/heap/Handle.h" |
| 38 #include "platform/weborigin/KURL.h" | 38 #include "platform/weborigin/KURL.h" |
| 39 #include "wtf/Forward.h" | 39 #include "platform/wtf/Forward.h" |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 class CORE_EXPORT DataObjectItem | 43 class CORE_EXPORT DataObjectItem |
| 44 : public GarbageCollectedFinalized<DataObjectItem> { | 44 : public GarbageCollectedFinalized<DataObjectItem> { |
| 45 public: | 45 public: |
| 46 enum ItemKind { kStringKind, kFileKind }; | 46 enum ItemKind { kStringKind, kFileKind }; |
| 47 | 47 |
| 48 static DataObjectItem* CreateFromString(const String& type, | 48 static DataObjectItem* CreateFromString(const String& type, |
| 49 const String& data); | 49 const String& data); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 String title_; | 103 String title_; |
| 104 KURL base_url_; | 104 KURL base_url_; |
| 105 | 105 |
| 106 uint64_t sequence_number_; // Only valid when m_source == PasteboardSource | 106 uint64_t sequence_number_; // Only valid when m_source == PasteboardSource |
| 107 String file_system_id_; // Only valid when m_file is backed by FileEntry. | 107 String file_system_id_; // Only valid when m_file is backed by FileEntry. |
| 108 }; | 108 }; |
| 109 | 109 |
| 110 } // namespace blink | 110 } // namespace blink |
| 111 | 111 |
| 112 #endif // DataObjectItem_h | 112 #endif // DataObjectItem_h |
| OLD | NEW |