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

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: 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" 13 #include "build/build_config.h"
14 #include "build/buildflag.h" 14 #include "build/buildflag.h"
15 #include "chrome/common/features.h" 15 #include "chrome/common/features.h"
16 #include "components/bookmarks/browser/bookmark_client.h" 16 #include "components/bookmarks/browser/bookmark_client.h"
17 17
18 class GURL; 18 class GURL;
19 class Profile; 19 class Profile;
20 20
21 namespace bookmarks { 21 namespace bookmarks {
22 class BookmarkModel; 22 class BookmarkModel;
23 class BookmarkNode; 23 class BookmarkNode;
24 class BookmarkPermanentNode; 24 class BookmarkPermanentNode;
25 class ManagedBookmarkService; 25 class ManagedBookmarkService;
26 } 26 }
27 27
28 #if BUILDFLAG(ANDROID_JAVA_UI) 28 #if defined(OS_ANDROID)
29 namespace offline_pages { 29 namespace offline_pages {
30 class OfflinePageBookmarkObserver; 30 class OfflinePageBookmarkObserver;
31 } 31 }
32 #endif 32 #endif
33 33
34 class ChromeBookmarkClient : public bookmarks::BookmarkClient { 34 class ChromeBookmarkClient : public bookmarks::BookmarkClient {
35 public: 35 public:
36 ChromeBookmarkClient( 36 ChromeBookmarkClient(
37 Profile* profile, 37 Profile* profile,
38 bookmarks::ManagedBookmarkService* managed_bookmark_service); 38 bookmarks::ManagedBookmarkService* managed_bookmark_service);
(...skipping 19 matching lines...) Expand all
58 bool CanBeEditedByUser(const bookmarks::BookmarkNode* node) override; 58 bool CanBeEditedByUser(const bookmarks::BookmarkNode* node) override;
59 59
60 private: 60 private:
61 // Pointer to the associated Profile. Must outlive ChromeBookmarkClient. 61 // Pointer to the associated Profile. Must outlive ChromeBookmarkClient.
62 Profile* profile_; 62 Profile* profile_;
63 63
64 // Pointer to the ManagedBookmarkService responsible for bookmark policy. May 64 // Pointer to the ManagedBookmarkService responsible for bookmark policy. May
65 // be null during testing. 65 // be null during testing.
66 bookmarks::ManagedBookmarkService* managed_bookmark_service_; 66 bookmarks::ManagedBookmarkService* managed_bookmark_service_;
67 67
68 #if BUILDFLAG(ANDROID_JAVA_UI) 68 #if defined(OS_ANDROID)
69 // Owns the observer used by Offline Page listening to Bookmark Model events. 69 // Owns the observer used by Offline Page listening to Bookmark Model events.
70 std::unique_ptr<offline_pages::OfflinePageBookmarkObserver> 70 std::unique_ptr<offline_pages::OfflinePageBookmarkObserver>
71 offline_page_observer_; 71 offline_page_observer_;
72 #endif 72 #endif
73 73
74 DISALLOW_COPY_AND_ASSIGN(ChromeBookmarkClient); 74 DISALLOW_COPY_AND_ASSIGN(ChromeBookmarkClient);
75 }; 75 };
76 76
77 #endif // CHROME_BROWSER_BOOKMARKS_CHROME_BOOKMARK_CLIENT_H_ 77 #endif // CHROME_BROWSER_BOOKMARKS_CHROME_BOOKMARK_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698