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

Side by Side Diff: chrome/utility/chrome_content_utility_client.h

Issue 600913002: Revert of Large wallpaper decoding in utility process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ 5 #ifndef CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_
6 #define CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ 6 #define CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 14 matching lines...) Expand all
25 public: 25 public:
26 ChromeContentUtilityClient(); 26 ChromeContentUtilityClient();
27 virtual ~ChromeContentUtilityClient(); 27 virtual ~ChromeContentUtilityClient();
28 28
29 virtual void UtilityThreadStarted() OVERRIDE; 29 virtual void UtilityThreadStarted() OVERRIDE;
30 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 30 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
31 31
32 static void PreSandboxStartup(); 32 static void PreSandboxStartup();
33 33
34 // Shared with extensions::ExtensionsHandler. 34 // Shared with extensions::ExtensionsHandler.
35 static SkBitmap DecodeImage(const std::vector<unsigned char>& encoded_data, 35 static void DecodeImage(const std::vector<unsigned char>& encoded_data);
36 bool shrink_to_fit);
37 static void DecodeImageAndSend(const std::vector<unsigned char>& encoded_data,
38 bool shrink_to_fit);
39 36
40 private: 37 private:
41 // IPC message handlers. 38 // IPC message handlers.
42 void OnUnpackWebResource(const std::string& resource_data); 39 void OnUnpackWebResource(const std::string& resource_data);
43 void OnDecodeImage(const std::vector<unsigned char>& encoded_data, 40 void OnDecodeImage(const std::vector<unsigned char>& encoded_data);
44 bool shrink_to_fit);
45 void OnRobustJPEGDecodeImage( 41 void OnRobustJPEGDecodeImage(
46 const std::vector<unsigned char>& encoded_data); 42 const std::vector<unsigned char>& encoded_data);
47 43
48 #if defined(OS_CHROMEOS) 44 #if defined(OS_CHROMEOS)
49 void OnCreateZipFile(const base::FilePath& src_dir, 45 void OnCreateZipFile(const base::FilePath& src_dir,
50 const std::vector<base::FilePath>& src_relative_paths, 46 const std::vector<base::FilePath>& src_relative_paths,
51 const base::FileDescriptor& dest_fd); 47 const base::FileDescriptor& dest_fd);
52 #endif // defined(OS_CHROMEOS) 48 #endif // defined(OS_CHROMEOS)
53 49
54 void OnPatchFileBsdiff(const base::FilePath& input_file, 50 void OnPatchFileBsdiff(const base::FilePath& input_file,
(...skipping 18 matching lines...) Expand all
73 69
74 // Flag to enable whitelisting. 70 // Flag to enable whitelisting.
75 bool filter_messages_; 71 bool filter_messages_;
76 // A list of message_ids to filter. 72 // A list of message_ids to filter.
77 std::set<int> message_id_whitelist_; 73 std::set<int> message_id_whitelist_;
78 74
79 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient); 75 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient);
80 }; 76 };
81 77
82 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ 78 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/common/chrome_utility_messages.h ('k') | chrome/utility/chrome_content_utility_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698