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

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

Issue 11231016: Move content's a plugin, ppapi_plugin, utility, and worker subdirectories to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 2 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/plugin_channel.h ('k') | content/plugin/plugin_interpose_util_mac.mm » ('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/plugin/plugin_channel.h" 5 #include "content/plugin/plugin_channel.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/process_util.h" 9 #include "base/process_util.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
11 #include "base/synchronization/lock.h" 11 #include "base/synchronization/lock.h"
12 #include "base/synchronization/waitable_event.h" 12 #include "base/synchronization/waitable_event.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "content/common/child_process.h" 14 #include "content/common/child_process.h"
15 #include "content/common/plugin_messages.h" 15 #include "content/common/plugin_messages.h"
16 #include "content/public/common/content_switches.h" 16 #include "content/public/common/content_switches.h"
17 #include "content/plugin/plugin_thread.h" 17 #include "content/plugin/plugin_thread.h"
18 #include "content/plugin/webplugin_delegate_stub.h" 18 #include "content/plugin/webplugin_delegate_stub.h"
19 #include "content/plugin/webplugin_proxy.h" 19 #include "content/plugin/webplugin_proxy.h"
20 #include "webkit/plugins/npapi/plugin_instance.h" 20 #include "webkit/plugins/npapi/plugin_instance.h"
21 21
22 #if defined(OS_POSIX) 22 #if defined(OS_POSIX)
23 #include "base/eintr_wrapper.h" 23 #include "base/eintr_wrapper.h"
24 #include "ipc/ipc_channel_posix.h" 24 #include "ipc/ipc_channel_posix.h"
25 #endif 25 #endif
26 26
27 namespace content {
28
27 namespace { 29 namespace {
28 30
29 void PluginReleaseCallback() { 31 void PluginReleaseCallback() {
30 ChildProcess::current()->ReleaseProcess(); 32 ChildProcess::current()->ReleaseProcess();
31 } 33 }
32 34
33 // How long we wait before releasing the plugin process. 35 // How long we wait before releasing the plugin process.
34 const int kPluginReleaseTimeMinutes = 5; 36 const int kPluginReleaseTimeMinutes = 5;
35 37
36 } // namespace 38 } // namespace
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 std::string site_name = 311 std::string site_name =
310 site.empty() ? "NULL" 312 site.empty() ? "NULL"
311 : base::StringPrintf("\"%s\"", site_str); 313 : base::StringPrintf("\"%s\"", site_str);
312 VLOG(1) << "NPP_ClearSiteData(" << site_name << ", " << flags << ", " 314 VLOG(1) << "NPP_ClearSiteData(" << site_name << ", " << flags << ", "
313 << max_age << ") returned " << err; 315 << max_age << ") returned " << err;
314 success = (err == NPERR_NO_ERROR); 316 success = (err == NPERR_NO_ERROR);
315 } 317 }
316 } 318 }
317 Send(new PluginHostMsg_ClearSiteDataResult(success)); 319 Send(new PluginHostMsg_ClearSiteDataResult(success));
318 } 320 }
321
322 } // namespace content
OLDNEW
« no previous file with comments | « content/plugin/plugin_channel.h ('k') | content/plugin/plugin_interpose_util_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698