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 MultipartResponseDelegate; | 15 class MultipartResponseDelegate; |
| 16 class ResourceLoaderBridge; |
16 } | 17 } |
17 | 18 |
18 namespace content { | 19 namespace content { |
19 class PluginStreamUrl; | 20 class PluginStreamUrl; |
20 | 21 |
21 // Fetches URLS for a plugin using ResourceDispatcher. | 22 // Fetches URLS for a plugin using ResourceDispatcher. |
22 class PluginURLFetcher : public RequestPeer { | 23 class PluginURLFetcher : public RequestPeer { |
23 public: | 24 public: |
24 PluginURLFetcher(PluginStreamUrl* plugin_stream, | 25 PluginURLFetcher(PluginStreamUrl* plugin_stream, |
25 const GURL& url, | 26 const GURL& url, |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 GURL referrer_; | 82 GURL referrer_; |
82 bool notify_redirects_; | 83 bool notify_redirects_; |
83 bool is_plugin_src_load_; | 84 bool is_plugin_src_load_; |
84 int origin_pid_; | 85 int origin_pid_; |
85 int render_frame_id_; | 86 int render_frame_id_; |
86 int render_view_id_; | 87 int render_view_id_; |
87 unsigned long resource_id_; | 88 unsigned long resource_id_; |
88 bool copy_stream_data_; | 89 bool copy_stream_data_; |
89 int64 data_offset_; | 90 int64 data_offset_; |
90 bool pending_failure_notification_; | 91 bool pending_failure_notification_; |
91 int request_id_; | |
92 | 92 |
93 scoped_ptr<webkit_glue::MultipartResponseDelegate> multipart_delegate_; | 93 scoped_ptr<webkit_glue::MultipartResponseDelegate> multipart_delegate_; |
94 | 94 |
| 95 scoped_ptr<webkit_glue::ResourceLoaderBridge> bridge_; |
| 96 |
95 DISALLOW_COPY_AND_ASSIGN(PluginURLFetcher); | 97 DISALLOW_COPY_AND_ASSIGN(PluginURLFetcher); |
96 }; | 98 }; |
97 | 99 |
98 } // namespace content | 100 } // namespace content |
99 | 101 |
100 #endif // CONTENT_CHILD_NPAPI_URL_FETCHER_H_ | 102 #endif // CONTENT_CHILD_NPAPI_URL_FETCHER_H_ |
OLD | NEW |