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

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

Issue 23830007: Support byte range requests when routing resource requests directly through the browser process. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
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_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 "url/gurl.h" 11 #include "url/gurl.h"
12 #include "webkit/child/resource_loader_bridge.h" 12 #include "webkit/child/resource_loader_bridge.h"
13 13
14 namespace webkit_glue { 14 namespace webkit_glue {
15 class MultipartResponseDelegate;
15 class ResourceLoaderBridge; 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 webkit_glue::ResourceLoaderBridge::Peer { 23 class PluginURLFetcher : public webkit_glue::ResourceLoaderBridge::Peer {
23 public: 24 public:
24 PluginURLFetcher(PluginStreamUrl* plugin_stream, 25 PluginURLFetcher(PluginStreamUrl* plugin_stream,
25 const GURL& url, 26 const GURL& url,
26 const GURL& first_party_for_cookies, 27 const GURL& first_party_for_cookies,
27 const std::string& method, 28 const std::string& method,
28 const std::string& post_data, 29 const char* buf,
30 unsigned int len,
29 const GURL& referrer, 31 const GURL& referrer,
30 bool notify_redirects, 32 bool notify_redirects,
31 bool is_plugin_src_load, 33 bool is_plugin_src_load,
32 int origin_pid, 34 int origin_pid,
33 int render_view_id, 35 int render_view_id,
34 unsigned long resource_id); 36 unsigned long resource_id);
35 virtual ~PluginURLFetcher(); 37 virtual ~PluginURLFetcher();
36 38
37 // Cancels the current request. 39 // Cancels the current request.
38 void Cancel(); 40 void Cancel();
(...skipping 17 matching lines...) Expand all
56 virtual void OnCompletedRequest( 58 virtual void OnCompletedRequest(
57 int error_code, 59 int error_code,
58 bool was_ignored_by_handler, 60 bool was_ignored_by_handler,
59 const std::string& security_info, 61 const std::string& security_info,
60 const base::TimeTicks& completion_time) OVERRIDE; 62 const base::TimeTicks& completion_time) OVERRIDE;
61 63
62 PluginStreamUrl* plugin_stream_; 64 PluginStreamUrl* plugin_stream_;
63 GURL url_; 65 GURL url_;
64 GURL first_party_for_cookies_; 66 GURL first_party_for_cookies_;
65 std::string method_; 67 std::string method_;
66 std::string post_data_;
67 GURL referrer_; 68 GURL referrer_;
68 bool notify_redirects_; 69 bool notify_redirects_;
69 bool is_plugin_src_load_; 70 bool is_plugin_src_load_;
70 unsigned long resource_id_; 71 unsigned long resource_id_;
71 int data_offset_; 72 int64 data_offset_;
73
74 scoped_ptr<webkit_glue::MultipartResponseDelegate> multipart_delegate_;
72 75
73 scoped_ptr<webkit_glue::ResourceLoaderBridge> bridge_; 76 scoped_ptr<webkit_glue::ResourceLoaderBridge> bridge_;
74 77
75 DISALLOW_COPY_AND_ASSIGN(PluginURLFetcher); 78 DISALLOW_COPY_AND_ASSIGN(PluginURLFetcher);
76 }; 79 };
77 80
78 } // namespace content 81 } // namespace content
79 82
80 #endif // CONTENT_CHILD_NPAPI_URL_FETCHER_H_ 83 #endif // CONTENT_CHILD_NPAPI_URL_FETCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698