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

Side by Side Diff: chrome/browser/tab_contents/thumbnail_generator.cc

Issue 8342048: Make NotificationService an interface in the content namespace, and switch callers to use it. Mov... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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 #include "chrome/browser/tab_contents/thumbnail_generator.h" 5 #include "chrome/browser/tab_contents/thumbnail_generator.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram.h"
12 #include "base/time.h" 12 #include "base/time.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "chrome/browser/browser_process.h" 14 #include "chrome/browser/browser_process.h"
15 #include "chrome/browser/history/top_sites.h" 15 #include "chrome/browser/history/top_sites.h"
16 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
17 #include "chrome/common/thumbnail_score.h" 17 #include "chrome/common/thumbnail_score.h"
18 #include "content/browser/renderer_host/backing_store.h" 18 #include "content/browser/renderer_host/backing_store.h"
19 #include "content/browser/renderer_host/render_process_host.h" 19 #include "content/browser/renderer_host/render_process_host.h"
20 #include "content/browser/renderer_host/render_view_host.h" 20 #include "content/browser/renderer_host/render_view_host.h"
21 #include "content/browser/tab_contents/tab_contents.h" 21 #include "content/browser/tab_contents/tab_contents.h"
22 #include "content/common/notification_service.h" 22 #include "content/public/browser/notification_details.h"
23 #include "content/public/browser/notification_source.h"
23 #include "content/public/browser/notification_types.h" 24 #include "content/public/browser/notification_types.h"
24 #include "googleurl/src/gurl.h" 25 #include "googleurl/src/gurl.h"
25 #include "skia/ext/image_operations.h" 26 #include "skia/ext/image_operations.h"
26 #include "skia/ext/platform_canvas.h" 27 #include "skia/ext/platform_canvas.h"
27 #include "third_party/skia/include/core/SkBitmap.h" 28 #include "third_party/skia/include/core/SkBitmap.h"
28 #include "ui/gfx/color_utils.h" 29 #include "ui/gfx/color_utils.h"
29 #include "ui/gfx/rect.h" 30 #include "ui/gfx/rect.h"
30 #include "ui/gfx/skbitmap_operations.h" 31 #include "ui/gfx/skbitmap_operations.h"
31 32
32 #if defined(OS_WIN) 33 #if defined(OS_WIN)
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 513
513 void ThumbnailGenerator::DidStartLoading() { 514 void ThumbnailGenerator::DidStartLoading() {
514 load_interrupted_ = false; 515 load_interrupted_ = false;
515 } 516 }
516 517
517 void ThumbnailGenerator::StopNavigation() { 518 void ThumbnailGenerator::StopNavigation() {
518 // This function gets called when the page loading is interrupted by the 519 // This function gets called when the page loading is interrupted by the
519 // stop button. 520 // stop button.
520 load_interrupted_ = true; 521 load_interrupted_ = true;
521 } 522 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698