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

Side by Side Diff: content/shell/shell_network_delegate.cc

Issue 9701023: Add ShellNetworkDelegate so content_shell can use cookies (again) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 8 years, 8 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "content/shell/shell_network_delegate.h"
6
7 #include "net/base/net_errors.h"
8
9 namespace content {
10
11 ShellNetworkDelegate::ShellNetworkDelegate() {
12 }
13
14 ShellNetworkDelegate::~ShellNetworkDelegate() {
15 }
16
17 int ShellNetworkDelegate::OnBeforeURLRequest(
18 net::URLRequest* request,
19 const net::CompletionCallback& callback,
20 GURL* new_url) {
21 return net::OK;
22 }
23
24 int ShellNetworkDelegate::OnBeforeSendHeaders(
25 net::URLRequest* request,
26 const net::CompletionCallback& callback,
27 net::HttpRequestHeaders* headers) {
28 return net::OK;
29 }
30
31 void ShellNetworkDelegate::OnSendHeaders(
32 net::URLRequest* request,
33 const net::HttpRequestHeaders& headers) {
34 }
35
36 int ShellNetworkDelegate::OnHeadersReceived(
37 net::URLRequest* request,
38 const net::CompletionCallback& callback,
39 net::HttpResponseHeaders* original_response_headers,
40 scoped_refptr<net::HttpResponseHeaders>* override_response_headers) {
41 return net::OK;
42 }
43
44 void ShellNetworkDelegate::OnBeforeRedirect(net::URLRequest* request,
45 const GURL& new_location) {
46 }
47
48 void ShellNetworkDelegate::OnResponseStarted(net::URLRequest* request) {
49 }
50
51 void ShellNetworkDelegate::OnRawBytesRead(const net::URLRequest& request,
52 int bytes_read) {
53 }
54
55 void ShellNetworkDelegate::OnCompleted(net::URLRequest* request, bool started) {
56 }
57
58 void ShellNetworkDelegate::OnURLRequestDestroyed(net::URLRequest* request) {
59 }
60
61 void ShellNetworkDelegate::OnPACScriptError(int line_number,
62 const string16& error) {
63 }
64
65 ShellNetworkDelegate::AuthRequiredResponse ShellNetworkDelegate::OnAuthRequired(
66 net::URLRequest* request,
67 const net::AuthChallengeInfo& auth_info,
68 const AuthCallback& callback,
69 net::AuthCredentials* credentials) {
70 return AUTH_REQUIRED_RESPONSE_NO_ACTION;
71 }
72
73 bool ShellNetworkDelegate::CanGetCookies(
74 const net::URLRequest* request,
75 const net::CookieList& cookie_list) {
76 return true;
77 }
78
79 bool ShellNetworkDelegate::CanSetCookie(const net::URLRequest* request,
80 const std::string& cookie_line,
81 net::CookieOptions* options) {
82 return true;
83 }
84
85 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/shell_network_delegate.h ('k') | content/shell/shell_url_request_context_getter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698