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

Side by Side Diff: base/openssl_util.cc

Issue 6714032: Move some files in base to base/memory. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: only base Created 9 years, 9 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/openssl_util.h" 5 #include "base/openssl_util.h"
6 6
7 #include <openssl/err.h> 7 #include <openssl/err.h>
8 #include <openssl/ssl.h> 8 #include <openssl/ssl.h>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/scoped_vector.h" 11 #include "base/memory/scoped_vector.h"
12 #include "base/singleton.h" 12 #include "base/memory/singleton.h"
13 #include "base/string_piece.h" 13 #include "base/string_piece.h"
14 #include "base/synchronization/lock.h" 14 #include "base/synchronization/lock.h"
15 15
16 namespace base { 16 namespace base {
17 17
18 namespace { 18 namespace {
19 19
20 unsigned long CurrentThreadId() { 20 unsigned long CurrentThreadId() {
21 return static_cast<unsigned long>(PlatformThread::CurrentId()); 21 return static_cast<unsigned long>(PlatformThread::CurrentId());
22 } 22 }
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 std::string message; 104 std::string message;
105 location.Write(true, true, &message); 105 location.Write(true, true, &message);
106 DVLOG(1) << "OpenSSL ERR_get_error stack from " << message; 106 DVLOG(1) << "OpenSSL ERR_get_error stack from " << message;
107 ERR_print_errors_cb(&OpenSSLErrorCallback, NULL); 107 ERR_print_errors_cb(&OpenSSLErrorCallback, NULL);
108 } else { 108 } else {
109 ERR_clear_error(); 109 ERR_clear_error();
110 } 110 }
111 } 111 }
112 112
113 } // namespace base 113 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698