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

Side by Side Diff: chrome/browser/bookmarks/chrome_bookmark_client.h

Issue 2619603002: Remove android_java_ui as it is not used (Closed)
Patch Set: Rebase to master Created 3 years, 11 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 CHROME_BROWSER_BOOKMARKS_CHROME_BOOKMARK_CLIENT_H_ 5 #ifndef CHROME_BROWSER_BOOKMARKS_CHROME_BOOKMARK_CLIENT_H_
6 #define CHROME_BROWSER_BOOKMARKS_CHROME_BOOKMARK_CLIENT_H_ 6 #define CHROME_BROWSER_BOOKMARKS_CHROME_BOOKMARK_CLIENT_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/deferred_sequenced_task_runner.h" 11 #include "base/deferred_sequenced_task_runner.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "build/build_config.h"
14 #include "build/buildflag.h"
15 #include "chrome/common/features.h"
16 #include "components/bookmarks/browser/bookmark_client.h" 13 #include "components/bookmarks/browser/bookmark_client.h"
17 14
18 class GURL; 15 class GURL;
19 class Profile; 16 class Profile;
20 17
21 namespace bookmarks { 18 namespace bookmarks {
22 class BookmarkModel; 19 class BookmarkModel;
23 class BookmarkNode; 20 class BookmarkNode;
24 class BookmarkPermanentNode; 21 class BookmarkPermanentNode;
25 class ManagedBookmarkService; 22 class ManagedBookmarkService;
26 } 23 }
27 24
28 #if BUILDFLAG(ANDROID_JAVA_UI) 25 #if defined(OS_ANDROID)
29 namespace offline_pages { 26 namespace offline_pages {
30 class OfflinePageBookmarkObserver; 27 class OfflinePageBookmarkObserver;
31 } 28 }
32 #endif 29 #endif
33 30
34 class ChromeBookmarkClient : public bookmarks::BookmarkClient { 31 class ChromeBookmarkClient : public bookmarks::BookmarkClient {
35 public: 32 public:
36 ChromeBookmarkClient( 33 ChromeBookmarkClient(
37 Profile* profile, 34 Profile* profile,
38 bookmarks::ManagedBookmarkService* managed_bookmark_service); 35 bookmarks::ManagedBookmarkService* managed_bookmark_service);
(...skipping 19 matching lines...) Expand all
58 bool CanBeEditedByUser(const bookmarks::BookmarkNode* node) override; 55 bool CanBeEditedByUser(const bookmarks::BookmarkNode* node) override;
59 56
60 private: 57 private:
61 // Pointer to the associated Profile. Must outlive ChromeBookmarkClient. 58 // Pointer to the associated Profile. Must outlive ChromeBookmarkClient.
62 Profile* profile_; 59 Profile* profile_;
63 60
64 // Pointer to the ManagedBookmarkService responsible for bookmark policy. May 61 // Pointer to the ManagedBookmarkService responsible for bookmark policy. May
65 // be null during testing. 62 // be null during testing.
66 bookmarks::ManagedBookmarkService* managed_bookmark_service_; 63 bookmarks::ManagedBookmarkService* managed_bookmark_service_;
67 64
68 #if BUILDFLAG(ANDROID_JAVA_UI) 65 #if defined(OS_ANDROID)
69 // Owns the observer used by Offline Page listening to Bookmark Model events. 66 // Owns the observer used by Offline Page listening to Bookmark Model events.
70 std::unique_ptr<offline_pages::OfflinePageBookmarkObserver> 67 std::unique_ptr<offline_pages::OfflinePageBookmarkObserver>
71 offline_page_observer_; 68 offline_page_observer_;
72 #endif 69 #endif
73 70
74 DISALLOW_COPY_AND_ASSIGN(ChromeBookmarkClient); 71 DISALLOW_COPY_AND_ASSIGN(ChromeBookmarkClient);
75 }; 72 };
76 73
77 #endif // CHROME_BROWSER_BOOKMARKS_CHROME_BOOKMARK_CLIENT_H_ 74 #endif // CHROME_BROWSER_BOOKMARKS_CHROME_BOOKMARK_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_model_factory.cc ('k') | chrome/browser/bookmarks/chrome_bookmark_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698