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

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

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
« no previous file with comments | « content/content_shell.gypi ('k') | content/shell/shell_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
(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 #ifndef CONTENT_SHELL_SHELL_NETWORK_DELEGATE_H_
6 #define CONTENT_SHELL_SHELL_NETWORK_DELEGATE_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
11 #include "net/base/network_delegate.h"
12
13 namespace content {
14
15 class ShellNetworkDelegate : public net::NetworkDelegate {
16 public:
17 ShellNetworkDelegate();
18 virtual ~ShellNetworkDelegate();
19
20 private:
21 // net::NetworkDelegate implementation.
22 virtual int OnBeforeURLRequest(net::URLRequest* request,
23 const net::CompletionCallback& callback,
24 GURL* new_url) OVERRIDE;
25 virtual int OnBeforeSendHeaders(net::URLRequest* request,
26 const net::CompletionCallback& callback,
27 net::HttpRequestHeaders* headers) OVERRIDE;
28 virtual void OnSendHeaders(net::URLRequest* request,
29 const net::HttpRequestHeaders& headers) OVERRIDE;
30 virtual int OnHeadersReceived(
31 net::URLRequest* request,
32 const net::CompletionCallback& callback,
33 net::HttpResponseHeaders* original_response_headers,
34 scoped_refptr<net::HttpResponseHeaders>*
35 override_response_headers) OVERRIDE;
36 virtual void OnBeforeRedirect(net::URLRequest* request,
37 const GURL& new_location) OVERRIDE;
38 virtual void OnResponseStarted(net::URLRequest* request) OVERRIDE;
39 virtual void OnRawBytesRead(const net::URLRequest& request,
40 int bytes_read) OVERRIDE;
41 virtual void OnCompleted(net::URLRequest* request, bool started) OVERRIDE;
42 virtual void OnURLRequestDestroyed(net::URLRequest* request) OVERRIDE;
43 virtual void OnPACScriptError(int line_number,
44 const string16& error) OVERRIDE;
45 virtual AuthRequiredResponse OnAuthRequired(
46 net::URLRequest* request,
47 const net::AuthChallengeInfo& auth_info,
48 const AuthCallback& callback,
49 net::AuthCredentials* credentials) OVERRIDE;
50 virtual bool CanGetCookies(
51 const net::URLRequest* request,
52 const net::CookieList& cookie_list) OVERRIDE;
53 virtual bool CanSetCookie(const net::URLRequest* request,
54 const std::string& cookie_line,
55 net::CookieOptions* options) OVERRIDE;
56
57 DISALLOW_COPY_AND_ASSIGN(ShellNetworkDelegate);
58 };
59
60 } // namespace content
61
62 #endif // CONTENT_SHELL_SHELL_NETWORK_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/content_shell.gypi ('k') | content/shell/shell_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698