OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/public/common/drop_data.h" | 5 #include "content/public/common/drop_data.h" |
6 | 6 |
7 namespace content { | 7 namespace content { |
8 | 8 |
9 DropData::DropData() | 9 DropData::DropData() |
10 : did_originate_from_renderer(false), | 10 : did_originate_from_renderer(false), |
11 referrer_policy(blink::WebReferrerPolicyDefault) {} | 11 referrer_policy(blink::WebReferrerPolicyDefault) {} |
12 | 12 |
13 DropData::DropData(const DropData& other) = default; | 13 DropData::DropData(const DropData& other) = default; |
14 | 14 |
15 DropData::~DropData() { | 15 DropData::~DropData() { |
16 } | 16 } |
17 | 17 |
| 18 DropData::MetaData::MetaData() {} |
| 19 |
| 20 DropData::MetaData::MetaData(const DropData::Kind& kind, |
| 21 const base::string16& mime_type) |
| 22 : kind(kind), mime_type(mime_type) {} |
| 23 |
| 24 DropData::MetaData::MetaData(const DropData::Kind& kind, |
| 25 const base::FilePath& filename) |
| 26 : kind(kind), filename(filename) {} |
| 27 |
| 28 DropData::MetaData::MetaData(const DropData::Kind& kind, |
| 29 const GURL& file_system_url) |
| 30 : kind(kind), file_system_url(file_system_url) {} |
| 31 |
| 32 DropData::MetaData::MetaData(const DropData::MetaData& other) = default; |
| 33 |
| 34 DropData::MetaData::~MetaData() {} |
| 35 |
18 } // namespace content | 36 } // namespace content |
OLD | NEW |