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

Side by Side Diff: chrome/browser/android/bookmarks/bookmarks_bridge.h

Issue 459973004: [Android] EnhancedBookmarksBridge for bookmark description read&write. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed patchset 3 comments 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
OLDNEW
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"
11 #include "base/android/jni_weak_ref.h" 11 #include "base/android/jni_weak_ref.h"
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "chrome/browser/android/bookmarks/partner_bookmarks_shim.h" 14 #include "chrome/browser/android/bookmarks/partner_bookmarks_shim.h"
15 #include "chrome/browser/bookmarks/chrome_bookmark_client.h" 15 #include "chrome/browser/bookmarks/chrome_bookmark_client.h"
16 #include "components/bookmarks/browser/base_bookmark_model_observer.h" 16 #include "components/bookmarks/browser/base_bookmark_model_observer.h"
17 #include "components/bookmarks/common/android/bookmark_id.h"
17 18
18 class Profile; 19 class Profile;
19 20
20 // The delegate to fetch bookmarks information for the Android native 21 // The delegate to fetch bookmarks information for the Android native
21 // bookmark page. This fetches the bookmarks, title, urls, folder 22 // bookmark page. This fetches the bookmarks, title, urls, folder
22 // hierarchy. 23 // hierarchy.
23 class BookmarksBridge : public BaseBookmarkModelObserver, 24 class BookmarksBridge : public BaseBookmarkModelObserver,
24 public PartnerBookmarksShim::Observer { 25 public PartnerBookmarksShim::Observer {
25 public: 26 public:
26 BookmarksBridge(JNIEnv* env, jobject obj, jobject j_profile); 27 BookmarksBridge(JNIEnv* env, jobject obj, jobject j_profile);
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 ChromeBookmarkClient* client_; // weak 148 ChromeBookmarkClient* client_; // weak
148 149
149 // Information about the Partner bookmarks (must check for IsLoaded()). 150 // Information about the Partner bookmarks (must check for IsLoaded()).
150 // This is owned by profile. 151 // This is owned by profile.
151 PartnerBookmarksShim* partner_bookmarks_shim_; 152 PartnerBookmarksShim* partner_bookmarks_shim_;
152 153
153 DISALLOW_COPY_AND_ASSIGN(BookmarksBridge); 154 DISALLOW_COPY_AND_ASSIGN(BookmarksBridge);
154 }; 155 };
155 156
156 #endif // CHROME_BROWSER_ANDROID_BOOKMARKS_BOOKMARKS_BRIDGE_H_ 157 #endif // CHROME_BROWSER_ANDROID_BOOKMARKS_BOOKMARKS_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698