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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 // The Auth service is used to get a token for auth with the server. | 104 // The Auth service is used to get a token for auth with the server. |
105 ProfileOAuth2TokenService* token_service_; // Weak | 105 ProfileOAuth2TokenService* token_service_; // Weak |
106 // The request to the token service. | 106 // The request to the token service. |
107 scoped_ptr<OAuth2TokenService::Request> token_request_; | 107 scoped_ptr<OAuth2TokenService::Request> token_request_; |
108 // To get the currently signed in user. | 108 // To get the currently signed in user. |
109 SigninManagerBase* signin_manager_; // Weak | 109 SigninManagerBase* signin_manager_; // Weak |
110 // To have access to the right context getter for the profile. | 110 // To have access to the right context getter for the profile. |
111 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; | 111 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; |
112 // The fetcher used to query the server. | 112 // The fetcher used to query the server. |
113 scoped_ptr<net::URLFetcher> url_fetcher_; | 113 scoped_ptr<net::URLFetcher> url_fetcher_; |
114 // A map from stars.id to bookmark nodes. With no null entries. | |
115 std::map<std::string, const BookmarkNode*> starsid_to_bookmark_; | |
116 | 114 |
117 DISALLOW_COPY_AND_ASSIGN(BookmarkServerService); | 115 DISALLOW_COPY_AND_ASSIGN(BookmarkServerService); |
118 }; | 116 }; |
119 } // namespace enhanced_bookmarks | 117 } // namespace enhanced_bookmarks |
120 | 118 |
121 #endif // COMPONENTS_ENHANCED_BOOKMARKS_BOOKMARK_SERVER_SERVICE_H_ | 119 #endif // COMPONENTS_ENHANCED_BOOKMARKS_BOOKMARK_SERVER_SERVICE_H_ |
OLD | NEW |