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

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

Issue 1547273003: Set trusted SPDY proxy dynamically on per-profile basis (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "net/base/default_trusted_spdy_proxy_provider.h"
6
7 #include "base/logging.h"
8
9 namespace net {
10
11 DefaultTrustedSpdyProxyProvider::DefaultTrustedSpdyProxyProvider(
12 const ProxyServer& trusted_spdy_proxy)
13 : trusted_spdy_proxy_(trusted_spdy_proxy), weak_factory_(this) {
14 DCHECK(thread_checker_.CalledOnValidThread());
15 }
16
17 DefaultTrustedSpdyProxyProvider::~DefaultTrustedSpdyProxyProvider() {
18 DCHECK(thread_checker_.CalledOnValidThread());
19 }
20
21 void DefaultTrustedSpdyProxyProvider::GetTrustedSpdyProxy(
22 ProxyServer* trusted_spdy_proxy) const {
23 DCHECK(thread_checker_.CalledOnValidThread());
24
25 *trusted_spdy_proxy = trusted_spdy_proxy_;
26 }
27
28 base::WeakPtr<TrustedSpdyProxyProvider>
29 DefaultTrustedSpdyProxyProvider::GetWeakPtr() {
30 DCHECK(thread_checker_.CalledOnValidThread());
31
32 return weak_factory_.GetWeakPtr();
33 }
34
35 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698