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

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

Issue 8477042: Move Sad Tab implementation out of the TabContentsViews. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: changes for jochen and jam Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CONTENTS_H_ 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <string> 10 #include <string>
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 bool ShouldSuppressDialogs(); 136 bool ShouldSuppressDialogs();
137 137
138 // TabContentsObserver implementation. 138 // TabContentsObserver implementation.
139 virtual void DidStopLoading() OVERRIDE; 139 virtual void DidStopLoading() OVERRIDE;
140 virtual void DidStartProvisionalLoadForFrame( 140 virtual void DidStartProvisionalLoadForFrame(
141 int64 frame_id, 141 int64 frame_id,
142 bool is_main_frame, 142 bool is_main_frame,
143 const GURL& validated_url, 143 const GURL& validated_url,
144 bool is_error_page, 144 bool is_error_page,
145 RenderViewHost* render_view_host) OVERRIDE; 145 RenderViewHost* render_view_host) OVERRIDE;
146 virtual void RenderViewGone() OVERRIDE; 146 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE;
147 147
148 // content::NotificationObserver 148 // content::NotificationObserver
149 virtual void Observe(int type, 149 virtual void Observe(int type,
150 const content::NotificationSource& source, 150 const content::NotificationSource& source,
151 const content::NotificationDetails& details) OVERRIDE; 151 const content::NotificationDetails& details) OVERRIDE;
152 152
153 // Adds an alias URL, for one of the many redirections. If the URL can not 153 // Adds an alias URL, for one of the many redirections. If the URL can not
154 // be prerendered - for example, it's an ftp URL - |this| will be destroyed 154 // be prerendered - for example, it's an ftp URL - |this| will be destroyed
155 // and false is returned. Otherwise, true is returned and the alias is 155 // and false is returned. Otherwise, true is returned and the alias is
156 // remembered. 156 // remembered.
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 310
311 // Offset by which to offset prerendered pages 311 // Offset by which to offset prerendered pages
312 static const int32 kPrerenderPageIdOffset = 10; 312 static const int32 kPrerenderPageIdOffset = 10;
313 313
314 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); 314 DISALLOW_COPY_AND_ASSIGN(PrerenderContents);
315 }; 315 };
316 316
317 } // namespace prerender 317 } // namespace prerender
318 318
319 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ 319 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_browsertest.cc ('k') | chrome/browser/prerender/prerender_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698