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 #ifndef CHROME_BROWSER_ANDROID_BOOKMARKS_BOOKMARKS_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_BOOKMARKS_BOOKMARKS_BRIDGE_H_ |
6 #define CHROME_BROWSER_ANDROID_BOOKMARKS_BOOKMARKS_BRIDGE_H_ | 6 #define CHROME_BROWSER_ANDROID_BOOKMARKS_BOOKMARKS_BRIDGE_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 const BookmarkNode* node); | 52 const BookmarkNode* node); |
53 void ExtractBookmarkNodeInformation( | 53 void ExtractBookmarkNodeInformation( |
54 const BookmarkNode* node, | 54 const BookmarkNode* node, |
55 jobject j_result_obj); | 55 jobject j_result_obj); |
56 const BookmarkNode* GetNodeByID(long node_id, int type); | 56 const BookmarkNode* GetNodeByID(long node_id, int type); |
57 const BookmarkNode* GetFolderWithFallback(long folder_id, int type); | 57 const BookmarkNode* GetFolderWithFallback(long folder_id, int type); |
58 // Returns true if |node| can be modified by the user. | 58 // Returns true if |node| can be modified by the user. |
59 bool IsEditable(const BookmarkNode* node) const; | 59 bool IsEditable(const BookmarkNode* node) const; |
60 const BookmarkNode* GetParentNode(const BookmarkNode* node); | 60 const BookmarkNode* GetParentNode(const BookmarkNode* node); |
61 int GetBookmarkType(const BookmarkNode* node); | 61 int GetBookmarkType(const BookmarkNode* node); |
62 string16 GetTitle(const BookmarkNode* node) const; | 62 base::string16 GetTitle(const BookmarkNode* node) const; |
63 bool IsReachable(const BookmarkNode* node) const; | 63 bool IsReachable(const BookmarkNode* node) const; |
64 bool IsLoaded() const; | 64 bool IsLoaded() const; |
65 bool IsFolderAvailable(const BookmarkNode* folder) const; | 65 bool IsFolderAvailable(const BookmarkNode* folder) const; |
66 void NotifyIfDoneLoading(); | 66 void NotifyIfDoneLoading(); |
67 | 67 |
68 // Override BaseBookmarkModelObserver. | 68 // Override BaseBookmarkModelObserver. |
69 // Called when there are changes to the bookmark model that don't trigger | 69 // Called when there are changes to the bookmark model that don't trigger |
70 // any of the other callback methods. For example, this is called when | 70 // any of the other callback methods. For example, this is called when |
71 // managed or partner bookmarks change. | 71 // managed or partner bookmarks change. |
72 virtual void BookmarkModelChanged() OVERRIDE; | 72 virtual void BookmarkModelChanged() OVERRIDE; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 scoped_ptr<ManagedBookmarksShim> managed_bookmarks_shim_; | 106 scoped_ptr<ManagedBookmarksShim> managed_bookmarks_shim_; |
107 | 107 |
108 // Information about the Partner bookmarks (must check for IsLoaded()). | 108 // Information about the Partner bookmarks (must check for IsLoaded()). |
109 // This is owned by profile. | 109 // This is owned by profile. |
110 PartnerBookmarksShim* partner_bookmarks_shim_; | 110 PartnerBookmarksShim* partner_bookmarks_shim_; |
111 | 111 |
112 DISALLOW_COPY_AND_ASSIGN(BookmarksBridge); | 112 DISALLOW_COPY_AND_ASSIGN(BookmarksBridge); |
113 }; | 113 }; |
114 | 114 |
115 #endif // CHROME_BROWSER_ANDROID_BOOKMARKS_BOOKMARKS_BRIDGE_H_ | 115 #endif // CHROME_BROWSER_ANDROID_BOOKMARKS_BOOKMARKS_BRIDGE_H_ |
OLD | NEW |