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

Side by Side Diff: chrome/browser/prerender/prerender_manager.h

Issue 10978016: Remove two functions on WebContentsDelegate which didn't belong in content. They were only called f… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: nits and fixed prerender browser tests Created 8 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_PRERENDER_PRERENDER_MANAGER_H_ 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 static const char* GetModeString(); 175 static const char* GetModeString();
176 static bool IsPrerenderingPossible(); 176 static bool IsPrerenderingPossible();
177 static bool ActuallyPrerendering(); 177 static bool ActuallyPrerendering();
178 static bool IsControlGroup(); 178 static bool IsControlGroup();
179 static bool IsNoUseGroup(); 179 static bool IsNoUseGroup();
180 180
181 // Query the list of current prerender pages to see if the given web contents 181 // Query the list of current prerender pages to see if the given web contents
182 // is prerendering a page. 182 // is prerendering a page.
183 bool IsWebContentsPrerendering(content::WebContents* web_contents) const; 183 bool IsWebContentsPrerendering(content::WebContents* web_contents) const;
184 184
185 // Returns the PrerenderContents object for the given web_contents if it's
186 // used for an active prerender page, otherwise returns NULL.
187 PrerenderContents* GetPrerenderContents(
188 content::WebContents* web_contents) const;
189
185 // Maintaining and querying the set of WebContents belonging to this 190 // Maintaining and querying the set of WebContents belonging to this
186 // PrerenderManager that are currently showing prerendered pages. 191 // PrerenderManager that are currently showing prerendered pages.
187 void MarkWebContentsAsPrerendered(content::WebContents* web_contents); 192 void MarkWebContentsAsPrerendered(content::WebContents* web_contents);
188 void MarkWebContentsAsWouldBePrerendered(content::WebContents* web_contents); 193 void MarkWebContentsAsWouldBePrerendered(content::WebContents* web_contents);
189 void MarkWebContentsAsNotPrerendered(content::WebContents* web_contents); 194 void MarkWebContentsAsNotPrerendered(content::WebContents* web_contents);
190 bool IsWebContentsPrerendered(content::WebContents* web_contents) const; 195 bool IsWebContentsPrerendered(content::WebContents* web_contents) const;
191 bool WouldWebContentsBePrerendered(content::WebContents* web_contents) const; 196 bool WouldWebContentsBePrerendered(content::WebContents* web_contents) const;
192 197
193 // Checks whether |url| has been recently navigated to. 198 // Checks whether |url| has been recently navigated to.
194 bool HasRecentlyBeenNavigatedTo(const GURL& url); 199 bool HasRecentlyBeenNavigatedTo(const GURL& url);
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 530
526 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); 531 DISALLOW_COPY_AND_ASSIGN(PrerenderManager);
527 }; 532 };
528 533
529 PrerenderManager* FindPrerenderManagerUsingRenderProcessId( 534 PrerenderManager* FindPrerenderManagerUsingRenderProcessId(
530 int render_process_id); 535 int render_process_id);
531 536
532 } // namespace prerender 537 } // namespace prerender
533 538
534 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ 539 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698