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

Side by Side Diff: net/base/layered_network_delegate.h

Issue 1421983002: Include tab IDs when reporting data use accounting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@data_use_scoped_vector
Patch Set: Fixed external_data_use_observer test Created 5 years, 1 month 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 | « components/data_usage/core/data_use_annotator.h ('k') | net/base/layered_network_delegate.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 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 NET_BASE_LAYERED_NETWORK_DELEGATE_H_ 5 #ifndef NET_BASE_LAYERED_NETWORK_DELEGATE_H_
6 #define NET_BASE_LAYERED_NETWORK_DELEGATE_H_ 6 #define NET_BASE_LAYERED_NETWORK_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 void OnSendHeaders(URLRequest* request, 57 void OnSendHeaders(URLRequest* request,
58 const HttpRequestHeaders& headers) final; 58 const HttpRequestHeaders& headers) final;
59 int OnHeadersReceived( 59 int OnHeadersReceived(
60 URLRequest* request, 60 URLRequest* request,
61 const CompletionCallback& callback, 61 const CompletionCallback& callback,
62 const HttpResponseHeaders* original_response_headers, 62 const HttpResponseHeaders* original_response_headers,
63 scoped_refptr<HttpResponseHeaders>* override_response_headers, 63 scoped_refptr<HttpResponseHeaders>* override_response_headers,
64 GURL* allowed_unsafe_redirect_url) final; 64 GURL* allowed_unsafe_redirect_url) final;
65 void OnBeforeRedirect(URLRequest* request, const GURL& new_location) final; 65 void OnBeforeRedirect(URLRequest* request, const GURL& new_location) final;
66 void OnResponseStarted(URLRequest* request) final; 66 void OnResponseStarted(URLRequest* request) final;
67 void OnNetworkBytesReceived(const URLRequest& request, 67 void OnNetworkBytesReceived(URLRequest* request,
68 int64_t bytes_received) final; 68 int64_t bytes_received) final;
69 void OnNetworkBytesSent(const URLRequest& request, int64_t bytes_sent) final; 69 void OnNetworkBytesSent(URLRequest* request, int64_t bytes_sent) final;
70 void OnCompleted(URLRequest* request, bool started) final; 70 void OnCompleted(URLRequest* request, bool started) final;
71 void OnURLRequestDestroyed(URLRequest* request) final; 71 void OnURLRequestDestroyed(URLRequest* request) final;
72 void OnURLRequestJobOrphaned(URLRequest* request) final; 72 void OnURLRequestJobOrphaned(URLRequest* request) final;
73 void OnPACScriptError(int line_number, const base::string16& error) final; 73 void OnPACScriptError(int line_number, const base::string16& error) final;
74 AuthRequiredResponse OnAuthRequired(URLRequest* request, 74 AuthRequiredResponse OnAuthRequired(URLRequest* request,
75 const AuthChallengeInfo& auth_info, 75 const AuthChallengeInfo& auth_info,
76 const AuthCallback& callback, 76 const AuthCallback& callback,
77 AuthCredentials* credentials) final; 77 AuthCredentials* credentials) final;
78 bool OnCanGetCookies(const URLRequest& request, 78 bool OnCanGetCookies(const URLRequest& request,
79 const CookieList& cookie_list) final; 79 const CookieList& cookie_list) final;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 const CompletionCallback& callback, 119 const CompletionCallback& callback,
120 const HttpResponseHeaders* original_response_headers, 120 const HttpResponseHeaders* original_response_headers,
121 scoped_refptr<HttpResponseHeaders>* override_response_headers, 121 scoped_refptr<HttpResponseHeaders>* override_response_headers,
122 GURL* allowed_unsafe_redirect_url); 122 GURL* allowed_unsafe_redirect_url);
123 123
124 virtual void OnBeforeRedirectInternal(URLRequest* request, 124 virtual void OnBeforeRedirectInternal(URLRequest* request,
125 const GURL& new_location); 125 const GURL& new_location);
126 126
127 virtual void OnResponseStartedInternal(URLRequest* request); 127 virtual void OnResponseStartedInternal(URLRequest* request);
128 128
129 virtual void OnNetworkBytesReceivedInternal(const URLRequest& request, 129 virtual void OnNetworkBytesReceivedInternal(URLRequest* request,
130 int64_t bytes_received); 130 int64_t bytes_received);
131 131
132 virtual void OnNetworkBytesSentInternal(const URLRequest& request, 132 virtual void OnNetworkBytesSentInternal(URLRequest* request,
133 int64_t bytes_sent); 133 int64_t bytes_sent);
134 134
135 virtual void OnCompletedInternal(URLRequest* request, bool started); 135 virtual void OnCompletedInternal(URLRequest* request, bool started);
136 136
137 virtual void OnURLRequestDestroyedInternal(URLRequest* request); 137 virtual void OnURLRequestDestroyedInternal(URLRequest* request);
138 138
139 virtual void OnPACScriptErrorInternal(int line_number, 139 virtual void OnPACScriptErrorInternal(int line_number,
140 const base::string16& error); 140 const base::string16& error);
141 141
142 virtual void OnCanGetCookiesInternal(const URLRequest& request, 142 virtual void OnCanGetCookiesInternal(const URLRequest& request,
(...skipping 22 matching lines...) Expand all
165 const GURL& target_url, 165 const GURL& target_url,
166 const GURL& referrer_url) const; 166 const GURL& referrer_url) const;
167 167
168 private: 168 private:
169 scoped_ptr<NetworkDelegate> nested_network_delegate_; 169 scoped_ptr<NetworkDelegate> nested_network_delegate_;
170 }; 170 };
171 171
172 } // namespace net 172 } // namespace net
173 173
174 #endif // NET_BASE_LAYERED_NETWORK_DELEGATE_H_ 174 #endif // NET_BASE_LAYERED_NETWORK_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/data_usage/core/data_use_annotator.h ('k') | net/base/layered_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698