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