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

Side by Side Diff: chrome/browser/search/instant_service_observer.h

Issue 930853005: [Instant] Default Search Provider change redirects to local NTP in some cases (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: includes Created 5 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_SEARCH_INSTANT_SERVICE_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_SEARCH_INSTANT_SERVICE_OBSERVER_H_
6 #define CHROME_BROWSER_SEARCH_INSTANT_SERVICE_OBSERVER_H_ 6 #define CHROME_BROWSER_SEARCH_INSTANT_SERVICE_OBSERVER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 struct InstantMostVisitedItem; 10 struct InstantMostVisitedItem;
11 struct ThemeBackgroundInfo; 11 struct ThemeBackgroundInfo;
12 12
13 // InstantServiceObserver defines the observer interface for InstantService. 13 // InstantServiceObserver defines the observer interface for InstantService.
14 class InstantServiceObserver { 14 class InstantServiceObserver {
15 public: 15 public:
16 // Indicates that the user's custom theme has changed in some way. 16 // Indicates that the user's custom theme has changed in some way.
17 virtual void ThemeInfoChanged(const ThemeBackgroundInfo&); 17 virtual void ThemeInfoChanged(const ThemeBackgroundInfo&);
18 18
19 // Indicates that the most visited items has changed. 19 // Indicates that the most visited items has changed.
20 virtual void MostVisitedItemsChanged( 20 virtual void MostVisitedItemsChanged(
21 const std::vector<InstantMostVisitedItem>&); 21 const std::vector<InstantMostVisitedItem>&);
22 22
23 // Indicates that the default search provider changed. 23 // Indicates that the default search provider changed. Parameter indicates
24 virtual void DefaultSearchProviderChanged(); 24 // whether the Google base URL changed (such as when the user migrates from
25 // one google.<TLD> to another TLD).
26 virtual void DefaultSearchProviderChanged(
27 bool google_base_url_domain_changed);
25 28
26 // Indicates that the omnibox start margin has changed. 29 // Indicates that the omnibox start margin has changed.
27 virtual void OmniboxStartMarginChanged(int omnibox_start_margin); 30 virtual void OmniboxStartMarginChanged(int omnibox_start_margin);
28 31
29 protected: 32 protected:
30 virtual ~InstantServiceObserver() {} 33 virtual ~InstantServiceObserver() {}
31 }; 34 };
32 35
33 #endif // CHROME_BROWSER_SEARCH_INSTANT_SERVICE_OBSERVER_H_ 36 #endif // CHROME_BROWSER_SEARCH_INSTANT_SERVICE_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/search/instant_service.cc ('k') | chrome/browser/search/instant_service_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698