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

Side by Side Diff: base/worker_pool_linux.cc

Issue 113578: Implement X509Certificate::Verify for Linux.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | « no previous file | net/base/x509_certificate_nss.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) 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 "base/worker_pool.h" 5 #include "base/worker_pool.h"
6 #include "base/worker_pool_linux.h" 6 #include "base/worker_pool_linux.h"
7 7
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/platform_thread.h" 10 #include "base/platform_thread.h"
11 #include "base/ref_counted.h" 11 #include "base/ref_counted.h"
12 #include "base/string_util.h" 12 #include "base/string_util.h"
13 #include "base/task.h" 13 #include "base/task.h"
14 14
15 namespace { 15 namespace {
16 16
17 const int kIdleSecondsBeforeExit = 10 * 60; 17 const int kIdleSecondsBeforeExit = 10 * 60;
18 const int kWorkerThreadStackSize = 64 * 1024; 18 // A stack size of 64 KB is too small for the CERT_PKIXVerifyCert
19 // function of NSS because of NSS bug 439169.
20 const int kWorkerThreadStackSize = 128 * 1024;
19 21
20 class WorkerPoolImpl { 22 class WorkerPoolImpl {
21 public: 23 public:
22 WorkerPoolImpl(); 24 WorkerPoolImpl();
23 ~WorkerPoolImpl(); 25 ~WorkerPoolImpl();
24 26
25 void PostTask(const tracked_objects::Location& from_here, Task* task, 27 void PostTask(const tracked_objects::Location& from_here, Task* task,
26 bool task_is_slow); 28 bool task_is_slow);
27 29
28 private: 30 private:
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 return NULL; 160 return NULL;
159 } 161 }
160 } 162 }
161 163
162 Task* task = tasks_.front(); 164 Task* task = tasks_.front();
163 tasks_.pop(); 165 tasks_.pop();
164 return task; 166 return task;
165 } 167 }
166 168
167 } // namespace base 169 } // namespace base
OLDNEW
« no previous file with comments | « no previous file | net/base/x509_certificate_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698