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

Side by Side Diff: chrome/browser/thumbnails/thumbnailing_context.h

Issue 1348833003: Fix NTP thumbnail generation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix NTP thumbnail generation using IncrementCapturerCount Created 5 years, 3 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_THUMBNAILS_THUMBNAILING_CONTEXT_H_ 5 #ifndef CHROME_BROWSER_THUMBNAILS_THUMBNAILING_CONTEXT_H_
6 #define CHROME_BROWSER_THUMBNAILS_THUMBNAILING_CONTEXT_H_ 6 #define CHROME_BROWSER_THUMBNAILS_THUMBNAILING_CONTEXT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "chrome/browser/thumbnails/thumbnail_service.h" 10 #include "chrome/browser/thumbnails/thumbnail_service.h"
(...skipping 27 matching lines...) Expand all
38 ThumbnailingContext(content::WebContents* web_contents, 38 ThumbnailingContext(content::WebContents* web_contents,
39 ThumbnailService* receiving_service, 39 ThumbnailService* receiving_service,
40 bool load_interrupted); 40 bool load_interrupted);
41 41
42 // Create an instance for use with unit tests. 42 // Create an instance for use with unit tests.
43 static ThumbnailingContext* CreateThumbnailingContextForTest() { 43 static ThumbnailingContext* CreateThumbnailingContextForTest() {
44 return new ThumbnailingContext(); 44 return new ThumbnailingContext();
45 } 45 }
46 46
47 scoped_refptr<ThumbnailService> service; 47 scoped_refptr<ThumbnailService> service;
48 content::WebContents* web_contents;
48 GURL url; 49 GURL url;
49 ClipResult clip_result; 50 ClipResult clip_result;
50 gfx::Size requested_copy_size; 51 gfx::Size requested_copy_size;
51 ThumbnailScore score; 52 ThumbnailScore score;
52 53
53 private: 54 private:
54 ThumbnailingContext(); 55 ThumbnailingContext();
55 ~ThumbnailingContext(); 56 ~ThumbnailingContext();
56 57
57 friend class base::RefCountedThreadSafe<ThumbnailingContext>; 58 friend class base::RefCountedThreadSafe<ThumbnailingContext>;
58 }; 59 };
59 60
60 } // namespace thumbnails 61 } // namespace thumbnails
61 62
62 #endif // CHROME_BROWSER_THUMBNAILS_THUMBNAILING_CONTEXT_H_ 63 #endif // CHROME_BROWSER_THUMBNAILS_THUMBNAILING_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698