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

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

Issue 8770025: Zygote most of the uses of the utility process on Linux (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years 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) 2011 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 #include "chrome/browser/image_decoder.h" 5 #include "chrome/browser/image_decoder.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/common/chrome_utility_messages.h" 9 #include "chrome/common/chrome_utility_messages.h"
10 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 if (delegate_) 53 if (delegate_)
54 delegate_->OnDecodeImageFailed(this); 54 delegate_->OnDecodeImageFailed(this);
55 } 55 }
56 56
57 void ImageDecoder::DecodeImageInSandbox( 57 void ImageDecoder::DecodeImageInSandbox(
58 const std::vector<unsigned char>& image_data) { 58 const std::vector<unsigned char>& image_data) {
59 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 59 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
60 UtilityProcessHost* utility_process_host = 60 UtilityProcessHost* utility_process_host =
61 new UtilityProcessHost(this, 61 new UtilityProcessHost(this,
62 target_thread_id_); 62 target_thread_id_);
63 #if defined(OS_LINUX)
64 utility_process_host->set_should_use_zygote(true);
65 #endif
63 utility_process_host->Send(new ChromeUtilityMsg_DecodeImage(image_data)); 66 utility_process_host->Send(new ChromeUtilityMsg_DecodeImage(image_data));
64 } 67 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698