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

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

Issue 19872007: Use process per site instance for "Instant". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/search/instant_service.h ('k') | chrome/browser/search/search.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_SEARCH_SEARCH_H_ 5 #ifndef CHROME_BROWSER_SEARCH_SEARCH_H_
6 #define CHROME_BROWSER_SEARCH_SEARCH_H_ 6 #define CHROME_BROWSER_SEARCH_SEARCH_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // Returns search terms if this WebContents is a search results page. It looks 68 // Returns search terms if this WebContents is a search results page. It looks
69 // in the visible NavigationEntry first, to see if search terms have already 69 // in the visible NavigationEntry first, to see if search terms have already
70 // been extracted. Failing that, it tries to extract search terms from the URL. 70 // been extracted. Failing that, it tries to extract search terms from the URL.
71 // Returns a blank string if search terms were not found, or if search terms 71 // Returns a blank string if search terms were not found, or if search terms
72 // extraction is disabled for this WebContents or profile. 72 // extraction is disabled for this WebContents or profile.
73 string16 GetSearchTerms(const content::WebContents* contents); 73 string16 GetSearchTerms(const content::WebContents* contents);
74 74
75 // Returns true if |url| should be rendered in the Instant renderer process. 75 // Returns true if |url| should be rendered in the Instant renderer process.
76 bool ShouldAssignURLToInstantRenderer(const GURL& url, Profile* profile); 76 bool ShouldAssignURLToInstantRenderer(const GURL& url, Profile* profile);
77 77
78 // Returns true if the Instant |url| should use process per site.
79 bool ShouldUseProcessPerSiteForInstantURL(const GURL& url, Profile* profile);
80
78 // Returns true if the visible entry of |contents| is a New Tab Page rendered 81 // Returns true if the visible entry of |contents| is a New Tab Page rendered
79 // by Instant. A page that matches the search or Instant URL of the default 82 // by Instant. A page that matches the search or Instant URL of the default
80 // search provider but does not have any search terms is considered an Instant 83 // search provider but does not have any search terms is considered an Instant
81 // New Tab Page. 84 // New Tab Page.
82 bool IsInstantNTP(const content::WebContents* contents); 85 bool IsInstantNTP(const content::WebContents* contents);
83 86
84 // Same as IsInstantNTP but uses |nav_entry| to determine the URL for the page 87 // Same as IsInstantNTP but uses |nav_entry| to determine the URL for the page
85 // instead of using the visible entry. 88 // instead of using the visible entry.
86 bool NavEntryIsInstantNTP(const content::WebContents* contents, 89 bool NavEntryIsInstantNTP(const content::WebContents* contents,
87 const content::NavigationEntry* nav_entry); 90 const content::NavigationEntry* nav_entry);
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 bool default_value, 191 bool default_value,
189 const FieldTrialFlags& flags); 192 const FieldTrialFlags& flags);
190 193
191 // Let tests reset the gate that prevents metrics from being sent more than 194 // Let tests reset the gate that prevents metrics from being sent more than
192 // once. 195 // once.
193 void ResetInstantExtendedOptInStateGateForTest(); 196 void ResetInstantExtendedOptInStateGateForTest();
194 197
195 } // namespace chrome 198 } // namespace chrome
196 199
197 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ 200 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_
OLDNEW
« no previous file with comments | « chrome/browser/search/instant_service.h ('k') | chrome/browser/search/search.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698