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

Side by Side Diff: components/bookmarks/browser/bookmark_node_data.h

Issue 422673002: Move BookmarkNodeData into bookmarks namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac Created 6 years, 4 months 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 // 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 #ifndef COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_NODE_DATA_H_ 5 #ifndef COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_NODE_DATA_H_
6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_NODE_DATA_H_ 6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_NODE_DATA_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "components/bookmarks/browser/bookmark_node.h" 13 #include "components/bookmarks/browser/bookmark_node.h"
14 #include "ui/base/clipboard/clipboard_types.h" 14 #include "ui/base/clipboard/clipboard_types.h"
15 15
16 #include "url/gurl.h" 16 #include "url/gurl.h"
17 #if defined(TOOLKIT_VIEWS) 17 #if defined(TOOLKIT_VIEWS)
18 #include "ui/base/dragdrop/os_exchange_data.h" 18 #include "ui/base/dragdrop/os_exchange_data.h"
19 #endif 19 #endif
20 20
21 class BookmarkModel; 21 class BookmarkModel;
22 class Pickle; 22 class Pickle;
23 class PickleIterator; 23 class PickleIterator;
24 24
25 namespace bookmarks {
26
25 // BookmarkNodeData is used to represent the following: 27 // BookmarkNodeData is used to represent the following:
26 // 28 //
27 // . A single URL. 29 // . A single URL.
28 // . A single node from the bookmark model. 30 // . A single node from the bookmark model.
29 // . A set of nodes from the bookmark model. 31 // . A set of nodes from the bookmark model.
30 // 32 //
31 // BookmarkNodeData is used by bookmark related views to represent a dragged 33 // BookmarkNodeData is used by bookmark related views to represent a dragged
32 // bookmark or bookmarks. 34 // bookmark or bookmarks.
33 // 35 //
34 // Typical usage when writing data for a drag is: 36 // Typical usage when writing data for a drag is:
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 bool IsFromProfilePath(const base::FilePath& profile_path) const; 166 bool IsFromProfilePath(const base::FilePath& profile_path) const;
165 167
166 // The actual elements written to the clipboard. 168 // The actual elements written to the clipboard.
167 std::vector<Element> elements; 169 std::vector<Element> elements;
168 170
169 private: 171 private:
170 // Path of the profile we originated from. 172 // Path of the profile we originated from.
171 base::FilePath profile_path_; 173 base::FilePath profile_path_;
172 }; 174 };
173 175
176 } // namespace bookmarks
177
174 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_NODE_DATA_H_ 178 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_NODE_DATA_H_
OLDNEW
« no previous file with comments | « components/bookmarks/browser/bookmark_model.cc ('k') | components/bookmarks/browser/bookmark_node_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698