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: content/browser/plugin_loader_posix.h

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
« no previous file with comments | « content/browser/browser_process_sub_thread.cc ('k') | content/browser/plugin_loader_posix.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) 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 #ifndef CONTENT_BROWSER_PLUGIN_LOADER_POSIX_H_ 5 #ifndef CONTENT_BROWSER_PLUGIN_LOADER_POSIX_H_
6 #define CONTENT_BROWSER_PLUGIN_LOADER_POSIX_H_ 6 #define CONTENT_BROWSER_PLUGIN_LOADER_POSIX_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // Message handlers. 80 // Message handlers.
81 void OnPluginLoaded(uint32 index, const webkit::WebPluginInfo& plugin); 81 void OnPluginLoaded(uint32 index, const webkit::WebPluginInfo& plugin);
82 void OnPluginLoadFailed(uint32 index, const FilePath& plugin_path); 82 void OnPluginLoadFailed(uint32 index, const FilePath& plugin_path);
83 83
84 // Checks if the plugin path is an internal plugin, and, if it is, adds it to 84 // Checks if the plugin path is an internal plugin, and, if it is, adds it to
85 // |loaded_plugins_|. 85 // |loaded_plugins_|.
86 bool MaybeAddInternalPlugin(const FilePath& plugin_path); 86 bool MaybeAddInternalPlugin(const FilePath& plugin_path);
87 87
88 // Runs all the registered callbacks on each's target loop if the condition 88 // Runs all the registered callbacks on each's target loop if the condition
89 // for ending the load process is done (i.e. the |next_load_index_| is outside 89 // for ending the load process is done (i.e. the |next_load_index_| is outside
90 // the ranage of the |canonical_list_|). 90 // the range of the |canonical_list_|).
91 bool MaybeRunPendingCallbacks(); 91 bool MaybeRunPendingCallbacks();
92 92
93 // The process host for which this is a client. 93 // The process host for which this is a client.
94 UtilityProcessHost* process_host_; 94 UtilityProcessHost* process_host_;
95 95
96 // A list of paths to plugins which will be loaded by the utility process, in 96 // A list of paths to plugins which will be loaded by the utility process, in
97 // the order specified by this vector. 97 // the order specified by this vector.
98 std::vector<FilePath> canonical_list_; 98 std::vector<FilePath> canonical_list_;
99 99
100 // The index in |canonical_list_| of the plugin that the child process will 100 // The index in |canonical_list_| of the plugin that the child process will
(...skipping 11 matching lines...) Expand all
112 std::vector<PendingCallback> callbacks_; 112 std::vector<PendingCallback> callbacks_;
113 113
114 // The time at which plugin loading started. 114 // The time at which plugin loading started.
115 base::TimeTicks load_start_time_; 115 base::TimeTicks load_start_time_;
116 116
117 friend class MockPluginLoaderPosix; 117 friend class MockPluginLoaderPosix;
118 DISALLOW_COPY_AND_ASSIGN(PluginLoaderPosix); 118 DISALLOW_COPY_AND_ASSIGN(PluginLoaderPosix);
119 }; 119 };
120 120
121 #endif // CONTENT_BROWSER_PLUGIN_LOADER_POSIX_H_ 121 #endif // CONTENT_BROWSER_PLUGIN_LOADER_POSIX_H_
OLDNEW
« no previous file with comments | « content/browser/browser_process_sub_thread.cc ('k') | content/browser/plugin_loader_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698