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

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

Issue 865163003: bookmarks: Move BookmarkNode into 'bookmarks' namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: enhanced_bookmarks fix Created 5 years, 10 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
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_CLIENT_H_ 5 #ifndef COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_CLIENT_H_
6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_CLIENT_H_ 6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_CLIENT_H_
7 7
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback_forward.h" 12 #include "base/callback_forward.h"
13 #include "base/task/cancelable_task_tracker.h" 13 #include "base/task/cancelable_task_tracker.h"
14 #include "components/bookmarks/browser/bookmark_storage.h" 14 #include "components/bookmarks/browser/bookmark_storage.h"
15 #include "components/favicon_base/favicon_callback.h" 15 #include "components/favicon_base/favicon_callback.h"
16 #include "components/favicon_base/favicon_types.h" 16 #include "components/favicon_base/favicon_types.h"
17 #include "components/keyed_service/core/keyed_service.h" 17 #include "components/keyed_service/core/keyed_service.h"
18 18
19 class BookmarkNode;
20 class BookmarkPermanentNode;
21 class GURL; 19 class GURL;
22 20
23 namespace base { 21 namespace base {
24 struct UserMetricsAction; 22 struct UserMetricsAction;
25 } 23 }
26 24
27 namespace bookmarks { 25 namespace bookmarks {
28 26
27 class BookmarkNode;
28 class BookmarkPermanentNode;
29
29 // This class abstracts operations that depends on the embedder's environment, 30 // This class abstracts operations that depends on the embedder's environment,
30 // e.g. Chrome. 31 // e.g. Chrome.
31 class BookmarkClient : public KeyedService { 32 class BookmarkClient : public KeyedService {
32 public: 33 public:
33 // Types representing a set of BookmarkNode and a mapping from BookmarkNode 34 // Types representing a set of BookmarkNode and a mapping from BookmarkNode
34 // to the number of time the corresponding URL has been typed by the user in 35 // to the number of time the corresponding URL has been typed by the user in
35 // the Omnibox. 36 // the Omnibox.
36 typedef std::set<const BookmarkNode*> NodeSet; 37 typedef std::set<const BookmarkNode*> NodeSet;
37 typedef std::pair<const BookmarkNode*, int> NodeTypedCountPair; 38 typedef std::pair<const BookmarkNode*, int> NodeTypedCountPair;
38 typedef std::vector<NodeTypedCountPair> NodeTypedCountPairs; 39 typedef std::vector<NodeTypedCountPair> NodeTypedCountPairs;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // http://crbug.com/49598 88 // http://crbug.com/49598
88 virtual bool CanBeEditedByUser(const BookmarkNode* node) = 0; 89 virtual bool CanBeEditedByUser(const BookmarkNode* node) = 0;
89 90
90 protected: 91 protected:
91 ~BookmarkClient() override {} 92 ~BookmarkClient() override {}
92 }; 93 };
93 94
94 } // namespace bookmarks 95 } // namespace bookmarks
95 96
96 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_CLIENT_H_ 97 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698