| 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 "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/time.h" | 10 #include "base/time.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 // Indicates whether we are still in the process of removing plug-in data. | 39 // Indicates whether we are still in the process of removing plug-in data. |
| 40 bool is_removing() const { return is_removing_; } | 40 bool is_removing() const { return is_removing_; } |
| 41 | 41 |
| 42 // Wait until removing has finished. When the browser is still running (i.e. | 42 // Wait until removing has finished. When the browser is still running (i.e. |
| 43 // not during shutdown), you should use a WaitableEventWatcher in combination | 43 // not during shutdown), you should use a WaitableEventWatcher in combination |
| 44 // with the WaitableEvent returned by StartRemoving. | 44 // with the WaitableEvent returned by StartRemoving. |
| 45 void Wait(); | 45 void Wait(); |
| 46 | 46 |
| 47 // PluginProcessHost::Client methods. | 47 // PluginProcessHost::Client methods. |
| 48 virtual int ID(); | 48 virtual int ID(); |
| 49 virtual bool SaveLocalState(); |
| 49 virtual bool OffTheRecord(); | 50 virtual bool OffTheRecord(); |
| 50 virtual void SetPluginInfo(const webkit::npapi::WebPluginInfo& info); | 51 virtual void SetPluginInfo(const webkit::npapi::WebPluginInfo& info); |
| 51 virtual void OnChannelOpened(const IPC::ChannelHandle& handle); | 52 virtual void OnChannelOpened(const IPC::ChannelHandle& handle); |
| 52 virtual void OnError(); | 53 virtual void OnError(); |
| 53 | 54 |
| 54 // IPC::Channel::Listener methods. | 55 // IPC::Channel::Listener methods. |
| 55 virtual bool OnMessageReceived(const IPC::Message& message); | 56 virtual bool OnMessageReceived(const IPC::Message& message); |
| 56 virtual void OnChannelError(); | 57 virtual void OnChannelError(); |
| 57 | 58 |
| 58 private: | 59 private: |
| (...skipping 21 matching lines...) Expand all Loading... |
| 80 scoped_ptr<base::WaitableEvent> event_; | 81 scoped_ptr<base::WaitableEvent> event_; |
| 81 // We own the channel, but it's used on the IO thread, so it needs to be | 82 // We own the channel, but it's used on the IO thread, so it needs to be |
| 82 // deleted there. It's NULL until we have opened a connection to the plug-in | 83 // deleted there. It's NULL until we have opened a connection to the plug-in |
| 83 // process. | 84 // process. |
| 84 IPC::Channel* channel_; | 85 IPC::Channel* channel_; |
| 85 | 86 |
| 86 DISALLOW_COPY_AND_ASSIGN(PluginDataRemover); | 87 DISALLOW_COPY_AND_ASSIGN(PluginDataRemover); |
| 87 }; | 88 }; |
| 88 | 89 |
| 89 #endif // CHROME_BROWSER_PLUGIN_DATA_REMOVER_H_ | 90 #endif // CHROME_BROWSER_PLUGIN_DATA_REMOVER_H_ |
| OLD | NEW |