| OLD | NEW |
| 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 | 201 |
| 202 IPC::Message* CreatePpapiClearSiteDataMsg(uint64 max_age) { | 202 IPC::Message* CreatePpapiClearSiteDataMsg(uint64 max_age) { |
| 203 base::FilePath profile_path = | 203 base::FilePath profile_path = |
| 204 PepperFlashFileMessageFilter::GetDataDirName(browser_context_path_); | 204 PepperFlashFileMessageFilter::GetDataDirName(browser_context_path_); |
| 205 // TODO(vtl): This "duplicates" logic in webkit/plugins/ppapi/file_path.cc | 205 // TODO(vtl): This "duplicates" logic in webkit/plugins/ppapi/file_path.cc |
| 206 // (which prepends the plugin name to the relative part of the path | 206 // (which prepends the plugin name to the relative part of the path |
| 207 // instead, with the absolute, profile-dependent part being enforced by | 207 // instead, with the absolute, profile-dependent part being enforced by |
| 208 // the browser). | 208 // the browser). |
| 209 #if defined(OS_WIN) | 209 #if defined(OS_WIN) |
| 210 base::FilePath plugin_data_path = | 210 base::FilePath plugin_data_path = |
| 211 profile_path.Append(base::FilePath(UTF8ToUTF16(plugin_name_))); | 211 profile_path.Append(base::FilePath(base::UTF8ToUTF16(plugin_name_))); |
| 212 #else | 212 #else |
| 213 base::FilePath plugin_data_path = | 213 base::FilePath plugin_data_path = |
| 214 profile_path.Append(base::FilePath(plugin_name_)); | 214 profile_path.Append(base::FilePath(plugin_name_)); |
| 215 #endif // defined(OS_WIN) | 215 #endif // defined(OS_WIN) |
| 216 return new PpapiMsg_ClearSiteData(0u, plugin_data_path, std::string(), | 216 return new PpapiMsg_ClearSiteData(0u, plugin_data_path, std::string(), |
| 217 kClearAllData, max_age); | 217 kClearAllData, max_age); |
| 218 } | 218 } |
| 219 | 219 |
| 220 // Connects the client side of a newly opened plug-in channel. | 220 // Connects the client side of a newly opened plug-in channel. |
| 221 void ConnectToChannel(const IPC::ChannelHandle& handle, bool is_ppapi) { | 221 void ConnectToChannel(const IPC::ChannelHandle& handle, bool is_ppapi) { |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 | 309 |
| 310 base::WaitableEvent* PluginDataRemoverImpl::StartRemoving( | 310 base::WaitableEvent* PluginDataRemoverImpl::StartRemoving( |
| 311 base::Time begin_time) { | 311 base::Time begin_time) { |
| 312 DCHECK(!context_.get()); | 312 DCHECK(!context_.get()); |
| 313 context_ = new Context(begin_time, browser_context_); | 313 context_ = new Context(begin_time, browser_context_); |
| 314 context_->Init(mime_type_); | 314 context_->Init(mime_type_); |
| 315 return context_->event(); | 315 return context_->event(); |
| 316 } | 316 } |
| 317 | 317 |
| 318 } // namespace content | 318 } // namespace content |
| OLD | NEW |