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

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

Issue 257153003: We have a problem in the process on destroying WebContentsImpl because (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Rebased onto origin/master again, resolved conflicts Created 6 years, 7 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 (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 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 content::PageTransition transition_type, 470 content::PageTransition transition_type,
471 content::RenderViewHost* render_view_host) OVERRIDE; 471 content::RenderViewHost* render_view_host) OVERRIDE;
472 virtual void DidFailProvisionalLoad( 472 virtual void DidFailProvisionalLoad(
473 int64 frame_id, 473 int64 frame_id,
474 const base::string16& frame_unique_name, 474 const base::string16& frame_unique_name,
475 bool is_main_frame, 475 bool is_main_frame,
476 const GURL& validated_url, 476 const GURL& validated_url,
477 int error_code, 477 int error_code,
478 const base::string16& error_description, 478 const base::string16& error_description,
479 content::RenderViewHost* render_view_host) OVERRIDE; 479 content::RenderViewHost* render_view_host) OVERRIDE;
480 virtual void WebContentsDestroyed(content::WebContents* web_contents) 480 virtual void WebContentsDestroyed() OVERRIDE;
481 OVERRIDE;
482 481
483 private: 482 private:
484 void RecordEvent(PrerenderEvent event) const; 483 void RecordEvent(PrerenderEvent event) const;
485 484
486 void OnMergeCompleted(content::SessionStorageNamespace::MergeResult result); 485 void OnMergeCompleted(content::SessionStorageNamespace::MergeResult result);
487 void OnMergeTimeout(); 486 void OnMergeTimeout();
488 487
489 // Prerender parameters. 488 // Prerender parameters.
490 PrerenderManager* manager_; 489 PrerenderManager* manager_;
491 PrerenderData* prerender_data_; 490 PrerenderData* prerender_data_;
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 718
720 // The value of profile_network_bytes_ that was last recorded. 719 // The value of profile_network_bytes_ that was last recorded.
721 int64 last_recorded_profile_network_bytes_; 720 int64 last_recorded_profile_network_bytes_;
722 721
723 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); 722 DISALLOW_COPY_AND_ASSIGN(PrerenderManager);
724 }; 723 };
725 724
726 } // namespace prerender 725 } // namespace prerender
727 726
728 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ 727 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/policy_browsertest.cc ('k') | chrome/browser/prerender/prerender_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698