| 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_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 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 bool ProcessResponse(const std::string& response, | 42 bool ProcessResponse(const std::string& response, |
| 43 bool* should_notify) override; | 43 bool* should_notify) override; |
| 44 | 44 |
| 45 void CleanAfterFailure() override; | 45 void CleanAfterFailure() override; |
| 46 | 46 |
| 47 // EnhancedBookmarkModelObserver methods. | 47 // EnhancedBookmarkModelObserver methods. |
| 48 void EnhancedBookmarkModelLoaded() override{}; | 48 void EnhancedBookmarkModelLoaded() override{}; |
| 49 void EnhancedBookmarkAdded(const BookmarkNode* node) override; | 49 void EnhancedBookmarkAdded(const BookmarkNode* node) override; |
| 50 void EnhancedBookmarkRemoved(const BookmarkNode* node) override{}; | 50 void EnhancedBookmarkRemoved(const BookmarkNode* node) override{}; |
| 51 void EnhancedBookmarkNodeChanged(const BookmarkNode* node) override{}; |
| 51 void EnhancedBookmarkAllUserNodesRemoved() override; | 52 void EnhancedBookmarkAllUserNodesRemoved() override; |
| 52 void EnhancedBookmarkRemoteIdChanged(const BookmarkNode* node, | 53 void EnhancedBookmarkRemoteIdChanged(const BookmarkNode* node, |
| 53 const std::string& old_remote_id, | 54 const std::string& old_remote_id, |
| 54 const std::string& remote_id) override; | 55 const std::string& remote_id) override; |
| 55 | 56 |
| 56 private: | 57 private: |
| 57 // The search data, a map from query to a vector of stars.id. | 58 // The search data, a map from query to a vector of stars.id. |
| 58 std::map<std::string, std::vector<std::string> > searches_; | 59 std::map<std::string, std::vector<std::string> > searches_; |
| 59 std::string current_query_; | 60 std::string current_query_; |
| 60 DISALLOW_COPY_AND_ASSIGN(BookmarkServerSearchService); | 61 DISALLOW_COPY_AND_ASSIGN(BookmarkServerSearchService); |
| 61 }; | 62 }; |
| 62 } // namespace enhanced_bookmarks | 63 } // namespace enhanced_bookmarks |
| 63 | 64 |
| 64 #endif // COMPONENTS_ENHANCED_BOOKMARKS_BOOKMARK_SERVER_SEARCH_SERVICE_H_ | 65 #endif // COMPONENTS_ENHANCED_BOOKMARKS_BOOKMARK_SERVER_SEARCH_SERVICE_H_ |
| OLD | NEW |