Chromium Code Reviews| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 70 virtual void OnLogMostVisitedNavigation(int position, | 70 virtual void OnLogMostVisitedNavigation(int position, |
| 71 const base::string16& provider) = 0; | 71 const base::string16& provider) = 0; |
| 72 | 72 |
| 73 // Called when the page wants to paste the |text| (or the clipboard contents | 73 // Called when the page wants to paste the |text| (or the clipboard contents |
| 74 // if the |text| is empty) into the omnibox. | 74 // if the |text| is empty) into the omnibox. |
| 75 virtual void PasteIntoOmnibox(const base::string16& text) = 0; | 75 virtual void PasteIntoOmnibox(const base::string16& text) = 0; |
| 76 | 76 |
| 77 // Called when the SearchBox wants to verify the signed-in Chrome identity | 77 // Called when the SearchBox wants to verify the signed-in Chrome identity |
| 78 // against the provided |identity|. Will make a round-trip to the browser | 78 // against the provided |identity|. Will make a round-trip to the browser |
| 79 // and eventually return the result through SendChromeIdentityCheckResult. | 79 // and eventually return the result through SendChromeIdentityCheckResult. |
| 80 // Calls SendChromeIdentityCheckResult with true if both the identity | |
| 81 // matches and the user syncs his history. | |
|
Jered
2014/06/17 22:38:18
his -> their
beaudoin
2014/06/18 13:49:04
Done.
| |
| 82 // TODO(beaudoin): Change this function name and related APIs now that it's | |
| 83 // checking both the identity and the user's sync state. | |
| 80 virtual void OnChromeIdentityCheck(const base::string16& identity) = 0; | 84 virtual void OnChromeIdentityCheck(const base::string16& identity) = 0; |
| 81 }; | 85 }; |
| 82 | 86 |
| 83 // An interface to be implemented by consumers of SearchIPCRouter objects to | 87 // An interface to be implemented by consumers of SearchIPCRouter objects to |
| 84 // decide whether to process the message received from the page, and vice | 88 // decide whether to process the message received from the page, and vice |
| 85 // versa (decide whether to send messages to the page). | 89 // versa (decide whether to send messages to the page). |
| 86 class Policy { | 90 class Policy { |
| 87 public: | 91 public: |
| 88 virtual ~Policy() {} | 92 virtual ~Policy() {} |
| 89 | 93 |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 224 // SearchIPCRouter to ensure that delayed IPC replies are ignored. | 228 // SearchIPCRouter to ensure that delayed IPC replies are ignored. |
| 225 int commit_counter_; | 229 int commit_counter_; |
| 226 | 230 |
| 227 // Set to true, when the tab corresponding to |this| instance is active. | 231 // Set to true, when the tab corresponding to |this| instance is active. |
| 228 bool is_active_tab_; | 232 bool is_active_tab_; |
| 229 | 233 |
| 230 DISALLOW_COPY_AND_ASSIGN(SearchIPCRouter); | 234 DISALLOW_COPY_AND_ASSIGN(SearchIPCRouter); |
| 231 }; | 235 }; |
| 232 | 236 |
| 233 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_H_ | 237 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_H_ |
| OLD | NEW |