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

Side by Side Diff: content/child/npapi/plugin_lib.cc

Issue 1544273002: Switch to standard integer types in content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « content/child/npapi/plugin_lib.h ('k') | content/child/npapi/plugin_web_event_converter_mac.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) 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/child/npapi/plugin_lib.h" 5 #include "content/child/npapi/plugin_lib.h"
6 6
7 #include <stddef.h>
8 #include <string.h>
9
7 #include "base/bind.h" 10 #include "base/bind.h"
8 #include "base/location.h" 11 #include "base/location.h"
9 #include "base/logging.h" 12 #include "base/logging.h"
10 #include "base/single_thread_task_runner.h" 13 #include "base/single_thread_task_runner.h"
11 #include "base/strings/string_util.h" 14 #include "base/strings/string_util.h"
12 #include "base/thread_task_runner_handle.h" 15 #include "base/thread_task_runner_handle.h"
16 #include "build/build_config.h"
13 #include "content/child/npapi/plugin_host.h" 17 #include "content/child/npapi/plugin_host.h"
14 #include "content/child/npapi/plugin_instance.h" 18 #include "content/child/npapi/plugin_instance.h"
15 #include "content/common/plugin_list.h" 19 #include "content/common/plugin_list.h"
16 20
17 namespace content { 21 namespace content {
18 22
19 // A list of all the instantiated plugins. 23 // A list of all the instantiated plugins.
20 static std::vector<scoped_refptr<PluginLib> >* g_loaded_libs; 24 static std::vector<scoped_refptr<PluginLib> >* g_loaded_libs;
21 25
22 PluginLib* PluginLib::CreatePluginLib(const base::FilePath& filename) { 26 PluginLib* PluginLib::CreatePluginLib(const base::FilePath& filename) {
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 initialized_ = (rv == NPERR_NO_ERROR); 122 initialized_ = (rv == NPERR_NO_ERROR);
119 return rv; 123 return rv;
120 } 124 }
121 125
122 void PluginLib::NP_Shutdown(void) { 126 void PluginLib::NP_Shutdown(void) {
123 DCHECK(initialized_); 127 DCHECK(initialized_);
124 entry_points_.np_shutdown(); 128 entry_points_.np_shutdown();
125 } 129 }
126 130
127 NPError PluginLib::NP_ClearSiteData(const char* site, 131 NPError PluginLib::NP_ClearSiteData(const char* site,
128 uint64 flags, 132 uint64_t flags,
129 uint64 max_age) { 133 uint64_t max_age) {
130 DCHECK(initialized_); 134 DCHECK(initialized_);
131 if (plugin_funcs_.clearsitedata) 135 if (plugin_funcs_.clearsitedata)
132 return plugin_funcs_.clearsitedata(site, flags, max_age); 136 return plugin_funcs_.clearsitedata(site, flags, max_age);
133 return NPERR_INVALID_FUNCTABLE_ERROR; 137 return NPERR_INVALID_FUNCTABLE_ERROR;
134 } 138 }
135 139
136 char** PluginLib::NP_GetSitesWithData() { 140 char** PluginLib::NP_GetSitesWithData() {
137 DCHECK(initialized_); 141 DCHECK(initialized_);
138 if (plugin_funcs_.getsiteswithdata) 142 if (plugin_funcs_.getsiteswithdata)
139 return plugin_funcs_.getsiteswithdata(); 143 return plugin_funcs_.getsiteswithdata();
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 } 324 }
321 325
322 void PluginLib::Shutdown() { 326 void PluginLib::Shutdown() {
323 if (initialized_) { 327 if (initialized_) {
324 NP_Shutdown(); 328 NP_Shutdown();
325 initialized_ = false; 329 initialized_ = false;
326 } 330 }
327 } 331 }
328 332
329 } // namespace content 333 } // namespace content
OLDNEW
« no previous file with comments | « content/child/npapi/plugin_lib.h ('k') | content/child/npapi/plugin_web_event_converter_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698