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

Side by Side Diff: content/browser/plugin_loader_posix.cc

Issue 8965054: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes. Created 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/browser/plugin_loader_posix.h" 5 #include "content/browser/plugin_loader_posix.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/message_loop_proxy.h" 9 #include "base/message_loop_proxy.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
11 #include "content/common/child_process_host_impl.h" 11 #include "content/common/child_process_host_impl.h"
12 #include "content/common/utility_messages.h" 12 #include "content/common/utility_messages.h"
13 #include "content/public/browser/browser_thread.h" 13 #include "content/public/browser/browser_thread.h"
14 #include "webkit/plugins/npapi/plugin_list.h" 14 #include "webkit/plugins/npapi/plugin_list.h"
15 15
16 using content::BrowserThread; 16 using content::BrowserThread;
17 using content::ChildProcessHost; 17 using content::ChildProcessHost;
18 18
19 PluginLoaderPosix::PluginLoaderPosix() 19 PluginLoaderPosix::PluginLoaderPosix()
20 : next_load_index_(0) { 20 : process_host_(NULL),
21 next_load_index_(0) {
21 } 22 }
22 23
23 void PluginLoaderPosix::LoadPlugins( 24 void PluginLoaderPosix::LoadPlugins(
24 scoped_refptr<base::MessageLoopProxy> target_loop, 25 scoped_refptr<base::MessageLoopProxy> target_loop,
25 const PluginService::GetPluginsCallback& callback) { 26 const PluginService::GetPluginsCallback& callback) {
26 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 27 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
27 28
28 callbacks_.push_back(PendingCallback(target_loop, callback)); 29 callbacks_.push_back(PendingCallback(target_loop, callback));
29 30
30 if (callbacks_.size() == 1) { 31 if (callbacks_.size() == 1) {
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 171
171 PluginLoaderPosix::PendingCallback::PendingCallback( 172 PluginLoaderPosix::PendingCallback::PendingCallback(
172 scoped_refptr<base::MessageLoopProxy> loop, 173 scoped_refptr<base::MessageLoopProxy> loop,
173 const PluginService::GetPluginsCallback& cb) 174 const PluginService::GetPluginsCallback& cb)
174 : target_loop(loop), 175 : target_loop(loop),
175 callback(cb) { 176 callback(cb) {
176 } 177 }
177 178
178 PluginLoaderPosix::PendingCallback::~PendingCallback() { 179 PluginLoaderPosix::PendingCallback::~PendingCallback() {
179 } 180 }
OLDNEW
« no previous file with comments | « content/browser/plugin_loader_posix.h ('k') | content/browser/renderer_host/media/media_stream_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698