| OLD | NEW |
| 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_UI_SEARCH_SEARCH_IPC_ROUTER_H_ | 5 #ifndef CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_H_ |
| 6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_H_ | 6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 Delegate* delegate_; | 230 Delegate* delegate_; |
| 231 std::unique_ptr<Policy> policy_; | 231 std::unique_ptr<Policy> policy_; |
| 232 | 232 |
| 233 // Holds the number of main frame commits executed in this tab. Used by the | 233 // Holds the number of main frame commits executed in this tab. Used by the |
| 234 // SearchIPCRouter to ensure that delayed IPC replies are ignored. | 234 // SearchIPCRouter to ensure that delayed IPC replies are ignored. |
| 235 int commit_counter_; | 235 int commit_counter_; |
| 236 | 236 |
| 237 // Set to true, when the tab corresponding to |this| instance is active. | 237 // Set to true, when the tab corresponding to |this| instance is active. |
| 238 bool is_active_tab_; | 238 bool is_active_tab_; |
| 239 | 239 |
| 240 content::WebContentsFrameBindingSet<chrome::mojom::Instant> bindings_; | 240 // Binding for the connected main frame. We only allow one frame to connect at |
| 241 // the moment, but this could be extended to a map of connected frames, if |
| 242 // desired. |
| 243 mojo::AssociatedBinding<chrome::mojom::Instant> binding_; |
| 241 | 244 |
| 242 std::unique_ptr<SearchBoxClientFactory> search_box_client_factory_; | 245 std::unique_ptr<SearchBoxClientFactory> search_box_client_factory_; |
| 243 | 246 |
| 244 DISALLOW_COPY_AND_ASSIGN(SearchIPCRouter); | 247 DISALLOW_COPY_AND_ASSIGN(SearchIPCRouter); |
| 245 }; | 248 }; |
| 246 | 249 |
| 247 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_H_ | 250 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_H_ |
| OLD | NEW |