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

Side by Side Diff: content/ppapi_plugin/ppapi_thread.cc

Issue 23819033: Simplify PPB_NetworkMonitor proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compilation after r169825 Created 7 years, 3 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/content_browser.gypi ('k') | content/public/common/socket_permission_request.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) 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/ppapi_plugin/ppapi_thread.h" 5 #include "content/ppapi_plugin/ppapi_thread.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/crash_logging.h" 10 #include "base/debug/crash_logging.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 globals->set_command_line( 96 globals->set_command_line(
97 command_line.GetSwitchValueASCII(switches::kPpapiFlashArgs)); 97 command_line.GetSwitchValueASCII(switches::kPpapiFlashArgs));
98 98
99 webkit_platform_support_.reset(new PpapiWebKitPlatformSupportImpl); 99 webkit_platform_support_.reset(new PpapiWebKitPlatformSupportImpl);
100 WebKit::initialize(webkit_platform_support_.get()); 100 WebKit::initialize(webkit_platform_support_.get());
101 101
102 // Register interfaces that expect messages from the browser process. Please 102 // Register interfaces that expect messages from the browser process. Please
103 // note that only those InterfaceProxy-based ones require registration. 103 // note that only those InterfaceProxy-based ones require registration.
104 AddRoute(ppapi::API_ID_PPB_HOSTRESOLVER_PRIVATE, 104 AddRoute(ppapi::API_ID_PPB_HOSTRESOLVER_PRIVATE,
105 &dispatcher_message_listener_); 105 &dispatcher_message_listener_);
106 AddRoute(ppapi::API_ID_PPB_NETWORKMANAGER_PRIVATE,
107 &dispatcher_message_listener_);
108 } 106 }
109 107
110 PpapiThread::~PpapiThread() { 108 PpapiThread::~PpapiThread() {
111 } 109 }
112 110
113 void PpapiThread::Shutdown() { 111 void PpapiThread::Shutdown() {
114 ppapi::proxy::PluginGlobals::Get()->set_plugin_proxy_delegate(NULL); 112 ppapi::proxy::PluginGlobals::Get()->set_plugin_proxy_delegate(NULL);
115 if (plugin_entry_points_.shutdown_module) 113 if (plugin_entry_points_.shutdown_module)
116 plugin_entry_points_.shutdown_module(); 114 plugin_entry_points_.shutdown_module();
117 WebKit::shutdown(); 115 WebKit::shutdown();
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 histogram_name.str(), 495 histogram_name.str(),
498 1, 496 1,
499 LOAD_RESULT_MAX, 497 LOAD_RESULT_MAX,
500 LOAD_RESULT_MAX + 1, 498 LOAD_RESULT_MAX + 1,
501 base::HistogramBase::kUmaTargetedHistogramFlag); 499 base::HistogramBase::kUmaTargetedHistogramFlag);
502 500
503 histogram->Add(result); 501 histogram->Add(result);
504 } 502 }
505 503
506 } // namespace content 504 } // namespace content
OLDNEW
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/common/socket_permission_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698