OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |