OLD | NEW |
1 // Copyright (c) 2008, Google Inc. | 1 // Copyright (c) 2008, Google Inc. |
2 // All rights reserved. | 2 // 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 | 32 |
33 using namespace WebCore; | 33 using namespace WebCore; |
34 | 34 |
35 void ChromiumDataObject::clear() | 35 void ChromiumDataObject::clear() |
36 { | 36 { |
37 url = KURL(); | 37 url = KURL(); |
38 url_title = ""; | 38 url_title = ""; |
39 filenames.clear(); | 39 filenames.clear(); |
40 plain_text = ""; | 40 plain_text = ""; |
41 text_html = ""; | 41 text_html = ""; |
| 42 html_base_url = KURL(); |
42 file_content_filename = ""; | 43 file_content_filename = ""; |
43 if (file_content) | 44 if (file_content) |
44 file_content->clear(); | 45 file_content->clear(); |
45 } | 46 } |
46 | 47 |
47 bool ChromiumDataObject::hasData() | 48 bool ChromiumDataObject::hasData() |
48 { | 49 { |
49 return !url.isEmpty() || !filenames.isEmpty() || | 50 return !url.isEmpty() || !filenames.isEmpty() || |
50 !plain_text.isEmpty() || !text_html.isEmpty() || | 51 !plain_text.isEmpty() || !text_html.isEmpty() || |
51 file_content; | 52 file_content; |
52 } | 53 } |
OLD | NEW |