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

Side by Side Diff: chrome/browser/web_resource/json_asynchronous_unpacker.cc

Issue 55133005: Remove EnableZygote API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unused |use_linux_zygote_| member variable. Created 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/safe_json_parser.cc ('k') | content/browser/utility_process_host_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) 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 #include "chrome/browser/web_resource/json_asynchronous_unpacker.h" 5 #include "chrome/browser/web_resource/json_asynchronous_unpacker.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/browser/web_resource/web_resource_service.h" 8 #include "chrome/browser/web_resource/web_resource_service.h"
9 #include "chrome/common/chrome_switches.h" 9 #include "chrome/common/chrome_switches.h"
10 #include "chrome/common/chrome_utility_messages.h" 10 #include "chrome/common/chrome_utility_messages.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 void Cleanup() { 82 void Cleanup() {
83 DCHECK(!got_response_); 83 DCHECK(!got_response_);
84 got_response_ = true; 84 got_response_ = true;
85 Release(); 85 Release();
86 } 86 }
87 87
88 void StartProcessOnIOThread(BrowserThread::ID thread_id, 88 void StartProcessOnIOThread(BrowserThread::ID thread_id,
89 const std::string& json_data) { 89 const std::string& json_data) {
90 UtilityProcessHost* host = UtilityProcessHost::Create( 90 UtilityProcessHost* host = UtilityProcessHost::Create(
91 this, BrowserThread::GetMessageLoopProxyForThread(thread_id).get()); 91 this, BrowserThread::GetMessageLoopProxyForThread(thread_id).get());
92 host->EnableZygote();
93 // TODO(mrc): get proper file path when we start using web resources 92 // TODO(mrc): get proper file path when we start using web resources
94 // that need to be unpacked. 93 // that need to be unpacked.
95 host->Send(new ChromeUtilityMsg_UnpackWebResource(json_data)); 94 host->Send(new ChromeUtilityMsg_UnpackWebResource(json_data));
96 } 95 }
97 96
98 // True if we got a response from the utility process and have cleaned up 97 // True if we got a response from the utility process and have cleaned up
99 // already. 98 // already.
100 bool got_response_; 99 bool got_response_;
101 }; 100 };
102 101
103 JSONAsynchronousUnpacker* JSONAsynchronousUnpacker::Create( 102 JSONAsynchronousUnpacker* JSONAsynchronousUnpacker::Create(
104 JSONAsynchronousUnpackerDelegate* delegate) { 103 JSONAsynchronousUnpackerDelegate* delegate) {
105 return new JSONAsynchronousUnpackerImpl(delegate); 104 return new JSONAsynchronousUnpackerImpl(delegate);
106 } 105 }
107 106
OLDNEW
« no previous file with comments | « chrome/browser/safe_json_parser.cc ('k') | content/browser/utility_process_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698