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

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

Issue 5978003: Make IPC::Channel::Listener:OnMessageReceived have a return value indicating ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 12 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/nacl_host/nacl_process_host.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/ref_counted.h" 9 #include "base/ref_counted.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 27 matching lines...) Expand all
38 // the passed task. 38 // the passed task.
39 void set_done_task(Task* task) { done_task_.reset(task); } 39 void set_done_task(Task* task) { done_task_.reset(task); }
40 40
41 // PluginProcessHost::Client methods 41 // PluginProcessHost::Client methods
42 virtual int ID(); 42 virtual int ID();
43 virtual bool OffTheRecord(); 43 virtual bool OffTheRecord();
44 virtual void SetPluginInfo(const webkit::npapi::WebPluginInfo& info); 44 virtual void SetPluginInfo(const webkit::npapi::WebPluginInfo& info);
45 virtual void OnChannelOpened(const IPC::ChannelHandle& handle); 45 virtual void OnChannelOpened(const IPC::ChannelHandle& handle);
46 virtual void OnError(); 46 virtual void OnError();
47 47
48 // IPC::ChannelProxy::MessageFilter methods 48 // IPC::Channel::Listener methods
49 virtual void OnMessageReceived(const IPC::Message& message); 49 virtual bool OnMessageReceived(const IPC::Message& message);
50 virtual void OnChannelError(); 50 virtual void OnChannelError();
51 51
52 private: 52 private:
53 friend class base::RefCountedThreadSafe<PluginDataRemover>; 53 friend class base::RefCountedThreadSafe<PluginDataRemover>;
54 ~PluginDataRemover(); 54 ~PluginDataRemover();
55 55
56 void SignalDone(); 56 void SignalDone();
57 void ConnectToChannel(const IPC::ChannelHandle& handle); 57 void ConnectToChannel(const IPC::ChannelHandle& handle);
58 void OnClearSiteDataResult(bool success); 58 void OnClearSiteDataResult(bool success);
59 void OnTimeout(); 59 void OnTimeout();
60 60
61 scoped_refptr<base::MessageLoopProxy> message_loop_; 61 scoped_refptr<base::MessageLoopProxy> message_loop_;
62 bool is_removing_; 62 bool is_removing_;
63 scoped_ptr<Task> done_task_; 63 scoped_ptr<Task> done_task_;
64 // The point in time when we start removing data. 64 // The point in time when we start removing data.
65 base::Time remove_start_time_; 65 base::Time remove_start_time_;
66 // The point in time from which on we remove data. 66 // The point in time from which on we remove data.
67 base::Time begin_time_; 67 base::Time begin_time_;
68 // We own the channel, but it's used on the IO thread, so it needs to be 68 // We own the channel, but it's used on the IO thread, so it needs to be
69 // deleted there as well. 69 // deleted there as well.
70 IPC::Channel* channel_; 70 IPC::Channel* channel_;
71 }; 71 };
72 72
73 #endif // CHROME_BROWSER_PLUGIN_DATA_REMOVER_H_ 73 #endif // CHROME_BROWSER_PLUGIN_DATA_REMOVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/nacl_host/nacl_process_host.cc ('k') | chrome/browser/plugin_data_remover.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698