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

Side by Side Diff: net/http/transport_security_persister.cc

Issue 511163002: Net-related fixups for scoped_refptr conversion operator cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix naming to match Created 6 years, 3 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
« no previous file with comments | « net/http/transport_security_persister.h ('k') | net/socket/ssl_client_socket_openssl.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/http/transport_security_persister.h" 5 #include "net/http/transport_security_persister.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 } 90 }
91 91
92 } // namespace 92 } // namespace
93 93
94 94
95 namespace net { 95 namespace net {
96 96
97 TransportSecurityPersister::TransportSecurityPersister( 97 TransportSecurityPersister::TransportSecurityPersister(
98 TransportSecurityState* state, 98 TransportSecurityState* state,
99 const base::FilePath& profile_path, 99 const base::FilePath& profile_path,
100 base::SequencedTaskRunner* background_runner, 100 const scoped_refptr<base::SequencedTaskRunner>& background_runner,
101 bool readonly) 101 bool readonly)
102 : transport_security_state_(state), 102 : transport_security_state_(state),
103 writer_(profile_path.AppendASCII("TransportSecurity"), background_runner), 103 writer_(profile_path.AppendASCII("TransportSecurity"), background_runner),
104 foreground_runner_(base::MessageLoop::current()->message_loop_proxy()), 104 foreground_runner_(base::MessageLoop::current()->message_loop_proxy()),
105 background_runner_(background_runner), 105 background_runner_(background_runner),
106 readonly_(readonly), 106 readonly_(readonly),
107 weak_ptr_factory_(this) { 107 weak_ptr_factory_(this) {
108 transport_security_state_->SetDelegate(this); 108 transport_security_state_->SetDelegate(this);
109 109
110 base::PostTaskAndReplyWithResult( 110 base::PostTaskAndReplyWithResult(
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 bool dirty = false; 319 bool dirty = false;
320 if (!LoadEntries(state, &dirty)) { 320 if (!LoadEntries(state, &dirty)) {
321 LOG(ERROR) << "Failed to deserialize state: " << state; 321 LOG(ERROR) << "Failed to deserialize state: " << state;
322 return; 322 return;
323 } 323 }
324 if (dirty) 324 if (dirty)
325 StateIsDirty(transport_security_state_); 325 StateIsDirty(transport_security_state_);
326 } 326 }
327 327
328 } // namespace net 328 } // namespace net
OLDNEW
« no previous file with comments | « net/http/transport_security_persister.h ('k') | net/socket/ssl_client_socket_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698