OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_NODE_DATA_H_ | 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_NODE_DATA_H_ |
6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_NODE_DATA_H_ | 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_NODE_DATA_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 // constructors/readers that don't set it. This should only be called if the | 145 // constructors/readers that don't set it. This should only be called if the |
146 // profile path is not already set. | 146 // profile path is not already set. |
147 void SetOriginatingProfile(Profile* profile); | 147 void SetOriginatingProfile(Profile* profile); |
148 | 148 |
149 // Returns true if this data is from the specified profile. | 149 // Returns true if this data is from the specified profile. |
150 bool IsFromProfile(Profile* profile) const; | 150 bool IsFromProfile(Profile* profile) const; |
151 | 151 |
152 // The actual elements written to the clipboard. | 152 // The actual elements written to the clipboard. |
153 std::vector<Element> elements; | 153 std::vector<Element> elements; |
154 | 154 |
155 // The MIME type for the clipboard format for BookmarkNodeData. | |
156 static const char* kClipboardFormatString; | |
157 | |
158 static bool ClipboardContainsBookmarks(); | 155 static bool ClipboardContainsBookmarks(); |
159 | 156 |
160 private: | 157 private: |
161 // Path of the profile we originated from. | 158 // Path of the profile we originated from. |
162 FilePath profile_path_; | 159 FilePath profile_path_; |
163 }; | 160 }; |
164 | 161 |
165 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_NODE_DATA_H_ | 162 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_NODE_DATA_H_ |
OLD | NEW |