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

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

Issue 178253008: Redoing Issue 36073011: Allowing file:/// in Instant Extended's Most Visited links. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unused consts. Created 6 years, 9 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 | Annotate | Revision Log
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 <vector> 8 #include <vector>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // Called when the SearchBox wants to undo a Most Visited deletion. 56 // Called when the SearchBox wants to undo a Most Visited deletion.
57 virtual void OnUndoMostVisitedDeletion(const GURL& url) = 0; 57 virtual void OnUndoMostVisitedDeletion(const GURL& url) = 0;
58 58
59 // Called when the SearchBox wants to undo all Most Visited deletions. 59 // Called when the SearchBox wants to undo all Most Visited deletions.
60 virtual void OnUndoAllMostVisitedDeletions() = 0; 60 virtual void OnUndoAllMostVisitedDeletions() = 0;
61 61
62 // Called to signal that an event has occurred on the New Tab Page. 62 // Called to signal that an event has occurred on the New Tab Page.
63 virtual void OnLogEvent(NTPLoggingEventType event) = 0; 63 virtual void OnLogEvent(NTPLoggingEventType event) = 0;
64 64
65 // Called to log an impression from a given provider on the New Tab Page. 65 // Called to log an impression from a given provider on the New Tab Page.
66 virtual void OnLogImpression(int position, 66 virtual void OnLogMostVisitedImpression(int position,
67 const base::string16& provider) = 0; 67 const base::string16& provider) = 0;
68
69 // Called to log a navigation from a given provider on the New Tab Page.
70 virtual void OnLogMostVisitedNavigation(int position,
71 const base::string16& provider) = 0;
68 72
69 // 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
70 // if the |text| is empty) into the omnibox. 74 // if the |text| is empty) into the omnibox.
71 virtual void PasteIntoOmnibox(const base::string16& text) = 0; 75 virtual void PasteIntoOmnibox(const base::string16& text) = 0;
72 76
73 // 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
74 // 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
75 // and eventually return the result through SendChromeIdentityCheckResult. 79 // and eventually return the result through SendChromeIdentityCheckResult.
76 virtual void OnChromeIdentityCheck(const base::string16& identity) = 0; 80 virtual void OnChromeIdentityCheck(const base::string16& identity) = 0;
77 }; 81 };
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 bool supports_voice_search) const; 184 bool supports_voice_search) const;
181 void OnFocusOmnibox(int page_id, OmniboxFocusState state) const; 185 void OnFocusOmnibox(int page_id, OmniboxFocusState state) const;
182 void OnSearchBoxNavigate(int page_id, 186 void OnSearchBoxNavigate(int page_id,
183 const GURL& url, 187 const GURL& url,
184 WindowOpenDisposition disposition, 188 WindowOpenDisposition disposition,
185 bool is_most_visited_item_url) const; 189 bool is_most_visited_item_url) const;
186 void OnDeleteMostVisitedItem(int page_id, const GURL& url) const; 190 void OnDeleteMostVisitedItem(int page_id, const GURL& url) const;
187 void OnUndoMostVisitedDeletion(int page_id, const GURL& url) const; 191 void OnUndoMostVisitedDeletion(int page_id, const GURL& url) const;
188 void OnUndoAllMostVisitedDeletions(int page_id) const; 192 void OnUndoAllMostVisitedDeletions(int page_id) const;
189 void OnLogEvent(int page_id, NTPLoggingEventType event) const; 193 void OnLogEvent(int page_id, NTPLoggingEventType event) const;
190 void OnLogImpression(int page_id, 194 void OnLogMostVisitedImpression(int page_id,
191 int position, 195 int position,
192 const base::string16& provider) const; 196 const base::string16& provider) const;
197 void OnLogMostVisitedNavigation(int page_id,
198 int position,
199 const base::string16& provider) const;
193 void OnPasteAndOpenDropDown(int page_id, const base::string16& text) const; 200 void OnPasteAndOpenDropDown(int page_id, const base::string16& text) const;
194 void OnChromeIdentityCheck(int page_id, const base::string16& identity) const; 201 void OnChromeIdentityCheck(int page_id, const base::string16& identity) const;
195 202
196 // Used by unit tests to set a fake delegate. 203 // Used by unit tests to set a fake delegate.
197 void set_delegate(Delegate* delegate); 204 void set_delegate(Delegate* delegate);
198 205
199 // Used by unit tests. 206 // Used by unit tests.
200 void set_policy(scoped_ptr<Policy> policy); 207 void set_policy(scoped_ptr<Policy> policy);
201 208
202 // Used by unit tests. 209 // Used by unit tests.
203 Policy* policy() const { return policy_.get(); } 210 Policy* policy() const { return policy_.get(); }
204 211
205 Delegate* delegate_; 212 Delegate* delegate_;
206 scoped_ptr<Policy> policy_; 213 scoped_ptr<Policy> policy_;
207 214
208 // Set to true, when the tab corresponding to |this| instance is active. 215 // Set to true, when the tab corresponding to |this| instance is active.
209 bool is_active_tab_; 216 bool is_active_tab_;
210 217
211 DISALLOW_COPY_AND_ASSIGN(SearchIPCRouter); 218 DISALLOW_COPY_AND_ASSIGN(SearchIPCRouter);
212 }; 219 };
213 220
214 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_H_ 221 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698