| Index: chrome/browser/ui/webui/ntp/suggestions_combiner.h
|
| diff --git a/chrome/browser/ui/webui/ntp/suggestions_combiner.h b/chrome/browser/ui/webui/ntp/suggestions_combiner.h
|
| index 593232112fcc735f22cd53a6a16ff3b969c17d5d..c600e94428d9ad53307d222276053d5947849f35 100644
|
| --- a/chrome/browser/ui/webui/ntp/suggestions_combiner.h
|
| +++ b/chrome/browser/ui/webui/ntp/suggestions_combiner.h
|
| @@ -12,11 +12,13 @@
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/memory/scoped_vector.h"
|
|
|
| +class GURL;
|
| class SuggestionsHandler;
|
| class SuggestionsSource;
|
| class Profile;
|
|
|
| namespace base {
|
| + class DictionaryValue;
|
| class ListValue;
|
| }
|
|
|
| @@ -64,13 +66,22 @@ class SuggestionsCombiner {
|
| private:
|
| friend class SuggestionsCombinerTest;
|
|
|
| - explicit SuggestionsCombiner(SuggestionsCombiner::Delegate* delegate);
|
| + explicit SuggestionsCombiner(SuggestionsCombiner::Delegate* delegate,
|
| + Profile* profile);
|
|
|
| // Fill the page values from the suggestion sources so they can be sent to
|
| // the JavaScript side. This should only be called when all the suggestion
|
| // sources have items ready.
|
| void FillPageValues();
|
|
|
| + // Add extra information to page values that should be common across all
|
| + // suggestion sources.
|
| + void AddExtraPageValueInformation(base::DictionaryValue* page_value);
|
| +
|
| + // Checks if a URL is already open for the current profile. URLs open in an
|
| + // incognito window are not reported.
|
| + bool IsURLAlreadyOpen(const GURL& url);
|
| +
|
| typedef ScopedVector<SuggestionsSource> SuggestionsSources;
|
|
|
| // List of all the suggestions sources that will be combined to generate a
|
| @@ -95,6 +106,8 @@ class SuggestionsCombiner {
|
| // results).
|
| bool debug_enabled_;
|
|
|
| + Profile* profile_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(SuggestionsCombiner);
|
| };
|
|
|
|
|