OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/bookmarks/browser/bookmark_node_data.h" | 5 #include "components/bookmarks/browser/bookmark_node_data.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/pickle.h" | 8 #include "base/pickle.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "ui/base/clipboard/clipboard.h" | 10 #include "ui/base/clipboard/clipboard.h" |
11 | 11 |
| 12 namespace bookmarks { |
| 13 |
12 namespace { | 14 namespace { |
13 | 15 |
14 const char kJavaScriptScheme[] = "javascript"; | 16 const char kJavaScriptScheme[] = "javascript"; |
15 | 17 |
16 } // namespace | 18 } // namespace |
17 | 19 |
18 // static | 20 // static |
19 const ui::OSExchangeData::CustomFormat& | 21 const ui::OSExchangeData::CustomFormat& |
20 BookmarkNodeData::GetBookmarkCustomFormat() { | 22 BookmarkNodeData::GetBookmarkCustomFormat() { |
21 CR_DEFINE_STATIC_LOCAL( | 23 CR_DEFINE_STATIC_LOCAL( |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 Element element; | 64 Element element; |
63 GURL url; | 65 GURL url; |
64 base::string16 title; | 66 base::string16 title; |
65 if (data.GetURLAndTitle( | 67 if (data.GetURLAndTitle( |
66 ui::OSExchangeData::CONVERT_FILENAMES, &url, &title)) | 68 ui::OSExchangeData::CONVERT_FILENAMES, &url, &title)) |
67 ReadFromTuple(url, title); | 69 ReadFromTuple(url, title); |
68 } | 70 } |
69 | 71 |
70 return is_valid(); | 72 return is_valid(); |
71 } | 73 } |
| 74 |
| 75 } // namespace bookmarks |
OLD | NEW |