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

Unified Diff: components/suggestions/suggestions_service.h

Issue 410673002: [Suggestions] Moving suggestions code to a new component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix deps Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/suggestions/suggestions_pref_names.cc ('k') | components/suggestions/suggestions_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/suggestions/suggestions_service.h
diff --git a/chrome/browser/search/suggestions/suggestions_service.h b/components/suggestions/suggestions_service.h
similarity index 91%
rename from chrome/browser/search/suggestions/suggestions_service.h
rename to components/suggestions/suggestions_service.h
index 635ae5d1cbac5a625f830f86398b4527564593cf..ee1ed92ca6afa4f288d455684c805d8aef3cb87b 100644
--- a/chrome/browser/search/suggestions/suggestions_service.h
+++ b/components/suggestions/suggestions_service.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_SEARCH_SUGGESTIONS_SUGGESTIONS_SERVICE_H_
-#define CHROME_BROWSER_SEARCH_SUGGESTIONS_SUGGESTIONS_SERVICE_H_
+#ifndef COMPONENTS_SUGGESTIONS_SUGGESTIONS_SERVICE_H_
+#define COMPONENTS_SUGGESTIONS_SUGGESTIONS_SERVICE_H_
#include <string>
#include <vector>
@@ -14,10 +14,11 @@
#include "base/gtest_prod_util.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
+#include "base/threading/thread_checker.h"
#include "base/time/time.h"
-#include "chrome/browser/search/suggestions/image_manager.h"
-#include "chrome/browser/search/suggestions/proto/suggestions.pb.h"
#include "components/keyed_service/core/keyed_service.h"
+#include "components/suggestions/image_manager.h"
+#include "components/suggestions/proto/suggestions.pb.h"
#include "net/url_request/url_fetcher_delegate.h"
#include "ui/gfx/image/image_skia.h"
#include "url/gurl.h"
@@ -49,10 +50,11 @@ class SuggestionsService : public KeyedService, public net::URLFetcherDelegate {
public:
typedef base::Callback<void(const SuggestionsProfile&)> ResponseCallback;
- SuggestionsService(net::URLRequestContextGetter* url_request_context,
- scoped_ptr<SuggestionsStore> suggestions_store,
- scoped_ptr<ImageManager> thumbnail_manager,
- scoped_ptr<BlacklistStore> blacklist_store);
+ SuggestionsService(
+ net::URLRequestContextGetter* url_request_context,
+ scoped_ptr<SuggestionsStore> suggestions_store,
+ scoped_ptr<ImageManager> thumbnail_manager,
+ scoped_ptr<BlacklistStore> blacklist_store);
virtual ~SuggestionsService();
// Whether this service is enabled.
@@ -135,6 +137,8 @@ class SuggestionsService : public KeyedService, public net::URLFetcherDelegate {
int blacklist_delay() const { return blacklist_delay_sec_; }
void set_blacklist_delay(int delay) { blacklist_delay_sec_ = delay; }
+ base::ThreadChecker thread_checker_;
+
// The cache for the suggestions.
scoped_ptr<SuggestionsStore> suggestions_store_;
@@ -182,4 +186,4 @@ class SuggestionsService : public KeyedService, public net::URLFetcherDelegate {
} // namespace suggestions
-#endif // CHROME_BROWSER_SEARCH_SUGGESTIONS_SUGGESTIONS_SERVICE_H_
+#endif // COMPONENTS_SUGGESTIONS_SUGGESTIONS_SERVICE_H_
« no previous file with comments | « components/suggestions/suggestions_pref_names.cc ('k') | components/suggestions/suggestions_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698