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

Side by Side Diff: chrome/browser/plugin_data_remover.h

Issue 7648017: Make WebPluginInfo more generic (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/pdf_unsupported_feature.cc ('k') | chrome/browser/plugin_data_remover.cc » ('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 #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 29 matching lines...) Expand all
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 OffTheRecord(); 49 virtual bool OffTheRecord();
50 virtual void SetPluginInfo(const webkit::npapi::WebPluginInfo& info); 50 virtual void SetPluginInfo(const webkit::WebPluginInfo& info);
51 virtual void OnChannelOpened(const IPC::ChannelHandle& handle); 51 virtual void OnChannelOpened(const IPC::ChannelHandle& handle);
52 virtual void OnError(); 52 virtual void OnError();
53 53
54 // IPC::Channel::Listener methods. 54 // IPC::Channel::Listener methods.
55 virtual bool OnMessageReceived(const IPC::Message& message); 55 virtual bool OnMessageReceived(const IPC::Message& message);
56 virtual void OnChannelError(); 56 virtual void OnChannelError();
57 57
58 private: 58 private:
59 friend class base::RefCountedThreadSafe<PluginDataRemover>; 59 friend class base::RefCountedThreadSafe<PluginDataRemover>;
60 friend class PluginDataRemoverTest; 60 friend class PluginDataRemoverTest;
(...skipping 19 matching lines...) Expand all
80 scoped_ptr<base::WaitableEvent> event_; 80 scoped_ptr<base::WaitableEvent> event_;
81 // We own the channel, but it's used on the IO thread, so it needs to be 81 // 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 82 // deleted there. It's NULL until we have opened a connection to the plug-in
83 // process. 83 // process.
84 IPC::Channel* channel_; 84 IPC::Channel* channel_;
85 85
86 DISALLOW_COPY_AND_ASSIGN(PluginDataRemover); 86 DISALLOW_COPY_AND_ASSIGN(PluginDataRemover);
87 }; 87 };
88 88
89 #endif // CHROME_BROWSER_PLUGIN_DATA_REMOVER_H_ 89 #endif // CHROME_BROWSER_PLUGIN_DATA_REMOVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/pdf_unsupported_feature.cc ('k') | chrome/browser/plugin_data_remover.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698