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

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

Issue 1233673002: Fix componentization of chrome/browser/bookmarks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix "gn check" and compilation on Mac Created 5 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/android/bookmarks/bookmarks_bridge.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
16 #include "components/bookmarks/browser/base_bookmark_model_observer.h" 15 #include "components/bookmarks/browser/base_bookmark_model_observer.h"
17 #include "components/bookmarks/common/android/bookmark_id.h" 16 #include "components/bookmarks/common/android/bookmark_id.h"
18 17
19 namespace bookmarks { 18 namespace bookmarks {
19 class BookmarkModel;
20 class ManagedBookmarkService;
20 class ScopedGroupBookmarkActions; 21 class ScopedGroupBookmarkActions;
21 } 22 }
22 23
23 class Profile; 24 class Profile;
24 25
25 // The delegate to fetch bookmarks information for the Android native 26 // The delegate to fetch bookmarks information for the Android native
26 // bookmark page. This fetches the bookmarks, title, urls, folder 27 // bookmark page. This fetches the bookmarks, title, urls, folder
27 // hierarchy. 28 // hierarchy.
28 class BookmarksBridge : public bookmarks::BaseBookmarkModelObserver, 29 class BookmarksBridge : public bookmarks::BaseBookmarkModelObserver,
29 public PartnerBookmarksShim::Observer { 30 public PartnerBookmarksShim::Observer {
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 void ExtensiveBookmarkChangesEnded(bookmarks::BookmarkModel* model) override; 206 void ExtensiveBookmarkChangesEnded(bookmarks::BookmarkModel* model) override;
206 207
207 // Override PartnerBookmarksShim::Observer 208 // Override PartnerBookmarksShim::Observer
208 void PartnerShimChanged(PartnerBookmarksShim* shim) override; 209 void PartnerShimChanged(PartnerBookmarksShim* shim) override;
209 void PartnerShimLoaded(PartnerBookmarksShim* shim) override; 210 void PartnerShimLoaded(PartnerBookmarksShim* shim) override;
210 void ShimBeingDeleted(PartnerBookmarksShim* shim) override; 211 void ShimBeingDeleted(PartnerBookmarksShim* shim) override;
211 212
212 Profile* profile_; 213 Profile* profile_;
213 JavaObjectWeakGlobalRef weak_java_ref_; 214 JavaObjectWeakGlobalRef weak_java_ref_;
214 bookmarks::BookmarkModel* bookmark_model_; // weak 215 bookmarks::BookmarkModel* bookmark_model_; // weak
215 ChromeBookmarkClient* client_; // weak 216 bookmarks::ManagedBookmarkService* managed_bookmark_service_; // weak
216 scoped_ptr<bookmarks::ScopedGroupBookmarkActions> grouped_bookmark_actions_; 217 scoped_ptr<bookmarks::ScopedGroupBookmarkActions> grouped_bookmark_actions_;
217 218
218 // Information about the Partner bookmarks (must check for IsLoaded()). 219 // Information about the Partner bookmarks (must check for IsLoaded()).
219 // This is owned by profile. 220 // This is owned by profile.
220 PartnerBookmarksShim* partner_bookmarks_shim_; 221 PartnerBookmarksShim* partner_bookmarks_shim_;
221 222
222 DISALLOW_COPY_AND_ASSIGN(BookmarksBridge); 223 DISALLOW_COPY_AND_ASSIGN(BookmarksBridge);
223 }; 224 };
224 225
225 #endif // CHROME_BROWSER_ANDROID_BOOKMARKS_BOOKMARKS_BRIDGE_H_ 226 #endif // CHROME_BROWSER_ANDROID_BOOKMARKS_BOOKMARKS_BRIDGE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/bookmarks/bookmarks_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698