| OLD | NEW |
| 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 CHROME_BROWSER_PLUGIN_DATA_REMOVER_H_ | 5 #ifndef CHROME_BROWSER_PLUGIN_DATA_REMOVER_H_ |
| 6 #define CHROME_BROWSER_PLUGIN_DATA_REMOVER_H_ | 6 #define CHROME_BROWSER_PLUGIN_DATA_REMOVER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> |
| 10 |
| 9 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 10 #include "base/time.h" | 12 #include "base/time.h" |
| 11 #include "content/browser/plugin_process_host.h" | 13 #include "content/browser/plugin_process_host.h" |
| 12 | 14 |
| 13 class PluginPrefs; | 15 class PluginPrefs; |
| 14 class Profile; | 16 class Profile; |
| 15 class Task; | |
| 16 | 17 |
| 17 namespace base { | 18 namespace base { |
| 18 class MessageLoopProxy; | |
| 19 class WaitableEvent; | 19 class WaitableEvent; |
| 20 } | 20 } |
| 21 | 21 |
| 22 class PluginDataRemover : public base::RefCountedThreadSafe<PluginDataRemover>, | 22 class PluginDataRemover : public base::RefCountedThreadSafe<PluginDataRemover>, |
| 23 public PluginProcessHost::Client, | 23 public PluginProcessHost::Client, |
| 24 public IPC::Channel::Listener { | 24 public IPC::Channel::Listener { |
| 25 public: | 25 public: |
| 26 explicit PluginDataRemover(Profile* profile); | 26 explicit PluginDataRemover(Profile* profile); |
| 27 | 27 |
| 28 // The plug-in whose data should be removed (usually Flash) is specified via | 28 // The plug-in whose data should be removed (usually Flash) is specified via |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 scoped_ptr<base::WaitableEvent> event_; | 87 scoped_ptr<base::WaitableEvent> event_; |
| 88 // We own the channel, but it's used on the IO thread, so it needs to be | 88 // We own the channel, but it's used on the IO thread, so it needs to be |
| 89 // deleted there. It's NULL until we have opened a connection to the plug-in | 89 // deleted there. It's NULL until we have opened a connection to the plug-in |
| 90 // process. | 90 // process. |
| 91 IPC::Channel* channel_; | 91 IPC::Channel* channel_; |
| 92 | 92 |
| 93 DISALLOW_COPY_AND_ASSIGN(PluginDataRemover); | 93 DISALLOW_COPY_AND_ASSIGN(PluginDataRemover); |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 #endif // CHROME_BROWSER_PLUGIN_DATA_REMOVER_H_ | 96 #endif // CHROME_BROWSER_PLUGIN_DATA_REMOVER_H_ |
| OLD | NEW |