summaryrefslogtreecommitdiffstats
path: root/components/enhanced_bookmarks/bookmark_server_service.h
diff options
context:
space:
mode:
authornoyau <noyau@chromium.org>2014-10-07 15:00:43 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-07 22:01:00 +0000
commit6bb374fc58bfeeb7966b6a548b1c7b41af9c8e47 (patch)
tree7b9d87b6c35ea4350be96c62016e5c2a77fd5d0b /components/enhanced_bookmarks/bookmark_server_service.h
parentda97e832e41826d3ce0e6bd5c495feb636345ece (diff)
downloadchromium_src-6bb374fc58bfeeb7966b6a548b1c7b41af9c8e47.zip
chromium_src-6bb374fc58bfeeb7966b6a548b1c7b41af9c8e47.tar.gz
chromium_src-6bb374fc58bfeeb7966b6a548b1c7b41af9c8e47.tar.bz2
Bring up of the enhanced bookmarks cluster service.
This service retrieves the cluster of bookmarks from the bookmark server. BUG=None Review URL: https://codereview.chromium.org/539173004 Cr-Commit-Position: refs/heads/master@{#298582}
Diffstat (limited to 'components/enhanced_bookmarks/bookmark_server_service.h')
-rw-r--r--components/enhanced_bookmarks/bookmark_server_service.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/components/enhanced_bookmarks/bookmark_server_service.h b/components/enhanced_bookmarks/bookmark_server_service.h
index 8df0e2f..d8cba89 100644
--- a/components/enhanced_bookmarks/bookmark_server_service.h
+++ b/components/enhanced_bookmarks/bookmark_server_service.h
@@ -64,7 +64,7 @@ class BookmarkServerService : protected net::URLFetcherDelegate,
void TriggerTokenRequest(bool cancel_previous);
// Build the query to send to the server. Returns a newly created url_fetcher.
- virtual net::URLFetcher* CreateFetcher() = 0;
+ virtual scoped_ptr<net::URLFetcher> CreateFetcher() = 0;
// Processes the response to the query. Returns true on successful parsing,
// false on failure. The implementation can assume that |should_notify| is set
@@ -86,6 +86,7 @@ class BookmarkServerService : protected net::URLFetcherDelegate,
private:
FRIEND_TEST_ALL_PREFIXES(BookmarkServerServiceTest, Cluster);
+ FRIEND_TEST_ALL_PREFIXES(BookmarkServerServiceTest, SignOut);
FRIEND_TEST_ALL_PREFIXES(BookmarkServerServiceTest,
ClearClusterMapOnRemoveAllBookmarks);
@@ -111,8 +112,6 @@ class BookmarkServerService : protected net::URLFetcherDelegate,
scoped_refptr<net::URLRequestContextGetter> request_context_getter_;
// The fetcher used to query the server.
scoped_ptr<net::URLFetcher> url_fetcher_;
- // A map from stars.id to bookmark nodes. With no null entries.
- std::map<std::string, const BookmarkNode*> starsid_to_bookmark_;
DISALLOW_COPY_AND_ASSIGN(BookmarkServerService);
};