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

Side by Side Diff: content/child/npapi/plugin_url_fetcher.h

Issue 1103813002: Make WebURLLoader capable of retaining received buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « chrome/renderer/security_filter_peer.cc ('k') | content/child/npapi/plugin_url_fetcher.cc » ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 CONTENT_CHILD_NPAPI_PLUGIN_URL_FETCHER_H_ 5 #ifndef CONTENT_CHILD_NPAPI_PLUGIN_URL_FETCHER_H_
6 #define CONTENT_CHILD_NPAPI_PLUGIN_URL_FETCHER_H_ 6 #define CONTENT_CHILD_NPAPI_PLUGIN_URL_FETCHER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 bool copy_stream_data() { return copy_stream_data_; } 50 bool copy_stream_data() { return copy_stream_data_; }
51 bool pending_failure_notification() { return pending_failure_notification_; } 51 bool pending_failure_notification() { return pending_failure_notification_; }
52 52
53 private: 53 private:
54 // RequestPeer implementation: 54 // RequestPeer implementation:
55 void OnUploadProgress(uint64 position, uint64 size) override; 55 void OnUploadProgress(uint64 position, uint64 size) override;
56 bool OnReceivedRedirect(const net::RedirectInfo& redirect_info, 56 bool OnReceivedRedirect(const net::RedirectInfo& redirect_info,
57 const ResourceResponseInfo& info) override; 57 const ResourceResponseInfo& info) override;
58 void OnReceivedResponse(const ResourceResponseInfo& info) override; 58 void OnReceivedResponse(const ResourceResponseInfo& info) override;
59 void OnDownloadedData(int len, int encoded_data_length) override; 59 void OnDownloadedData(int len, int encoded_data_length) override;
60 void OnReceivedData(const char* data, 60 void OnReceivedData(scoped_ptr<ReceivedData> data) override;
61 int data_length,
62 int encoded_data_length) override;
63 void OnCompletedRequest(int error_code, 61 void OnCompletedRequest(int error_code,
64 bool was_ignored_by_handler, 62 bool was_ignored_by_handler,
65 bool stale_copy_in_cache, 63 bool stale_copy_in_cache,
66 const std::string& security_info, 64 const std::string& security_info,
67 const base::TimeTicks& completion_time, 65 const base::TimeTicks& completion_time,
68 int64 total_transfer_size) override; 66 int64 total_transfer_size) override;
69 67
70 // |plugin_stream_| becomes NULL after Cancel() to ensure no further calls 68 // |plugin_stream_| becomes NULL after Cancel() to ensure no further calls
71 // |reach it. 69 // |reach it.
72 PluginStreamUrl* plugin_stream_; 70 PluginStreamUrl* plugin_stream_;
(...skipping 12 matching lines...) Expand all
85 int request_id_; 83 int request_id_;
86 84
87 scoped_ptr<MultipartResponseDelegate> multipart_delegate_; 85 scoped_ptr<MultipartResponseDelegate> multipart_delegate_;
88 86
89 DISALLOW_COPY_AND_ASSIGN(PluginURLFetcher); 87 DISALLOW_COPY_AND_ASSIGN(PluginURLFetcher);
90 }; 88 };
91 89
92 } // namespace content 90 } // namespace content
93 91
94 #endif // CONTENT_CHILD_NPAPI_PLUGIN_URL_FETCHER_H_ 92 #endif // CONTENT_CHILD_NPAPI_PLUGIN_URL_FETCHER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/security_filter_peer.cc ('k') | content/child/npapi/plugin_url_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698