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

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

Issue 17114002: Field trial removing tiles from NTP if URL is already open - for 1993 clients (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing broken diffs Created 7 years, 5 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
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_INSTANT_PAGE_H_ 5 #ifndef CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_
6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ 6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 content::PageTransition transition, 188 content::PageTransition transition,
189 WindowOpenDisposition disposition, 189 WindowOpenDisposition disposition,
190 bool is_search_type); 190 bool is_search_type);
191 void OnCountMouseover(int page_id); 191 void OnCountMouseover(int page_id);
192 void OnDeleteMostVisitedItem(int page_id, const GURL& url); 192 void OnDeleteMostVisitedItem(int page_id, const GURL& url);
193 void OnUndoMostVisitedDeletion(int page_id, const GURL& url); 193 void OnUndoMostVisitedDeletion(int page_id, const GURL& url);
194 void OnUndoAllMostVisitedDeletions(int page_id); 194 void OnUndoAllMostVisitedDeletions(int page_id);
195 195
196 void ClearContents(); 196 void ClearContents();
197 197
198 // Removes recommended URLs if a matching URL is already open in the Browser,
199 // if the Most Visited Tile Placement experiment is enabled, and the client is
200 // in the experiment group.
201 void MaybeRemoveMostVisitedItems(std::vector<InstantMostVisitedItem>* items);
202
198 // Returns the InstantService for the |profile_|. 203 // Returns the InstantService for the |profile_|.
199 InstantService* GetInstantService(); 204 InstantService* GetInstantService();
200 205
201 Profile* profile_; 206 Profile* profile_;
202 Delegate* const delegate_; 207 Delegate* const delegate_;
203 scoped_ptr<InstantIPCSender> ipc_sender_; 208 scoped_ptr<InstantIPCSender> ipc_sender_;
204 const std::string instant_url_; 209 const std::string instant_url_;
205 const bool is_incognito_; 210 const bool is_incognito_;
206 211
207 DISALLOW_COPY_AND_ASSIGN(InstantPage); 212 DISALLOW_COPY_AND_ASSIGN(InstantPage);
208 }; 213 };
209 214
210 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ 215 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698