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

Side by Side Diff: net/websockets/websocket_job.h

Issue 19269012: Don't persist HPKP if PrivacyMode is enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address codereview nit and fix compilation error in OFFICIAL_BUILD. Created 7 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 | Annotate | Revision Log
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 #ifndef NET_WEBSOCKETS_WEBSOCKET_JOB_H_ 5 #ifndef NET_WEBSOCKETS_WEBSOCKET_JOB_H_
6 #define NET_WEBSOCKETS_WEBSOCKET_JOB_H_ 6 #define NET_WEBSOCKETS_WEBSOCKET_JOB_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // Saves received cookies to the cookie store, and then notifies the 103 // Saves received cookies to the cookie store, and then notifies the
104 // delegate_ of completion of handshake. 104 // delegate_ of completion of handshake.
105 void SaveCookiesAndNotifyHeadersComplete(); 105 void SaveCookiesAndNotifyHeadersComplete();
106 void SaveNextCookie(); 106 void SaveNextCookie();
107 void OnCookieSaved(bool cookie_status); 107 void OnCookieSaved(bool cookie_status);
108 // Clears variables for handling cookies, rebuilds handshake string excluding 108 // Clears variables for handling cookies, rebuilds handshake string excluding
109 // cookies, and then pass the handshake string to delegate_. 109 // cookies, and then pass the handshake string to delegate_.
110 void NotifyHeadersComplete(); 110 void NotifyHeadersComplete();
111 void DoSendData(); 111 void DoSendData();
112 112
113 GURL GetURLForCookies() const;
114
115 const AddressList& address_list() const; 113 const AddressList& address_list() const;
116 int TrySpdyStream(); 114 int TrySpdyStream();
117 void SetWaiting(); 115 void SetWaiting();
118 bool IsWaiting() const; 116 bool IsWaiting() const;
119 void Wakeup(); 117 void Wakeup();
120 void RetryPendingIO(); 118 void RetryPendingIO();
121 void CompleteIO(int result); 119 void CompleteIO(int result);
122 120
123 bool SendDataInternal(const char* data, int length); 121 bool SendDataInternal(const char* data, int length);
124 void CloseInternal(); 122 void CloseInternal();
(...skipping 29 matching lines...) Expand all
154 152
155 base::WeakPtrFactory<WebSocketJob> weak_ptr_factory_; 153 base::WeakPtrFactory<WebSocketJob> weak_ptr_factory_;
156 base::WeakPtrFactory<WebSocketJob> weak_ptr_factory_for_send_pending_; 154 base::WeakPtrFactory<WebSocketJob> weak_ptr_factory_for_send_pending_;
157 155
158 DISALLOW_COPY_AND_ASSIGN(WebSocketJob); 156 DISALLOW_COPY_AND_ASSIGN(WebSocketJob);
159 }; 157 };
160 158
161 } // namespace 159 } // namespace
162 160
163 #endif // NET_WEBSOCKETS_WEBSOCKET_JOB_H_ 161 #endif // NET_WEBSOCKETS_WEBSOCKET_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698