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

Side by Side Diff: content/plugin/npobject_util.cc

Issue 6672048: Move plugin code to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 9 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/plugin/npobject_util.h ('k') | content/plugin/plugin_channel.h » ('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/npobject_util.h" 5 #include "content/plugin/npobject_util.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "chrome/plugin/npobject_proxy.h"
9 #include "chrome/plugin/plugin_channel_base.h"
10 #include "content/common/plugin_messages.h" 8 #include "content/common/plugin_messages.h"
9 #include "content/plugin/npobject_proxy.h"
10 #include "content/plugin/plugin_channel_base.h"
11 #include "third_party/npapi/bindings/nphostapi.h" 11 #include "third_party/npapi/bindings/nphostapi.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h"
13 #include "webkit/plugins/npapi/plugin_host.h" 13 #include "webkit/plugins/npapi/plugin_host.h"
14 #include "webkit/glue/webkit_glue.h" 14 #include "webkit/glue/webkit_glue.h"
15 15
16 using WebKit::WebBindings; 16 using WebKit::WebBindings;
17 17
18 // true if the current process is a plugin process, false if it's a renderer 18 // true if the current process is a plugin process, false if it's a renderer
19 // process. 19 // process.
20 static bool g_plugin_process; 20 static bool g_plugin_process;
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 result->type = NPVariantType_Object; 264 result->type = NPVariantType_Object;
265 result->value.objectValue = npobject_base->GetUnderlyingNPObject(); 265 result->value.objectValue = npobject_base->GetUnderlyingNPObject();
266 WebBindings::retainObject(result->value.objectValue); 266 WebBindings::retainObject(result->value.objectValue);
267 break; 267 break;
268 } 268 }
269 default: 269 default:
270 NOTREACHED(); 270 NOTREACHED();
271 } 271 }
272 return true; 272 return true;
273 } 273 }
OLDNEW
« no previous file with comments | « content/plugin/npobject_util.h ('k') | content/plugin/plugin_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698