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

Side by Side Diff: Source/core/fetch/RawResource.h

Issue 126753002: Update the ResourceRequest in DocumentLoader after the embedder modified it (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: updates Created 6 years, 11 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 | « no previous file | Source/core/fetch/RawResource.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de)
3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> 3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org>
4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
5 Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 5 Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
6 6
7 This library is free software; you can redistribute it and/or 7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public 8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either 9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version. 10 version 2 of the License, or (at your option) any later version.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 virtual bool canReuse(const ResourceRequest&) const; 44 virtual bool canReuse(const ResourceRequest&) const;
45 45
46 private: 46 private:
47 virtual void didAddClient(ResourceClient*); 47 virtual void didAddClient(ResourceClient*);
48 virtual void appendData(const char*, int) OVERRIDE; 48 virtual void appendData(const char*, int) OVERRIDE;
49 49
50 virtual bool shouldIgnoreHTTPStatusCodeErrors() const { return true; } 50 virtual bool shouldIgnoreHTTPStatusCodeErrors() const { return true; }
51 51
52 virtual void willSendRequest(ResourceRequest&, const ResourceResponse&); 52 virtual void willSendRequest(ResourceRequest&, const ResourceResponse&);
53 virtual void updateRequest(const ResourceRequest&);
53 virtual void responseReceived(const ResourceResponse&); 54 virtual void responseReceived(const ResourceResponse&);
54 virtual void didSendData(unsigned long long bytesSent, unsigned long long to talBytesToBeSent); 55 virtual void didSendData(unsigned long long bytesSent, unsigned long long to talBytesToBeSent);
55 virtual void didDownloadData(int); 56 virtual void didDownloadData(int);
56 57
57 struct RedirectPair { 58 struct RedirectPair {
58 public: 59 public:
59 explicit RedirectPair(const ResourceRequest& request, const ResourceResp onse& redirectResponse) 60 explicit RedirectPair(const ResourceRequest& request, const ResourceResp onse& redirectResponse)
60 : m_request(request) 61 : m_request(request)
61 , m_redirectResponse(redirectResponse) 62 , m_redirectResponse(redirectResponse)
62 { 63 {
(...skipping 22 matching lines...) Expand all
85 class RawResourceClient : public ResourceClient { 86 class RawResourceClient : public ResourceClient {
86 public: 87 public:
87 virtual ~RawResourceClient() { } 88 virtual ~RawResourceClient() { }
88 static ResourceClientType expectedType() { return RawResourceType; } 89 static ResourceClientType expectedType() { return RawResourceType; }
89 virtual ResourceClientType resourceClientType() const { return expectedType( ); } 90 virtual ResourceClientType resourceClientType() const { return expectedType( ); }
90 91
91 virtual void dataSent(Resource*, unsigned long long /* bytesSent */, unsigne d long long /* totalBytesToBeSent */) { } 92 virtual void dataSent(Resource*, unsigned long long /* bytesSent */, unsigne d long long /* totalBytesToBeSent */) { }
92 virtual void responseReceived(Resource*, const ResourceResponse&) { } 93 virtual void responseReceived(Resource*, const ResourceResponse&) { }
93 virtual void dataReceived(Resource*, const char* /* data */, int /* length * /) { } 94 virtual void dataReceived(Resource*, const char* /* data */, int /* length * /) { }
94 virtual void redirectReceived(Resource*, ResourceRequest&, const ResourceRes ponse&) { } 95 virtual void redirectReceived(Resource*, ResourceRequest&, const ResourceRes ponse&) { }
96 virtual void updateRequest(Resource*, const ResourceRequest&) { }
95 virtual void dataDownloaded(Resource*, int) { } 97 virtual void dataDownloaded(Resource*, int) { }
96 }; 98 };
97 99
98 } 100 }
99 101
100 #endif // RawResource_h 102 #endif // RawResource_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/fetch/RawResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698