OLD | NEW |
---|---|
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 Loading... | |
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; | |
Lei Zhang
2015/10/07 17:55:20
I added motek because git blame says he wrote this
shrike
2015/10/07 18:06:34
Sounds good - I don't know the answer either.
| |
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_ |
OLD | NEW |