| 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 "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "chrome/browser/search/instant_service_observer.h" | 10 #include "chrome/browser/search/instant_service_observer.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 // SearchModelObserver: | 47 // SearchModelObserver: |
| 48 void ModelChanged(const SearchModel::State& old_state, | 48 void ModelChanged(const SearchModel::State& old_state, |
| 49 const SearchModel::State& new_state) override; | 49 const SearchModel::State& new_state) override; |
| 50 | 50 |
| 51 // InstantServiceObserver: | 51 // InstantServiceObserver: |
| 52 void DefaultSearchProviderChanged( | 52 void DefaultSearchProviderChanged( |
| 53 bool google_base_url_domain_changed) override; | 53 bool google_base_url_domain_changed) override; |
| 54 | 54 |
| 55 // Replaces the contents at tab |index| with |new_contents| and deletes the | |
| 56 // existing contents. | |
| 57 void ReplaceWebContentsAt(int index, | |
| 58 std::unique_ptr<content::WebContents> new_contents); | |
| 59 | |
| 60 Browser* const browser_; | 55 Browser* const browser_; |
| 61 | 56 |
| 62 InstantController instant_; | 57 InstantController instant_; |
| 63 | 58 |
| 64 DISALLOW_COPY_AND_ASSIGN(BrowserInstantController); | 59 DISALLOW_COPY_AND_ASSIGN(BrowserInstantController); |
| 65 }; | 60 }; |
| 66 | 61 |
| 67 #endif // CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_ | 62 #endif // CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_ |
| OLD | NEW |