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

Side by Side Diff: net/socket/ssl_error_params.cc

Issue 15662008: Make net and ipc explicitly use the base namespace for Values. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | « net/socket/ssl_client_socket_pool.cc ('k') | net/socket/transport_client_socket_pool.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) 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 "net/socket/ssl_error_params.h" 5 #include "net/socket/ssl_error_params.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 9
10 namespace net { 10 namespace net {
11 11
12 namespace { 12 namespace {
13 13
14 Value* NetLogSSLErrorCallback(int net_error, 14 base::Value* NetLogSSLErrorCallback(int net_error,
15 int ssl_lib_error, 15 int ssl_lib_error,
16 NetLog::LogLevel /* log_level */) { 16 NetLog::LogLevel /* log_level */) {
17 DictionaryValue* dict = new DictionaryValue(); 17 base::DictionaryValue* dict = new base::DictionaryValue();
18 dict->SetInteger("net_error", net_error); 18 dict->SetInteger("net_error", net_error);
19 if (ssl_lib_error) 19 if (ssl_lib_error)
20 dict->SetInteger("ssl_lib_error", ssl_lib_error); 20 dict->SetInteger("ssl_lib_error", ssl_lib_error);
21 return dict; 21 return dict;
22 } 22 }
23 23
24 } // namespace 24 } // namespace
25 25
26 NetLog::ParametersCallback CreateNetLogSSLErrorCallback(int net_error, 26 NetLog::ParametersCallback CreateNetLogSSLErrorCallback(int net_error,
27 int ssl_lib_error) { 27 int ssl_lib_error) {
28 return base::Bind(&NetLogSSLErrorCallback, net_error, ssl_lib_error); 28 return base::Bind(&NetLogSSLErrorCallback, net_error, ssl_lib_error);
29 } 29 }
30 30
31 } // namespace net 31 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_pool.cc ('k') | net/socket/transport_client_socket_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698