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

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

Issue 7693029: Deflake PrerenderExcessiveMemory, fix race (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Oops Created 9 years, 4 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) 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 <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/time.h" 13 #include "base/time.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "chrome/browser/prerender/prerender_final_status.h" 15 #include "chrome/browser/prerender/prerender_final_status.h"
16 #include "content/browser/tab_contents/tab_contents_observer.h" 16 #include "content/browser/tab_contents/tab_contents_observer.h"
17 #include "content/browser/renderer_host/render_view_host_delegate.h" 17 #include "content/browser/renderer_host/render_view_host_delegate.h"
18 #include "content/common/notification_registrar.h" 18 #include "content/common/notification_registrar.h"
19 #include "ui/gfx/rect.h"
19 20
20 class Profile; 21 class Profile;
21 class RenderViewHost; 22 class RenderViewHost;
22 class TabContents; 23 class TabContents;
23 class TabContentsWrapper; 24 class TabContentsWrapper;
24 struct FaviconURL; 25 struct FaviconURL;
25 struct ViewHostMsg_FrameNavigate_Params; 26 struct ViewHostMsg_FrameNavigate_Params;
26 27
27 namespace base { 28 namespace base {
28 class ProcessMetrics; 29 class ProcessMetrics;
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 273
273 // Page ID at which prerendering started. 274 // Page ID at which prerendering started.
274 int32 starting_page_id_; 275 int32 starting_page_id_;
275 276
276 // Origin for this prerender. 277 // Origin for this prerender.
277 Origin origin_; 278 Origin origin_;
278 279
279 // Experiment during which this prerender is performed. 280 // Experiment during which this prerender is performed.
280 uint8 experiment_id_; 281 uint8 experiment_id_;
281 282
282 // Offset by which to offset prerendered pages 283 // Offset by which to offset prerendered pages.
283 static const int32 kPrerenderPageIdOffset = 10; 284 static const int32 kPrerenderPageIdOffset = 10;
284 285
286 // Bounds to use for the prerendered TabContents.
287 gfx::Rect tab_bounds_;
288
285 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); 289 DISALLOW_COPY_AND_ASSIGN(PrerenderContents);
286 }; 290 };
287 291
288 } // namespace prerender 292 } // namespace prerender
289 293
290 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ 294 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698