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

Side by Side Diff: chrome/browser/devtools/devtools_network_transaction.h

Issue 333113002: Move data reduction proxy to Chrome-Proxy header for authentication (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@flywheel-refactor-net-fake-a-redirect-response-headers-chrome-proxy-auth
Patch Set: errata Created 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_ 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_ 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "net/base/completion_callback.h" 10 #include "net/base/completion_callback.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 virtual net::UploadProgress GetUploadProgress() const OVERRIDE; 100 virtual net::UploadProgress GetUploadProgress() const OVERRIDE;
101 virtual void SetQuicServerInfo( 101 virtual void SetQuicServerInfo(
102 net::QuicServerInfo* quic_server_info) OVERRIDE; 102 net::QuicServerInfo* quic_server_info) OVERRIDE;
103 virtual bool GetLoadTimingInfo( 103 virtual bool GetLoadTimingInfo(
104 net::LoadTimingInfo* load_timing_info) const OVERRIDE; 104 net::LoadTimingInfo* load_timing_info) const OVERRIDE;
105 virtual void SetPriority(net::RequestPriority priority) OVERRIDE; 105 virtual void SetPriority(net::RequestPriority priority) OVERRIDE;
106 virtual void SetWebSocketHandshakeStreamCreateHelper( 106 virtual void SetWebSocketHandshakeStreamCreateHelper(
107 net::WebSocketHandshakeStreamBase::CreateHelper* create_helper) OVERRIDE; 107 net::WebSocketHandshakeStreamBase::CreateHelper* create_helper) OVERRIDE;
108 virtual void SetBeforeNetworkStartCallback( 108 virtual void SetBeforeNetworkStartCallback(
109 const BeforeNetworkStartCallback& callback) OVERRIDE; 109 const BeforeNetworkStartCallback& callback) OVERRIDE;
110 virtual void SetBeforeProxyHeadersSentCallback(
111 const BeforeProxyHeadersSentCallback& callback) OVERRIDE;
110 virtual int ResumeNetworkStart() OVERRIDE; 112 virtual int ResumeNetworkStart() OVERRIDE;
111 113
112 protected: 114 protected:
113 friend class test::DevToolsNetworkControllerHelper; 115 friend class test::DevToolsNetworkControllerHelper;
114 116
115 private: 117 private:
116 // Proxy callback handler. Runs saved callback. 118 // Proxy callback handler. Runs saved callback.
117 void OnCallback(int result); 119 void OnCallback(int result);
118 120
119 DevToolsNetworkController* controller_; 121 DevToolsNetworkController* controller_;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 int throttled_result_; 160 int throttled_result_;
159 int64_t throttled_byte_count_; 161 int64_t throttled_byte_count_;
160 CallbackType callback_type_; 162 CallbackType callback_type_;
161 net::CompletionCallback proxy_callback_; 163 net::CompletionCallback proxy_callback_;
162 net::CompletionCallback callback_; 164 net::CompletionCallback callback_;
163 165
164 DISALLOW_COPY_AND_ASSIGN(DevToolsNetworkTransaction); 166 DISALLOW_COPY_AND_ASSIGN(DevToolsNetworkTransaction);
165 }; 167 };
166 168
167 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_ 169 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698