OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "webkit/plugins/ppapi/url_response_info_util.h" | 5 #include "webkit/plugins/ppapi/url_response_info_util.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "third_party/WebKit/public/platform/WebHTTPHeaderVisitor.h" | 8 #include "third_party/WebKit/public/platform/WebHTTPHeaderVisitor.h" |
9 #include "third_party/WebKit/public/platform/WebString.h" | 9 #include "third_party/WebKit/public/platform/WebString.h" |
10 #include "third_party/WebKit/public/platform/WebURL.h" | 10 #include "third_party/WebKit/public/platform/WebURL.h" |
11 #include "third_party/WebKit/public/platform/WebURLResponse.h" | 11 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
12 #include "webkit/base/file_path_string_conversions.h" | 12 #include "webkit/common/base/file_path_string_conversions.h" |
13 #include "webkit/plugins/ppapi/ppb_file_ref_impl.h" | 13 #include "webkit/plugins/ppapi/ppb_file_ref_impl.h" |
14 #include "webkit/glue/webkit_glue.h" | 14 #include "webkit/glue/webkit_glue.h" |
15 | 15 |
16 using WebKit::WebHTTPHeaderVisitor; | 16 using WebKit::WebHTTPHeaderVisitor; |
17 using WebKit::WebString; | 17 using WebKit::WebString; |
18 using WebKit::WebURLResponse; | 18 using WebKit::WebURLResponse; |
19 | 19 |
20 namespace webkit { | 20 namespace webkit { |
21 namespace ppapi { | 21 namespace ppapi { |
22 | 22 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 webkit_base::WebStringToFilePath(file_path), | 69 webkit_base::WebStringToFilePath(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 ppapi | 77 } // namespace ppapi |
78 } // namespace webkit | 78 } // namespace webkit |
OLD | NEW |