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

Side by Side Diff: webkit/glue/image_resource_fetcher.cc

Issue 387020: Upstreaming WebKit.gyp (Closed)
Patch Set: Created 11 years, 1 month 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
« no previous file with comments | « webkit/glue/image_decoder.cc ('k') | webkit/glue/media/video_renderer_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "webkit/glue/image_resource_fetcher.h" 5 #include "webkit/glue/image_resource_fetcher.h"
6 6
7 #include "base/gfx/size.h" 7 #include "base/gfx/size.h"
8 #include "webkit/api/public/WebFrame.h" 8 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h"
9 #include "webkit/glue/image_decoder.h" 9 #include "webkit/glue/image_decoder.h"
10 #include "third_party/skia/include/core/SkBitmap.h" 10 #include "third_party/skia/include/core/SkBitmap.h"
11 11
12 using WebKit::WebFrame; 12 using WebKit::WebFrame;
13 13
14 namespace webkit_glue { 14 namespace webkit_glue {
15 15
16 ImageResourceFetcher::ImageResourceFetcher( 16 ImageResourceFetcher::ImageResourceFetcher(
17 const GURL& image_url, 17 const GURL& image_url,
18 WebFrame* frame, 18 WebFrame* frame,
(...skipping 25 matching lines...) Expand all
44 reinterpret_cast<const unsigned char*>(data.data()), data.size()); 44 reinterpret_cast<const unsigned char*>(data.data()), data.size());
45 } // else case: 45 } // else case:
46 // If we get here, it means no image from server or couldn't decode the 46 // If we get here, it means no image from server or couldn't decode the
47 // response as an image. The delegate will see a null image, indicating 47 // response as an image. The delegate will see a null image, indicating
48 // that an error occurred. 48 // that an error occurred.
49 callback_->Run(this, bitmap); 49 callback_->Run(this, bitmap);
50 callback_.reset(); 50 callback_.reset();
51 } 51 }
52 52
53 } // namespace webkit_glue 53 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/glue/image_decoder.cc ('k') | webkit/glue/media/video_renderer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698