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" |
(...skipping 15 matching lines...) Expand all Loading... |
26 const GURL& url, | 26 const GURL& url, |
27 const GURL& first_party_for_cookies, | 27 const GURL& first_party_for_cookies, |
28 const std::string& method, | 28 const std::string& method, |
29 const char* buf, | 29 const char* buf, |
30 unsigned int len, | 30 unsigned int len, |
31 const GURL& referrer, | 31 const GURL& referrer, |
32 bool notify_redirects, | 32 bool notify_redirects, |
33 bool is_plugin_src_load, | 33 bool is_plugin_src_load, |
34 int origin_pid, | 34 int origin_pid, |
35 int render_frame_id, | 35 int render_frame_id, |
36 unsigned long resource_id); | 36 unsigned long resource_id, |
| 37 bool copy_stream_data); |
37 virtual ~PluginURLFetcher(); | 38 virtual ~PluginURLFetcher(); |
38 | 39 |
39 // Cancels the current request. | 40 // Cancels the current request. |
40 void Cancel(); | 41 void Cancel(); |
41 | 42 |
42 // Called with the plugin's reply to NPP_URLRedirectNotify. | 43 // Called with the plugin's reply to NPP_URLRedirectNotify. |
43 void URLRedirectResponse(bool allow); | 44 void URLRedirectResponse(bool allow); |
44 | 45 |
45 bool pending_failure_notification() { return pending_failure_notification_; } | 46 bool pending_failure_notification() { return pending_failure_notification_; } |
46 | 47 |
(...skipping 17 matching lines...) Expand all Loading... |
64 const base::TimeTicks& completion_time) OVERRIDE; | 65 const base::TimeTicks& completion_time) OVERRIDE; |
65 | 66 |
66 PluginStreamUrl* plugin_stream_; | 67 PluginStreamUrl* plugin_stream_; |
67 GURL url_; | 68 GURL url_; |
68 GURL first_party_for_cookies_; | 69 GURL first_party_for_cookies_; |
69 std::string method_; | 70 std::string method_; |
70 GURL referrer_; | 71 GURL referrer_; |
71 bool notify_redirects_; | 72 bool notify_redirects_; |
72 bool is_plugin_src_load_; | 73 bool is_plugin_src_load_; |
73 unsigned long resource_id_; | 74 unsigned long resource_id_; |
| 75 bool copy_stream_data_; |
74 int64 data_offset_; | 76 int64 data_offset_; |
75 bool pending_failure_notification_; | 77 bool pending_failure_notification_; |
76 | 78 |
77 scoped_ptr<webkit_glue::MultipartResponseDelegate> multipart_delegate_; | 79 scoped_ptr<webkit_glue::MultipartResponseDelegate> multipart_delegate_; |
78 | 80 |
79 scoped_ptr<webkit_glue::ResourceLoaderBridge> bridge_; | 81 scoped_ptr<webkit_glue::ResourceLoaderBridge> bridge_; |
80 | 82 |
81 DISALLOW_COPY_AND_ASSIGN(PluginURLFetcher); | 83 DISALLOW_COPY_AND_ASSIGN(PluginURLFetcher); |
82 }; | 84 }; |
83 | 85 |
84 } // namespace content | 86 } // namespace content |
85 | 87 |
86 #endif // CONTENT_CHILD_NPAPI_URL_FETCHER_H_ | 88 #endif // CONTENT_CHILD_NPAPI_URL_FETCHER_H_ |
OLD | NEW |