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/bind.h" | 7 #include "base/bind.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "content/public/renderer/renderer_ppapi_host.h" | 10 #include "content/public/renderer/renderer_ppapi_host.h" |
11 #include "content/renderer/pepper/pepper_file_ref_renderer_host.h" | 11 #include "content/renderer/pepper/pepper_file_ref_renderer_host.h" |
12 #include "content/renderer/pepper/renderer_ppapi_host_impl.h" | 12 #include "content/renderer/pepper/renderer_ppapi_host_impl.h" |
13 #include "ipc/ipc_message.h" | 13 #include "ipc/ipc_message.h" |
14 #include "ppapi/proxy/ppapi_messages.h" | 14 #include "ppapi/proxy/ppapi_messages.h" |
15 #include "ppapi/shared_impl/url_response_info_data.h" | 15 #include "ppapi/shared_impl/url_response_info_data.h" |
16 #include "third_party/WebKit/public/platform/WebCString.h" | 16 #include "third_party/WebKit/public/platform/WebCString.h" |
17 #include "third_party/WebKit/public/platform/WebHTTPHeaderVisitor.h" | 17 #include "third_party/WebKit/public/platform/WebHTTPHeaderVisitor.h" |
18 #include "third_party/WebKit/public/platform/WebString.h" | 18 #include "third_party/WebKit/public/platform/WebString.h" |
19 #include "third_party/WebKit/public/platform/WebURL.h" | 19 #include "third_party/WebKit/public/platform/WebURL.h" |
20 #include "third_party/WebKit/public/platform/WebURLResponse.h" | 20 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
21 | 21 |
22 using WebKit::WebHTTPHeaderVisitor; | 22 using blink::WebHTTPHeaderVisitor; |
23 using WebKit::WebString; | 23 using blink::WebString; |
24 using WebKit::WebURLResponse; | 24 using blink::WebURLResponse; |
25 | 25 |
26 namespace content { | 26 namespace content { |
27 | 27 |
28 namespace { | 28 namespace { |
29 | 29 |
30 class HeaderFlattener : public WebHTTPHeaderVisitor { | 30 class HeaderFlattener : public WebHTTPHeaderVisitor { |
31 public: | 31 public: |
32 const std::string& buffer() const { return buffer_; } | 32 const std::string& buffer() const { return buffer_; } |
33 | 33 |
34 virtual void visitHeader(const WebString& name, const WebString& value) { | 34 virtual void visitHeader(const WebString& name, const WebString& value) { |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 renderer_pending_host_id, | 109 renderer_pending_host_id, |
110 callback)); | 110 callback)); |
111 } else { | 111 } else { |
112 base::MessageLoop::current()->PostTask( | 112 base::MessageLoop::current()->PostTask( |
113 FROM_HERE, | 113 FROM_HERE, |
114 base::Bind(callback, data)); | 114 base::Bind(callback, data)); |
115 } | 115 } |
116 } | 116 } |
117 | 117 |
118 } // namespace content | 118 } // namespace content |
OLD | NEW |