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

Side by Side Diff: chrome/plugin/chrome_plugin_host.cc

Issue 5961004: Revert 69755 - Move the NPAPI files from webkit/glue/plugins to webkit/plugin... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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 | « chrome/plugin/DEPS ('k') | chrome/plugin/npobject_proxy.cc » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/process_util.h" 11 #include "base/process_util.h"
12 #include "base/utf_string_conversions.h" 12 #include "base/utf_string_conversions.h"
13 #include "base/string_split.h" 13 #include "base/string_split.h"
14 #include "chrome/common/child_process.h" 14 #include "chrome/common/child_process.h"
15 #include "chrome/common/chrome_constants.h" 15 #include "chrome/common/chrome_constants.h"
16 #include "chrome/common/chrome_plugin_lib.h" 16 #include "chrome/common/chrome_plugin_lib.h"
17 #include "chrome/common/chrome_plugin_util.h" 17 #include "chrome/common/chrome_plugin_util.h"
18 #include "chrome/common/chrome_switches.h" 18 #include "chrome/common/chrome_switches.h"
19 #include "chrome/common/plugin_messages.h" 19 #include "chrome/common/plugin_messages.h"
20 #include "chrome/common/resource_dispatcher.h" 20 #include "chrome/common/resource_dispatcher.h"
21 #include "chrome/plugin/plugin_thread.h" 21 #include "chrome/plugin/plugin_thread.h"
22 #include "chrome/plugin/webplugin_proxy.h" 22 #include "chrome/plugin/webplugin_proxy.h"
23 #include "net/base/data_url.h" 23 #include "net/base/data_url.h"
24 #include "net/base/io_buffer.h" 24 #include "net/base/io_buffer.h"
25 #include "net/base/upload_data.h" 25 #include "net/base/upload_data.h"
26 #include "net/http/http_response_headers.h" 26 #include "net/http/http_response_headers.h"
27 #include "webkit/appcache/appcache_interfaces.h" 27 #include "webkit/appcache/appcache_interfaces.h"
28 #include "webkit/plugins/npapi/plugin_instance.h" 28 #include "webkit/glue/plugins/plugin_instance.h"
29 #include "webkit/glue/resource_loader_bridge.h" 29 #include "webkit/glue/resource_loader_bridge.h"
30 #include "webkit/glue/resource_type.h" 30 #include "webkit/glue/resource_type.h"
31 #include "webkit/glue/webkit_glue.h" 31 #include "webkit/glue/webkit_glue.h"
32 32
33 namespace { 33 namespace {
34 34
35 using webkit_glue::ResourceLoaderBridge; 35 using webkit_glue::ResourceLoaderBridge;
36 using webkit_glue::ResourceResponseInfo; 36 using webkit_glue::ResourceResponseInfo;
37 37
38 static MessageLoop* g_plugin_thread_message_loop; 38 static MessageLoop* g_plugin_thread_message_loop;
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 CPError rv = CPB_GetCommandLineArgumentsCommon(url, &arguments_str); 408 CPError rv = CPB_GetCommandLineArgumentsCommon(url, &arguments_str);
409 if (rv == CPERR_SUCCESS) 409 if (rv == CPERR_SUCCESS)
410 *arguments = CPB_StringDup(CPB_Alloc, arguments_str); 410 *arguments = CPB_StringDup(CPB_Alloc, arguments_str);
411 return rv; 411 return rv;
412 } 412 }
413 413
414 CPBrowsingContext STDCALL CPB_GetBrowsingContextFromNPP(NPP npp) { 414 CPBrowsingContext STDCALL CPB_GetBrowsingContextFromNPP(NPP npp) {
415 if (!npp) 415 if (!npp)
416 return CPERR_INVALID_PARAMETER; 416 return CPERR_INVALID_PARAMETER;
417 417
418 webkit::npapi::PluginInstance* instance = 418 NPAPI::PluginInstance* instance =
419 static_cast<webkit::npapi::PluginInstance *>(npp->ndata); 419 static_cast<NPAPI::PluginInstance *>(npp->ndata);
420 WebPluginProxy* webplugin = 420 WebPluginProxy* webplugin =
421 static_cast<WebPluginProxy*>(instance->webplugin()); 421 static_cast<WebPluginProxy*>(instance->webplugin());
422 422
423 return webplugin->GetCPBrowsingContext(); 423 return webplugin->GetCPBrowsingContext();
424 } 424 }
425 425
426 int STDCALL CPB_GetBrowsingContextInfo( 426 int STDCALL CPB_GetBrowsingContextInfo(
427 CPID id, CPBrowsingContext context, CPBrowsingContextInfoType type, 427 CPID id, CPBrowsingContext context, CPBrowsingContextInfoType type,
428 void* buf, uint32 buf_size) { 428 void* buf, uint32 buf_size) {
429 CHECK(ChromePluginLib::IsPluginThread()); 429 CHECK(ChromePluginLib::IsPluginThread());
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 721
722 response_funcs.size = sizeof(response_funcs); 722 response_funcs.size = sizeof(response_funcs);
723 response_funcs.received_redirect = CPRR_ReceivedRedirect; 723 response_funcs.received_redirect = CPRR_ReceivedRedirect;
724 response_funcs.start_completed = CPRR_StartCompleted; 724 response_funcs.start_completed = CPRR_StartCompleted;
725 response_funcs.read_completed = CPRR_ReadCompleted; 725 response_funcs.read_completed = CPRR_ReadCompleted;
726 response_funcs.upload_progress = CPRR_UploadProgress; 726 response_funcs.upload_progress = CPRR_UploadProgress;
727 } 727 }
728 728
729 return &browser_funcs; 729 return &browser_funcs;
730 } 730 }
OLDNEW
« no previous file with comments | « chrome/plugin/DEPS ('k') | chrome/plugin/npobject_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698