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

Side by Side Diff: chrome/browser/dom_ui/dom_ui_thumbnail_source.cc

Issue 243076: Move the JPEG and PNG codecs from base/gfx to app/gfx/codec. Move the classes... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/dom_ui/dom_ui_thumbnail_source.h" 5 #include "chrome/browser/dom_ui/dom_ui_thumbnail_source.h"
6 6
7 #include "app/gfx/codec/jpeg_codec.h"
7 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.h"
8 #include "base/command_line.h" 9 #include "base/command_line.h"
9 #include "base/gfx/jpeg_codec.h"
10 #include "chrome/browser/profile.h" 10 #include "chrome/browser/profile.h"
11 #include "chrome/browser/thumbnail_store.h" 11 #include "chrome/browser/thumbnail_store.h"
12 #include "chrome/common/chrome_switches.h" 12 #include "chrome/common/chrome_switches.h"
13 #include "chrome/common/notification_service.h" 13 #include "chrome/common/notification_service.h"
14 #include "chrome/common/url_constants.h" 14 #include "chrome/common/url_constants.h"
15 #include "googleurl/src/gurl.h" 15 #include "googleurl/src/gurl.h"
16 #include "grit/theme_resources.h" 16 #include "grit/theme_resources.h"
17 #include "third_party/skia/include/core/SkBitmap.h" 17 #include "third_party/skia/include/core/SkBitmap.h"
18 18
19 DOMUIThumbnailSource::DOMUIThumbnailSource(Profile* profile) 19 DOMUIThumbnailSource::DOMUIThumbnailSource(Profile* profile)
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 } 101 }
102 102
103 // This notification is sent only once. 103 // This notification is sent only once.
104 registrar_.RemoveAll(); 104 registrar_.RemoveAll();
105 105
106 for (size_t i = 0; i < pending_requests_.size(); ++i) 106 for (size_t i = 0; i < pending_requests_.size(); ++i)
107 DoDataRequest(pending_requests_[i].first, pending_requests_[i].second); 107 DoDataRequest(pending_requests_[i].first, pending_requests_[i].second);
108 108
109 pending_requests_.clear(); 109 pending_requests_.clear();
110 } 110 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698