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

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

Issue 1281313003: base: Remove using:: declaration from version.h header. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more fixes Created 5 years, 4 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
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/browser/plugin_data_remover_impl.h" 5 #include "content/browser/plugin_data_remover_impl.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 29 matching lines...) Expand all
40 return new PluginDataRemoverImpl(browser_context); 40 return new PluginDataRemoverImpl(browser_context);
41 } 41 }
42 42
43 // static 43 // static
44 void PluginDataRemover::GetSupportedPlugins( 44 void PluginDataRemover::GetSupportedPlugins(
45 std::vector<WebPluginInfo>* supported_plugins) { 45 std::vector<WebPluginInfo>* supported_plugins) {
46 bool allow_wildcard = false; 46 bool allow_wildcard = false;
47 std::vector<WebPluginInfo> plugins; 47 std::vector<WebPluginInfo> plugins;
48 PluginService::GetInstance()->GetPluginInfoArray( 48 PluginService::GetInstance()->GetPluginInfoArray(
49 GURL(), kFlashPluginSwfMimeType, allow_wildcard, &plugins, NULL); 49 GURL(), kFlashPluginSwfMimeType, allow_wildcard, &plugins, NULL);
50 Version min_version(kMinFlashVersion); 50 base::Version min_version(kMinFlashVersion);
51 for (std::vector<WebPluginInfo>::iterator it = plugins.begin(); 51 for (std::vector<WebPluginInfo>::iterator it = plugins.begin();
52 it != plugins.end(); ++it) { 52 it != plugins.end(); ++it) {
53 Version version; 53 base::Version version;
54 WebPluginInfo::CreateVersionFromString(it->version, &version); 54 WebPluginInfo::CreateVersionFromString(it->version, &version);
55 if (version.IsValid() && min_version.CompareTo(version) == -1) 55 if (version.IsValid() && min_version.CompareTo(version) == -1)
56 supported_plugins->push_back(*it); 56 supported_plugins->push_back(*it);
57 } 57 }
58 } 58 }
59 59
60 class PluginDataRemoverImpl::Context 60 class PluginDataRemoverImpl::Context
61 : public PluginProcessHost::Client, 61 : public PluginProcessHost::Client,
62 public PpapiPluginProcessHost::BrokerClient, 62 public PpapiPluginProcessHost::BrokerClient,
63 public IPC::Listener, 63 public IPC::Listener,
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 311
312 base::WaitableEvent* PluginDataRemoverImpl::StartRemoving( 312 base::WaitableEvent* PluginDataRemoverImpl::StartRemoving(
313 base::Time begin_time) { 313 base::Time begin_time) {
314 DCHECK(!context_.get()); 314 DCHECK(!context_.get());
315 context_ = new Context(begin_time, browser_context_); 315 context_ = new Context(begin_time, browser_context_);
316 context_->Init(mime_type_); 316 context_->Init(mime_type_);
317 return context_->event(); 317 return context_->event();
318 } 318 }
319 319
320 } // namespace content 320 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl_private.cc ('k') | content/child/npapi/webplugin_delegate_impl_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698