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" |
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/managed_bookmarks_shim.h" | 14 #include "chrome/browser/android/bookmarks/managed_bookmarks_shim.h" |
15 #include "chrome/browser/android/bookmarks/partner_bookmarks_shim.h" | 15 #include "chrome/browser/android/bookmarks/partner_bookmarks_shim.h" |
16 #include "chrome/browser/bookmarks/base_bookmark_model_observer.h" | 16 #include "components/bookmarks/core/browser/base_bookmark_model_observer.h" |
17 | 17 |
18 class Profile; | 18 class Profile; |
19 | 19 |
20 // The delegate to fetch bookmarks information for the Android native | 20 // The delegate to fetch bookmarks information for the Android native |
21 // bookmark page. This fetches the bookmarks, title, urls, folder | 21 // bookmark page. This fetches the bookmarks, title, urls, folder |
22 // hierarchy. | 22 // hierarchy. |
23 class BookmarksBridge : public BaseBookmarkModelObserver, | 23 class BookmarksBridge : public BaseBookmarkModelObserver, |
24 public ManagedBookmarksShim::Observer, | 24 public ManagedBookmarksShim::Observer, |
25 public PartnerBookmarksShim::Observer { | 25 public PartnerBookmarksShim::Observer { |
26 public: | 26 public: |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 scoped_ptr<ManagedBookmarksShim> managed_bookmarks_shim_; | 113 scoped_ptr<ManagedBookmarksShim> managed_bookmarks_shim_; |
114 | 114 |
115 // Information about the Partner bookmarks (must check for IsLoaded()). | 115 // Information about the Partner bookmarks (must check for IsLoaded()). |
116 // This is owned by profile. | 116 // This is owned by profile. |
117 PartnerBookmarksShim* partner_bookmarks_shim_; | 117 PartnerBookmarksShim* partner_bookmarks_shim_; |
118 | 118 |
119 DISALLOW_COPY_AND_ASSIGN(BookmarksBridge); | 119 DISALLOW_COPY_AND_ASSIGN(BookmarksBridge); |
120 }; | 120 }; |
121 | 121 |
122 #endif // CHROME_BROWSER_ANDROID_BOOKMARKS_BOOKMARKS_BRIDGE_H_ | 122 #endif // CHROME_BROWSER_ANDROID_BOOKMARKS_BOOKMARKS_BRIDGE_H_ |
OLD | NEW |