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

Side by Side Diff: net/proxy/network_delegate_error_observer.cc

Issue 1126513002: Add ProxyResolverFactoryV8Tracing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-proxy-refactor
Patch Set: Created 5 years, 7 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/proxy/network_delegate_error_observer.h ('k') | net/proxy/proxy_resolver_v8_tracing.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/proxy/network_delegate_error_observer.h" 5 #include "net/proxy/network_delegate_error_observer.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "net/base/net_errors.h" 10 #include "net/base/net_errors.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 NetworkDelegateErrorObserver::NetworkDelegateErrorObserver( 67 NetworkDelegateErrorObserver::NetworkDelegateErrorObserver(
68 NetworkDelegate* network_delegate, 68 NetworkDelegate* network_delegate,
69 base::SingleThreadTaskRunner* origin_runner) 69 base::SingleThreadTaskRunner* origin_runner)
70 : core_(new Core(network_delegate, origin_runner)) { 70 : core_(new Core(network_delegate, origin_runner)) {
71 } 71 }
72 72
73 NetworkDelegateErrorObserver::~NetworkDelegateErrorObserver() { 73 NetworkDelegateErrorObserver::~NetworkDelegateErrorObserver() {
74 core_->Shutdown(); 74 core_->Shutdown();
75 } 75 }
76 76
77 // static
78 scoped_ptr<ProxyResolverErrorObserver> NetworkDelegateErrorObserver::Create(
79 NetworkDelegate* network_delegate,
80 const scoped_refptr<base::SingleThreadTaskRunner>& origin_runner) {
81 return make_scoped_ptr(
82 new NetworkDelegateErrorObserver(network_delegate, origin_runner.get()));
83 }
84
77 void NetworkDelegateErrorObserver::OnPACScriptError( 85 void NetworkDelegateErrorObserver::OnPACScriptError(
78 int line_number, 86 int line_number,
79 const base::string16& error) { 87 const base::string16& error) {
80 core_->NotifyPACScriptError(line_number, error); 88 core_->NotifyPACScriptError(line_number, error);
81 } 89 }
82 90
83 } // namespace net 91 } // namespace net
OLDNEW
« no previous file with comments | « net/proxy/network_delegate_error_observer.h ('k') | net/proxy/proxy_resolver_v8_tracing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698