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

Side by Side Diff: chrome/browser/ui/search/search_ipc_router.h

Issue 2688453002: NTP: simplify mojo connection setup (Closed)
Patch Set: Merge Created 3 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
« no previous file with comments | « no previous file | chrome/browser/ui/search/search_ipc_router.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/search/search_ipc_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698