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

Side by Side Diff: net/base/server_bound_cert_service.cc

Issue 11419224: Add missing (and remove superfluous) 'explicit' from constructors. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + remove non-straightforward changes Created 7 years, 11 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/base/network_config_watcher_mac.cc ('k') | net/base/upload_file_element_reader.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 "net/base/server_bound_cert_service.h" 5 #include "net/base/server_bound_cert_service.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 WorkerDoneCallback callback_; 288 WorkerDoneCallback callback_;
289 289
290 DISALLOW_COPY_AND_ASSIGN(ServerBoundCertServiceWorker); 290 DISALLOW_COPY_AND_ASSIGN(ServerBoundCertServiceWorker);
291 }; 291 };
292 292
293 // A ServerBoundCertServiceJob is a one-to-one counterpart of an 293 // A ServerBoundCertServiceJob is a one-to-one counterpart of an
294 // ServerBoundCertServiceWorker. It lives only on the ServerBoundCertService's 294 // ServerBoundCertServiceWorker. It lives only on the ServerBoundCertService's
295 // origin message loop. 295 // origin message loop.
296 class ServerBoundCertServiceJob { 296 class ServerBoundCertServiceJob {
297 public: 297 public:
298 ServerBoundCertServiceJob(SSLClientCertType type) : type_(type) { 298 explicit ServerBoundCertServiceJob(SSLClientCertType type) : type_(type) {
299 } 299 }
300 300
301 ~ServerBoundCertServiceJob() { 301 ~ServerBoundCertServiceJob() {
302 if (!requests_.empty()) 302 if (!requests_.empty())
303 DeleteAllCanceled(); 303 DeleteAllCanceled();
304 } 304 }
305 305
306 SSLClientCertType type() const { return type_; } 306 SSLClientCertType type() const { return type_; }
307 307
308 void AddRequest(ServerBoundCertServiceRequest* request) { 308 void AddRequest(ServerBoundCertServiceRequest* request) {
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 else 538 else
539 job->HandleResult(error, CLIENT_CERT_INVALID_TYPE, "", ""); 539 job->HandleResult(error, CLIENT_CERT_INVALID_TYPE, "", "");
540 delete job; 540 delete job;
541 } 541 }
542 542
543 int ServerBoundCertService::cert_count() { 543 int ServerBoundCertService::cert_count() {
544 return server_bound_cert_store_->GetCertCount(); 544 return server_bound_cert_store_->GetCertCount();
545 } 545 }
546 546
547 } // namespace net 547 } // namespace net
OLDNEW
« no previous file with comments | « net/base/network_config_watcher_mac.cc ('k') | net/base/upload_file_element_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698