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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 GURL* new_first_party_for_cookies) OVERRIDE; | 53 GURL* new_first_party_for_cookies) OVERRIDE; |
54 virtual void OnReceivedResponse( | 54 virtual void OnReceivedResponse( |
55 const webkit_glue::ResourceResponseInfo& info) OVERRIDE; | 55 const webkit_glue::ResourceResponseInfo& info) OVERRIDE; |
56 virtual void OnDownloadedData(int len, int encoded_data_length) OVERRIDE; | 56 virtual void OnDownloadedData(int len, int encoded_data_length) OVERRIDE; |
57 virtual void OnReceivedData(const char* data, | 57 virtual void OnReceivedData(const char* data, |
58 int data_length, | 58 int data_length, |
59 int encoded_data_length) OVERRIDE; | 59 int encoded_data_length) OVERRIDE; |
60 virtual void OnCompletedRequest( | 60 virtual void OnCompletedRequest( |
61 int error_code, | 61 int error_code, |
62 bool was_ignored_by_handler, | 62 bool was_ignored_by_handler, |
| 63 bool stale_copy_in_cache, |
63 const std::string& security_info, | 64 const std::string& security_info, |
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_; |
74 int64 data_offset_; | 75 int64 data_offset_; |
75 bool pending_failure_notification_; | 76 bool pending_failure_notification_; |
76 | 77 |
77 scoped_ptr<webkit_glue::MultipartResponseDelegate> multipart_delegate_; | 78 scoped_ptr<webkit_glue::MultipartResponseDelegate> multipart_delegate_; |
78 | 79 |
79 scoped_ptr<webkit_glue::ResourceLoaderBridge> bridge_; | 80 scoped_ptr<webkit_glue::ResourceLoaderBridge> bridge_; |
80 | 81 |
81 DISALLOW_COPY_AND_ASSIGN(PluginURLFetcher); | 82 DISALLOW_COPY_AND_ASSIGN(PluginURLFetcher); |
82 }; | 83 }; |
83 | 84 |
84 } // namespace content | 85 } // namespace content |
85 | 86 |
86 #endif // CONTENT_CHILD_NPAPI_URL_FETCHER_H_ | 87 #endif // CONTENT_CHILD_NPAPI_URL_FETCHER_H_ |
OLD | NEW |