OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "chrome/plugin/chrome_plugin_host.h" | 5 #include "chrome/plugin/chrome_plugin_host.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "chrome/common/chrome_constants.h" | 10 #include "chrome/common/chrome_constants.h" |
11 #include "chrome/common/chrome_plugin_lib.h" | 11 #include "chrome/common/chrome_plugin_lib.h" |
12 #include "chrome/common/chrome_plugin_util.h" | 12 #include "chrome/common/chrome_plugin_util.h" |
13 #include "chrome/common/chrome_switches.h" | 13 #include "chrome/common/chrome_switches.h" |
14 #include "chrome/common/plugin_messages.h" | 14 #include "chrome/common/plugin_messages.h" |
15 #include "chrome/plugin/plugin_process.h" | 15 #include "chrome/plugin/plugin_process.h" |
16 #include "chrome/plugin/plugin_thread.h" | 16 #include "chrome/plugin/plugin_thread.h" |
17 #include "chrome/plugin/webplugin_proxy.h" | 17 #include "chrome/plugin/webplugin_proxy.h" |
18 #include "net/base/data_url.h" | 18 #include "net/base/data_url.h" |
| 19 #include "net/base/upload_data.h" |
19 #include "webkit/glue/plugins/plugin_instance.h" | 20 #include "webkit/glue/plugins/plugin_instance.h" |
20 #include "webkit/glue/resource_loader_bridge.h" | 21 #include "webkit/glue/resource_loader_bridge.h" |
21 #include "webkit/glue/resource_type.h" | 22 #include "webkit/glue/resource_type.h" |
22 #include "webkit/glue/webkit_glue.h" | 23 #include "webkit/glue/webkit_glue.h" |
23 | 24 |
24 namespace { | 25 namespace { |
25 | 26 |
26 using webkit_glue::ResourceLoaderBridge; | 27 using webkit_glue::ResourceLoaderBridge; |
27 | 28 |
28 // This class manages a network request made by the plugin, handling the | 29 // This class manages a network request made by the plugin, handling the |
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
607 response_funcs.size = sizeof(response_funcs); | 608 response_funcs.size = sizeof(response_funcs); |
608 response_funcs.received_redirect = CPRR_ReceivedRedirect; | 609 response_funcs.received_redirect = CPRR_ReceivedRedirect; |
609 response_funcs.start_completed = CPRR_StartCompleted; | 610 response_funcs.start_completed = CPRR_StartCompleted; |
610 response_funcs.read_completed = CPRR_ReadCompleted; | 611 response_funcs.read_completed = CPRR_ReadCompleted; |
611 response_funcs.upload_progress = CPRR_UploadProgress; | 612 response_funcs.upload_progress = CPRR_UploadProgress; |
612 } | 613 } |
613 | 614 |
614 return &browser_funcs; | 615 return &browser_funcs; |
615 } | 616 } |
616 | 617 |
OLD | NEW |