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

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

Issue 100133002: Create prerender event histograms by origin & experiment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years 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 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 653
654 void CookieChanged(ChromeCookieDetails* details); 654 void CookieChanged(ChromeCookieDetails* details);
655 void CookieChangedAnyCookiesLeftLookupResult(const std::string& domain_key, 655 void CookieChangedAnyCookiesLeftLookupResult(const std::string& domain_key,
656 bool cookies_exist); 656 bool cookies_exist);
657 void LoggedInPredictorDataReceived(scoped_ptr<LoggedInStateMap> new_map); 657 void LoggedInPredictorDataReceived(scoped_ptr<LoggedInStateMap> new_map);
658 658
659 void ProcessMergeResult(PrerenderData* prerender_data, 659 void ProcessMergeResult(PrerenderData* prerender_data,
660 bool timed_out, 660 bool timed_out,
661 content::SessionStorageNamespace::MergeResult result); 661 content::SessionStorageNamespace::MergeResult result);
662 662
663 void RecordEvent(PrerenderEvent event) const; 663 void RecordEvent(PrerenderContents* contents, PrerenderEvent event) const;
664 664
665 // Swaps a prerender for |url| into the tab, replacing |web_contents|. 665 // Swaps a prerender for |url| into the tab, replacing |web_contents|.
666 // Returns the new WebContents that was swapped in, or NULL if a swap-in 666 // Returns the new WebContents that was swapped in, or NULL if a swap-in
667 // was not possible. Optionally, a |swap_candidate| can be specified. 667 // was not possible. Optionally, a |swap_candidate| can be specified.
668 // Must be supplied if a merge has completed and we retry swap. 668 // Must be supplied if a merge has completed and we retry swap.
669 // That's because we must skip the check whether a PrerenderData object that 669 // That's because we must skip the check whether a PrerenderData object that
670 // could be swapped in is used for a pending merge, if the PrerenderData 670 // could be swapped in is used for a pending merge, if the PrerenderData
671 // object being considered is the one for which the merge has just completed 671 // object being considered is the one for which the merge has just completed
672 // and which is intended to be swapped in. 672 // and which is intended to be swapped in.
673 content::WebContents* SwapInternal(const GURL& url, 673 content::WebContents* SwapInternal(const GURL& url,
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 759
760 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); 760 DISALLOW_COPY_AND_ASSIGN(PrerenderManager);
761 }; 761 };
762 762
763 PrerenderManager* FindPrerenderManagerUsingRenderProcessId( 763 PrerenderManager* FindPrerenderManagerUsingRenderProcessId(
764 int render_process_id); 764 int render_process_id);
765 765
766 } // namespace prerender 766 } // namespace prerender
767 767
768 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ 768 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_histograms.cc ('k') | chrome/browser/prerender/prerender_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698