OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include "content/renderer/pepper/url_response_info_util.h" | 5 #include "content/renderer/pepper/url_response_info_util.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "content/renderer/pepper/ppb_file_ref_impl.h" |
8 #include "ppapi/shared_impl/url_response_info_data.h" | 9 #include "ppapi/shared_impl/url_response_info_data.h" |
9 #include "third_party/WebKit/public/platform/WebCString.h" | 10 #include "third_party/WebKit/public/platform/WebCString.h" |
10 #include "third_party/WebKit/public/platform/WebHTTPHeaderVisitor.h" | 11 #include "third_party/WebKit/public/platform/WebHTTPHeaderVisitor.h" |
11 #include "third_party/WebKit/public/platform/WebString.h" | 12 #include "third_party/WebKit/public/platform/WebString.h" |
12 #include "third_party/WebKit/public/platform/WebURL.h" | 13 #include "third_party/WebKit/public/platform/WebURL.h" |
13 #include "third_party/WebKit/public/platform/WebURLResponse.h" | 14 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
14 #include "webkit/plugins/ppapi/ppb_file_ref_impl.h" | |
15 | 15 |
16 using webkit::ppapi::PPB_FileRef_Impl; | 16 using webkit::ppapi::PPB_FileRef_Impl; |
17 using WebKit::WebHTTPHeaderVisitor; | 17 using WebKit::WebHTTPHeaderVisitor; |
18 using WebKit::WebString; | 18 using WebKit::WebString; |
19 using WebKit::WebURLResponse; | 19 using WebKit::WebURLResponse; |
20 | 20 |
21 namespace content { | 21 namespace content { |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 pp_instance, | 68 pp_instance, |
69 base::FilePath::FromUTF16Unsafe(file_path), | 69 base::FilePath::FromUTF16Unsafe(file_path), |
70 std::string())); | 70 std::string())); |
71 data.body_as_file_ref = file_ref->GetCreateInfo(); | 71 data.body_as_file_ref = file_ref->GetCreateInfo(); |
72 file_ref->GetReference(); // The returned data has one ref for the plugin. | 72 file_ref->GetReference(); // The returned data has one ref for the plugin. |
73 } | 73 } |
74 return data; | 74 return data; |
75 } | 75 } |
76 | 76 |
77 } // namespace content | 77 } // namespace content |
OLD | NEW |