OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_UI_BROWSER_INSTANT_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 // Invoked by |browser_| when the active tab is about to be deactivated. | 47 // Invoked by |browser_| when the active tab is about to be deactivated. |
48 void TabDeactivated(content::WebContents* contents); | 48 void TabDeactivated(content::WebContents* contents); |
49 | 49 |
50 private: | 50 private: |
51 // SearchModelObserver: | 51 // SearchModelObserver: |
52 void ModelChanged(const SearchModel::State& old_state, | 52 void ModelChanged(const SearchModel::State& old_state, |
53 const SearchModel::State& new_state) override; | 53 const SearchModel::State& new_state) override; |
54 | 54 |
55 // InstantServiceObserver: | 55 // InstantServiceObserver: |
56 void DefaultSearchProviderChanged() override; | 56 void DefaultSearchProviderChanged( |
| 57 bool google_base_url_domain_changed) override; |
57 | 58 |
58 // Replaces the contents at tab |index| with |new_contents| and deletes the | 59 // Replaces the contents at tab |index| with |new_contents| and deletes the |
59 // existing contents. | 60 // existing contents. |
60 void ReplaceWebContentsAt(int index, | 61 void ReplaceWebContentsAt(int index, |
61 scoped_ptr<content::WebContents> new_contents); | 62 scoped_ptr<content::WebContents> new_contents); |
62 | 63 |
63 Browser* const browser_; | 64 Browser* const browser_; |
64 | 65 |
65 InstantController instant_; | 66 InstantController instant_; |
66 | 67 |
67 DISALLOW_COPY_AND_ASSIGN(BrowserInstantController); | 68 DISALLOW_COPY_AND_ASSIGN(BrowserInstantController); |
68 }; | 69 }; |
69 | 70 |
70 #endif // CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_ | 71 #endif // CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_ |
OLD | NEW |