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

Side by Side Diff: chrome/browser/android/download/ui/thumbnail_provider.cc

Issue 2763103002: Move ImageDecoder to components/image_fetcher/content (Closed)
Patch Set: Rebased. Created 3 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/android/download/ui/thumbnail_provider.h" 5 #include "chrome/browser/android/download/ui/thumbnail_provider.h"
6 6
7 #include "base/android/jni_string.h" 7 #include "base/android/jni_string.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "chrome/browser/image_decoder.h" 11 #include "components/image_fetcher/content/image_decoder.h"
12 #include "content/public/browser/browser_thread.h" 12 #include "content/public/browser/browser_thread.h"
13 #include "jni/ThumbnailProviderImpl_jni.h" 13 #include "jni/ThumbnailProviderImpl_jni.h"
14 #include "skia/ext/image_operations.h" 14 #include "skia/ext/image_operations.h"
15 #include "third_party/skia/include/core/SkBitmap.h" 15 #include "third_party/skia/include/core/SkBitmap.h"
16 #include "ui/gfx/android/java_bitmap.h" 16 #include "ui/gfx/android/java_bitmap.h"
17 #include "ui/gfx/skbitmap_operations.h" 17 #include "ui/gfx/skbitmap_operations.h"
18 18
19 class SkBitmap; 19 class SkBitmap;
20 20
21 using base::android::JavaParamRef; 21 using base::android::JavaParamRef;
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 162
163 // static 163 // static
164 bool ThumbnailProvider::RegisterThumbnailProvider(JNIEnv* env) { 164 bool ThumbnailProvider::RegisterThumbnailProvider(JNIEnv* env) {
165 return RegisterNativesImpl(env); 165 return RegisterNativesImpl(env);
166 } 166 }
167 167
168 // static 168 // static
169 static jlong Init(JNIEnv* env, const JavaParamRef<jobject>& jobj) { 169 static jlong Init(JNIEnv* env, const JavaParamRef<jobject>& jobj) {
170 return reinterpret_cast<intptr_t>(new ThumbnailProvider(jobj)); 170 return reinterpret_cast<intptr_t>(new ThumbnailProvider(jobj));
171 } 171 }
OLDNEW
« no previous file with comments | « chrome/browser/android/download/ui/thumbnail_provider.h ('k') | chrome/browser/android/logo_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698