Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: Source/core/platform/chromium/ChromiumDataObjectItem.h

Issue 85263006: Make IDL Callbacks non-refcounted by default (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 public: 48 public:
49 static PassRefPtr<ChromiumDataObjectItem> createFromString(const String& typ e, const String& data); 49 static PassRefPtr<ChromiumDataObjectItem> createFromString(const String& typ e, const String& data);
50 static PassRefPtr<ChromiumDataObjectItem> createFromFile(PassRefPtr<File>); 50 static PassRefPtr<ChromiumDataObjectItem> createFromFile(PassRefPtr<File>);
51 static PassRefPtr<ChromiumDataObjectItem> createFromURL(const String& url, c onst String& title); 51 static PassRefPtr<ChromiumDataObjectItem> createFromURL(const String& url, c onst String& title);
52 static PassRefPtr<ChromiumDataObjectItem> createFromHTML(const String& html, const KURL& baseURL); 52 static PassRefPtr<ChromiumDataObjectItem> createFromHTML(const String& html, const KURL& baseURL);
53 static PassRefPtr<ChromiumDataObjectItem> createFromSharedBuffer(const Strin g& filename, PassRefPtr<SharedBuffer>); 53 static PassRefPtr<ChromiumDataObjectItem> createFromSharedBuffer(const Strin g& filename, PassRefPtr<SharedBuffer>);
54 static PassRefPtr<ChromiumDataObjectItem> createFromPasteboard(const String& type, uint64_t sequenceNumber); 54 static PassRefPtr<ChromiumDataObjectItem> createFromPasteboard(const String& type, uint64_t sequenceNumber);
55 55
56 String kind() const { return m_kind; } 56 String kind() const { return m_kind; }
57 String type() const { return m_type; } 57 String type() const { return m_type; }
58 void getAsString(PassRefPtr<StringCallback>, ExecutionContext*) const; 58 void getAsString(PassOwnPtr<StringCallback>, ExecutionContext*) const;
59 PassRefPtr<Blob> getAsFile() const; 59 PassRefPtr<Blob> getAsFile() const;
60 60
61 // Used to support legacy DataTransfer APIs and renderer->browser serializat ion. 61 // Used to support legacy DataTransfer APIs and renderer->browser serializat ion.
62 String internalGetAsString() const; 62 String internalGetAsString() const;
63 PassRefPtr<SharedBuffer> sharedBuffer() const { return m_sharedBuffer; } 63 PassRefPtr<SharedBuffer> sharedBuffer() const { return m_sharedBuffer; }
64 String title() const { return m_title; } 64 String title() const { return m_title; }
65 KURL baseURL() const { return m_baseURL; } 65 KURL baseURL() const { return m_baseURL; }
66 bool isFilename() const; 66 bool isFilename() const;
67 67
68 private: 68 private:
(...skipping 15 matching lines...) Expand all
84 // Optional metadata. Currently used for URL, HTML, and dragging files in. 84 // Optional metadata. Currently used for URL, HTML, and dragging files in.
85 String m_title; 85 String m_title;
86 KURL m_baseURL; 86 KURL m_baseURL;
87 87
88 uint64_t m_sequenceNumber; // Only valid when m_source == PasteboardSource 88 uint64_t m_sequenceNumber; // Only valid when m_source == PasteboardSource
89 }; 89 };
90 90
91 } // namespace WebCore 91 } // namespace WebCore
92 92
93 #endif // ChromiumDataObjectItem_h 93 #endif // ChromiumDataObjectItem_h
OLDNEW
« no previous file with comments | « Source/core/dom/StringCallback.cpp ('k') | Source/core/platform/chromium/ChromiumDataObjectItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698