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

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

Issue 539173004: Bring up of the enhanced bookmarks cluster service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@intermediary2
Patch Set: Nits: consts. Created 6 years, 2 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_SEARCH_SERVICE_H_ 5 #ifndef COMPONENTS_ENHANCED_BOOKMARKS_BOOKMARK_SERVER_SEARCH_SERVICE_H_
6 #define COMPONENTS_ENHANCED_BOOKMARKS_BOOKMARK_SERVER_SEARCH_SERVICE_H_ 6 #define COMPONENTS_ENHANCED_BOOKMARKS_BOOKMARK_SERVER_SEARCH_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "components/bookmarks/browser/base_bookmark_model_observer.h"
12 #include "components/enhanced_bookmarks/bookmark_server_service.h" 11 #include "components/enhanced_bookmarks/bookmark_server_service.h"
13 #include "net/url_request/url_fetcher.h" 12 #include "net/url_request/url_fetcher.h"
14 13
15 namespace enhanced_bookmarks { 14 namespace enhanced_bookmarks {
16 15
17 class EnhancedBookmarkModel; 16 class EnhancedBookmarkModel;
18 17
19 // Sends requests to the bookmark server to search for bookmarks relevant to a 18 // Sends requests to the bookmark server to search for bookmarks relevant to a
20 // given query. Will handle one outgoing request at a time. 19 // given query. Will handle one outgoing request at a time.
21 class BookmarkServerSearchService : public BookmarkServerService { 20 class BookmarkServerSearchService : public BookmarkServerService {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 57
59 private: 58 private:
60 // The search data, a map from query to a vector of stars.id. 59 // The search data, a map from query to a vector of stars.id.
61 std::map<std::string, std::vector<std::string> > searches_; 60 std::map<std::string, std::vector<std::string> > searches_;
62 std::string current_query_; 61 std::string current_query_;
63 DISALLOW_COPY_AND_ASSIGN(BookmarkServerSearchService); 62 DISALLOW_COPY_AND_ASSIGN(BookmarkServerSearchService);
64 }; 63 };
65 } // namespace enhanced_bookmarks 64 } // namespace enhanced_bookmarks
66 65
67 #endif // COMPONENTS_ENHANCED_BOOKMARKS_BOOKMARK_SERVER_SEARCH_SERVICE_H_ 66 #endif // COMPONENTS_ENHANCED_BOOKMARKS_BOOKMARK_SERVER_SEARCH_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698