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

Side by Side Diff: components/enhanced_bookmarks/bookmark_server_service.h

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 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 COMPONENTS_ENHANCED_BOOKMARKS_BOOKMARK_SERVER_SERVICE_H_ 5 #ifndef COMPONENTS_ENHANCED_BOOKMARKS_BOOKMARK_SERVER_SERVICE_H_
6 #define COMPONENTS_ENHANCED_BOOKMARKS_BOOKMARK_SERVER_SERVICE_H_ 6 #define COMPONENTS_ENHANCED_BOOKMARKS_BOOKMARK_SERVER_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // EnhancedBookmarkModelObserver: 86 // EnhancedBookmarkModelObserver:
87 void EnhancedBookmarkModelShuttingDown() override; 87 void EnhancedBookmarkModelShuttingDown() override;
88 88
89 SigninManagerBase* GetSigninManager(); 89 SigninManagerBase* GetSigninManager();
90 90
91 // Cached pointer to the bookmarks model. 91 // Cached pointer to the bookmarks model.
92 EnhancedBookmarkModel* model_; // weak 92 EnhancedBookmarkModel* model_; // weak
93 93
94 protected: 94 protected:
95 // The observers. 95 // The observers.
96 ObserverList<BookmarkServerServiceObserver> observers_; 96 base::ObserverList<BookmarkServerServiceObserver> observers_;
97 97
98 private: 98 private:
99 FRIEND_TEST_ALL_PREFIXES(BookmarkServerServiceTest, Cluster); 99 FRIEND_TEST_ALL_PREFIXES(BookmarkServerServiceTest, Cluster);
100 FRIEND_TEST_ALL_PREFIXES(BookmarkServerServiceTest, SignOut); 100 FRIEND_TEST_ALL_PREFIXES(BookmarkServerServiceTest, SignOut);
101 FRIEND_TEST_ALL_PREFIXES(BookmarkServerServiceTest, 101 FRIEND_TEST_ALL_PREFIXES(BookmarkServerServiceTest,
102 ClearClusterMapOnRemoveAllBookmarks); 102 ClearClusterMapOnRemoveAllBookmarks);
103 103
104 // net::URLFetcherDelegate methods. Called when the query is finished. 104 // net::URLFetcherDelegate methods. Called when the query is finished.
105 void OnURLFetchComplete(const net::URLFetcher* source) override; 105 void OnURLFetchComplete(const net::URLFetcher* source) override;
106 106
(...skipping 14 matching lines...) Expand all
121 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; 121 scoped_refptr<net::URLRequestContextGetter> request_context_getter_;
122 // The fetcher used to query the server. 122 // The fetcher used to query the server.
123 scoped_ptr<net::URLFetcher> url_fetcher_; 123 scoped_ptr<net::URLFetcher> url_fetcher_;
124 124
125 DISALLOW_COPY_AND_ASSIGN(BookmarkServerService); 125 DISALLOW_COPY_AND_ASSIGN(BookmarkServerService);
126 }; 126 };
127 } // namespace enhanced_bookmarks 127 } // namespace enhanced_bookmarks
128 128
129 #endif // COMPONENTS_ENHANCED_BOOKMARKS_BOOKMARK_SERVER_SERVICE_H_ 129 #endif // COMPONENTS_ENHANCED_BOOKMARKS_BOOKMARK_SERVER_SERVICE_H_
130 130
OLDNEW
« no previous file with comments | « components/dom_distiller/core/dom_distiller_store.h ('k') | components/enhanced_bookmarks/enhanced_bookmark_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698