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

Side by Side Diff: content/renderer/npapi/webplugin_impl.cc

Issue 384273003: Move multipart_response_delegate.* from webkit/ to content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android_webview fix Created 6 years, 5 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
« no previous file with comments | « content/renderer/npapi/webplugin_impl.h ('k') | webkit/child/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "content/renderer/npapi/webplugin_impl.h" 5 #include "content/renderer/npapi/webplugin_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/debug/crash_logging.h" 9 #include "base/debug/crash_logging.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/memory/linked_ptr.h" 11 #include "base/memory/linked_ptr.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/metrics/user_metrics_action.h" 13 #include "base/metrics/user_metrics_action.h"
14 #include "base/strings/string_util.h" 14 #include "base/strings/string_util.h"
15 #include "base/strings/stringprintf.h" 15 #include "base/strings/stringprintf.h"
16 #include "base/strings/utf_string_conversions.h" 16 #include "base/strings/utf_string_conversions.h"
17 #include "cc/layers/io_surface_layer.h" 17 #include "cc/layers/io_surface_layer.h"
18 #include "content/child/appcache/web_application_cache_host_impl.h" 18 #include "content/child/appcache/web_application_cache_host_impl.h"
19 #include "content/child/multipart_response_delegate.h"
19 #include "content/child/npapi/plugin_host.h" 20 #include "content/child/npapi/plugin_host.h"
20 #include "content/child/npapi/plugin_instance.h" 21 #include "content/child/npapi/plugin_instance.h"
21 #include "content/child/npapi/webplugin_delegate_impl.h" 22 #include "content/child/npapi/webplugin_delegate_impl.h"
22 #include "content/child/npapi/webplugin_resource_client.h" 23 #include "content/child/npapi/webplugin_resource_client.h"
23 #include "content/common/view_messages.h" 24 #include "content/common/view_messages.h"
24 #include "content/public/common/content_constants.h" 25 #include "content/public/common/content_constants.h"
25 #include "content/public/common/content_switches.h" 26 #include "content/public/common/content_switches.h"
26 #include "content/public/renderer/content_renderer_client.h" 27 #include "content/public/renderer/content_renderer_client.h"
27 #include "content/renderer/compositor_bindings/web_layer_impl.h" 28 #include "content/renderer/compositor_bindings/web_layer_impl.h"
28 #include "content/renderer/npapi/webplugin_delegate_proxy.h" 29 #include "content/renderer/npapi/webplugin_delegate_proxy.h"
(...skipping 21 matching lines...) Expand all
50 #include "third_party/WebKit/public/web/WebFrame.h" 51 #include "third_party/WebKit/public/web/WebFrame.h"
51 #include "third_party/WebKit/public/web/WebInputEvent.h" 52 #include "third_party/WebKit/public/web/WebInputEvent.h"
52 #include "third_party/WebKit/public/web/WebKit.h" 53 #include "third_party/WebKit/public/web/WebKit.h"
53 #include "third_party/WebKit/public/web/WebPluginContainer.h" 54 #include "third_party/WebKit/public/web/WebPluginContainer.h"
54 #include "third_party/WebKit/public/web/WebPluginParams.h" 55 #include "third_party/WebKit/public/web/WebPluginParams.h"
55 #include "third_party/WebKit/public/web/WebURLLoaderOptions.h" 56 #include "third_party/WebKit/public/web/WebURLLoaderOptions.h"
56 #include "third_party/WebKit/public/web/WebView.h" 57 #include "third_party/WebKit/public/web/WebView.h"
57 #include "ui/gfx/rect.h" 58 #include "ui/gfx/rect.h"
58 #include "url/gurl.h" 59 #include "url/gurl.h"
59 #include "url/url_util.h" 60 #include "url/url_util.h"
60 #include "webkit/child/multipart_response_delegate.h"
61 61
62 using blink::WebCString;
62 using blink::WebCanvas; 63 using blink::WebCanvas;
63 using blink::WebConsoleMessage; 64 using blink::WebConsoleMessage;
64 using blink::WebCookieJar; 65 using blink::WebCookieJar;
65 using blink::WebCString;
66 using blink::WebCursorInfo; 66 using blink::WebCursorInfo;
67 using blink::WebData; 67 using blink::WebData;
68 using blink::WebDataSource; 68 using blink::WebDataSource;
69 using blink::WebFrame; 69 using blink::WebFrame;
70 using blink::WebHTTPBody; 70 using blink::WebHTTPBody;
71 using blink::WebHTTPHeaderVisitor; 71 using blink::WebHTTPHeaderVisitor;
72 using blink::WebInputEvent; 72 using blink::WebInputEvent;
73 using blink::WebKeyboardEvent; 73 using blink::WebKeyboardEvent;
74 using blink::WebMouseEvent; 74 using blink::WebMouseEvent;
75 using blink::WebPluginContainer; 75 using blink::WebPluginContainer;
76 using blink::WebPluginParams; 76 using blink::WebPluginParams;
77 using blink::WebRect; 77 using blink::WebRect;
78 using blink::WebString; 78 using blink::WebString;
79 using blink::WebURL; 79 using blink::WebURL;
80 using blink::WebURLError; 80 using blink::WebURLError;
81 using blink::WebURLLoader; 81 using blink::WebURLLoader;
82 using blink::WebURLLoaderClient; 82 using blink::WebURLLoaderClient;
83 using blink::WebURLLoaderOptions; 83 using blink::WebURLLoaderOptions;
84 using blink::WebURLRequest; 84 using blink::WebURLRequest;
85 using blink::WebURLResponse; 85 using blink::WebURLResponse;
86 using blink::WebVector; 86 using blink::WebVector;
87 using blink::WebView; 87 using blink::WebView;
88 using webkit_glue::MultipartResponseDelegate;
89 88
90 namespace content { 89 namespace content {
91 90
92 namespace { 91 namespace {
93 92
94 // This class handles individual multipart responses. It is instantiated when 93 // This class handles individual multipart responses. It is instantiated when
95 // we receive HTTP status code 206 in the HTTP response. This indicates 94 // we receive HTTP status code 206 in the HTTP response. This indicates
96 // that the response could have multiple parts each separated by a boundary 95 // that the response could have multiple parts each separated by a boundary
97 // specified in the response header. 96 // specified in the response header.
98 class MultiPartResponseClient : public WebURLLoaderClient { 97 class MultiPartResponseClient : public WebURLLoaderClient {
(...skipping 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after
1523 case PLUGIN_SRC: 1522 case PLUGIN_SRC:
1524 webframe_->setReferrerForRequest(*request, plugin_url_); 1523 webframe_->setReferrerForRequest(*request, plugin_url_);
1525 break; 1524 break;
1526 1525
1527 default: 1526 default:
1528 break; 1527 break;
1529 } 1528 }
1530 } 1529 }
1531 1530
1532 } // namespace content 1531 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/npapi/webplugin_impl.h ('k') | webkit/child/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698