OLD | NEW |
---|---|
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_URL_FETCHER_H_ | 5 #ifndef CONTENT_CHILD_NPAPI_URL_FETCHER_H_ |
6 #define CONTENT_CHILD_NPAPI_URL_FETCHER_H_ | 6 #define CONTENT_CHILD_NPAPI_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" |
11 #include "content/public/child/request_peer.h" | 11 #include "content/public/child/request_peer.h" |
12 #include "url/gurl.h" | 12 #include "url/gurl.h" |
13 | 13 |
14 namespace webkit_glue { | 14 namespace webkit_glue { |
15 class ResourceLoaderBridge; | 15 class ResourceLoaderBridge; |
16 } | 16 } |
17 | 17 |
18 namespace net { | |
19 struct RedirectInfo; | |
mmenke
2014/07/17 16:55:09
Hrm...In most cases, you aren't bothering to forwa
davidben
2014/07/17 22:03:55
Done.
| |
20 } | |
21 | |
18 namespace content { | 22 namespace content { |
19 class MultipartResponseDelegate; | 23 class MultipartResponseDelegate; |
20 class PluginStreamUrl; | 24 class PluginStreamUrl; |
21 | 25 |
22 // Fetches URLS for a plugin using ResourceDispatcher. | 26 // Fetches URLS for a plugin using ResourceDispatcher. |
23 class PluginURLFetcher : public RequestPeer { | 27 class PluginURLFetcher : public RequestPeer { |
24 public: | 28 public: |
25 PluginURLFetcher(PluginStreamUrl* plugin_stream, | 29 PluginURLFetcher(PluginStreamUrl* plugin_stream, |
26 const GURL& url, | 30 const GURL& url, |
27 const GURL& first_party_for_cookies, | 31 const GURL& first_party_for_cookies, |
(...skipping 21 matching lines...) Expand all Loading... | |
49 GURL referrer() { return referrer_; } | 53 GURL referrer() { return referrer_; } |
50 int origin_pid() { return origin_pid_; } | 54 int origin_pid() { return origin_pid_; } |
51 int render_frame_id() { return render_frame_id_; } | 55 int render_frame_id() { return render_frame_id_; } |
52 int render_view_id() { return render_view_id_; } | 56 int render_view_id() { return render_view_id_; } |
53 bool copy_stream_data() { return copy_stream_data_; } | 57 bool copy_stream_data() { return copy_stream_data_; } |
54 bool pending_failure_notification() { return pending_failure_notification_; } | 58 bool pending_failure_notification() { return pending_failure_notification_; } |
55 | 59 |
56 private: | 60 private: |
57 // RequestPeer implementation: | 61 // RequestPeer implementation: |
58 virtual void OnUploadProgress(uint64 position, uint64 size) OVERRIDE; | 62 virtual void OnUploadProgress(uint64 position, uint64 size) OVERRIDE; |
59 virtual bool OnReceivedRedirect(const GURL& new_url, | 63 virtual bool OnReceivedRedirect(const net::RedirectInfo& redirect_info, |
60 const GURL& new_first_party_for_cookies, | |
61 const ResourceResponseInfo& info) OVERRIDE; | 64 const ResourceResponseInfo& info) OVERRIDE; |
62 virtual void OnReceivedResponse(const ResourceResponseInfo& info) OVERRIDE; | 65 virtual void OnReceivedResponse(const ResourceResponseInfo& info) OVERRIDE; |
63 virtual void OnDownloadedData(int len, int encoded_data_length) OVERRIDE; | 66 virtual void OnDownloadedData(int len, int encoded_data_length) OVERRIDE; |
64 virtual void OnReceivedData(const char* data, | 67 virtual void OnReceivedData(const char* data, |
65 int data_length, | 68 int data_length, |
66 int encoded_data_length) OVERRIDE; | 69 int encoded_data_length) OVERRIDE; |
67 virtual void OnCompletedRequest(int error_code, | 70 virtual void OnCompletedRequest(int error_code, |
68 bool was_ignored_by_handler, | 71 bool was_ignored_by_handler, |
69 bool stale_copy_in_cache, | 72 bool stale_copy_in_cache, |
70 const std::string& security_info, | 73 const std::string& security_info, |
(...skipping 20 matching lines...) Expand all Loading... | |
91 scoped_ptr<MultipartResponseDelegate> multipart_delegate_; | 94 scoped_ptr<MultipartResponseDelegate> multipart_delegate_; |
92 | 95 |
93 scoped_ptr<webkit_glue::ResourceLoaderBridge> bridge_; | 96 scoped_ptr<webkit_glue::ResourceLoaderBridge> bridge_; |
94 | 97 |
95 DISALLOW_COPY_AND_ASSIGN(PluginURLFetcher); | 98 DISALLOW_COPY_AND_ASSIGN(PluginURLFetcher); |
96 }; | 99 }; |
97 | 100 |
98 } // namespace content | 101 } // namespace content |
99 | 102 |
100 #endif // CONTENT_CHILD_NPAPI_URL_FETCHER_H_ | 103 #endif // CONTENT_CHILD_NPAPI_URL_FETCHER_H_ |
OLD | NEW |