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

Side by Side Diff: chrome/browser/image_decoder.h

Issue 10448105: Revert "Added support for animated/nonanimated user image. There are no" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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
« no previous file with comments | « chrome/browser/chromeos/login/user_manager_impl.cc ('k') | chrome/browser/image_decoder.cc » ('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) 2012 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 #ifndef CHROME_BROWSER_IMAGE_DECODER_H_ 5 #ifndef CHROME_BROWSER_IMAGE_DECODER_H_
6 #define CHROME_BROWSER_IMAGE_DECODER_H_ 6 #define CHROME_BROWSER_IMAGE_DECODER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
(...skipping 21 matching lines...) Expand all
33 protected: 33 protected:
34 virtual ~Delegate() {} 34 virtual ~Delegate() {}
35 }; 35 };
36 36
37 ImageDecoder(Delegate* delegate, 37 ImageDecoder(Delegate* delegate,
38 const std::string& image_data); 38 const std::string& image_data);
39 39
40 // Starts image decoding. 40 // Starts image decoding.
41 void Start(); 41 void Start();
42 42
43 const std::vector<unsigned char>& get_image_data() const {
44 return image_data_;
45 }
46
47 private: 43 private:
48 // It's a reference counted object, so destructor is private. 44 // It's a reference counted object, so destructor is private.
49 virtual ~ImageDecoder(); 45 virtual ~ImageDecoder();
50 46
51 // Overidden from UtilityProcessHostClient: 47 // Overidden from UtilityProcessHostClient:
52 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 48 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
53 49
54 // IPC message handlers. 50 // IPC message handlers.
55 void OnDecodeImageSucceeded(const SkBitmap& decoded_image); 51 void OnDecodeImageSucceeded(const SkBitmap& decoded_image);
56 void OnDecodeImageFailed(); 52 void OnDecodeImageFailed();
57 53
58 // Launches sandboxed process that will decode the image. 54 // Launches sandboxed process that will decode the image.
59 void DecodeImageInSandbox(const std::vector<unsigned char>& image_data); 55 void DecodeImageInSandbox(const std::vector<unsigned char>& image_data);
60 56
61 Delegate* delegate_; 57 Delegate* delegate_;
62 std::vector<unsigned char> image_data_; 58 std::vector<unsigned char> image_data_;
63 content::BrowserThread::ID target_thread_id_; 59 content::BrowserThread::ID target_thread_id_;
64 60
65 DISALLOW_COPY_AND_ASSIGN(ImageDecoder); 61 DISALLOW_COPY_AND_ASSIGN(ImageDecoder);
66 }; 62 };
67 63
68 #endif // CHROME_BROWSER_IMAGE_DECODER_H_ 64 #endif // CHROME_BROWSER_IMAGE_DECODER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/user_manager_impl.cc ('k') | chrome/browser/image_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698