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

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

Issue 11368031: First step towards component build for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: indent Created 8 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 | Annotate | Revision Log
« no previous file with comments | « net/android/network_library.h ('k') | ui/android/ui_jni_registrar.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) 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_BASE_NETWORK_DELEGATE_H_ 5 #ifndef NET_BASE_NETWORK_DELEGATE_H_
6 #define NET_BASE_NETWORK_DELEGATE_H_ 6 #define NET_BASE_NETWORK_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 17 matching lines...) Expand all
28 // 28 //
29 // NOTE: It is not okay to add any compile-time dependencies on symbols outside 29 // NOTE: It is not okay to add any compile-time dependencies on symbols outside
30 // of net/base here, because we have a net_base library. Forward declarations 30 // of net/base here, because we have a net_base library. Forward declarations
31 // are ok. 31 // are ok.
32 class CookieOptions; 32 class CookieOptions;
33 class HttpRequestHeaders; 33 class HttpRequestHeaders;
34 class HttpResponseHeaders; 34 class HttpResponseHeaders;
35 class SocketStream; 35 class SocketStream;
36 class URLRequest; 36 class URLRequest;
37 37
38 class NetworkDelegate : public base::NonThreadSafe { 38 class NET_EXPORT NetworkDelegate : public base::NonThreadSafe {
39 public: 39 public:
40 // AuthRequiredResponse indicates how a NetworkDelegate handles an 40 // AuthRequiredResponse indicates how a NetworkDelegate handles an
41 // OnAuthRequired call. It's placed in this file to prevent url_request.h 41 // OnAuthRequired call. It's placed in this file to prevent url_request.h
42 // from having to include network_delegate.h. 42 // from having to include network_delegate.h.
43 enum AuthRequiredResponse { 43 enum AuthRequiredResponse {
44 AUTH_REQUIRED_RESPONSE_NO_ACTION, 44 AUTH_REQUIRED_RESPONSE_NO_ACTION,
45 AUTH_REQUIRED_RESPONSE_SET_AUTH, 45 AUTH_REQUIRED_RESPONSE_SET_AUTH,
46 AUTH_REQUIRED_RESPONSE_CANCEL_AUTH, 46 AUTH_REQUIRED_RESPONSE_CANCEL_AUTH,
47 AUTH_REQUIRED_RESPONSE_IO_PENDING, 47 AUTH_REQUIRED_RESPONSE_IO_PENDING,
48 }; 48 };
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // action or a network action, or when that is no longer the case. 230 // action or a network action, or when that is no longer the case.
231 // REQUEST_WAIT_STATE_RESET indicates for a given URLRequest 231 // REQUEST_WAIT_STATE_RESET indicates for a given URLRequest
232 // cancellation of any pending waits for this request. 232 // cancellation of any pending waits for this request.
233 virtual void OnRequestWaitStateChange(const URLRequest& request, 233 virtual void OnRequestWaitStateChange(const URLRequest& request,
234 RequestWaitState state) = 0; 234 RequestWaitState state) = 0;
235 }; 235 };
236 236
237 } // namespace net 237 } // namespace net
238 238
239 #endif // NET_BASE_NETWORK_DELEGATE_H_ 239 #endif // NET_BASE_NETWORK_DELEGATE_H_
OLDNEW
« no previous file with comments | « net/android/network_library.h ('k') | ui/android/ui_jni_registrar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698