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

Side by Side Diff: chrome/plugin/plugin_channel.h

Issue 4832002: Add PluginDataRemover. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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
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_PLUGIN_PLUGIN_CHANNEL_H_ 5 #ifndef CHROME_PLUGIN_PLUGIN_CHANNEL_H_
6 #define CHROME_PLUGIN_PLUGIN_CHANNEL_H_ 6 #define CHROME_PLUGIN_PLUGIN_CHANNEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 #include "base/ref_counted.h" 10 #include "base/ref_counted.h"
(...skipping 22 matching lines...) Expand all
33 ~PluginChannel(); 33 ~PluginChannel();
34 34
35 virtual bool Send(IPC::Message* msg); 35 virtual bool Send(IPC::Message* msg);
36 virtual void OnMessageReceived(const IPC::Message& message); 36 virtual void OnMessageReceived(const IPC::Message& message);
37 37
38 base::ProcessHandle renderer_handle() const { return renderer_handle_; } 38 base::ProcessHandle renderer_handle() const { return renderer_handle_; }
39 int renderer_id() { return renderer_id_; } 39 int renderer_id() { return renderer_id_; }
40 40
41 int GenerateRouteID(); 41 int GenerateRouteID();
42 42
43 bool ClearSiteData(uint64 flags,
jam 2010/11/12 20:44:58 this should be private. also, seems unnecessary t
44 const std::string& domain,
45 base::Time begin_time);
46
43 // Returns the event that's set when a call to the renderer causes a modal 47 // Returns the event that's set when a call to the renderer causes a modal
44 // dialog to come up. 48 // dialog to come up.
45 base::WaitableEvent* GetModalDialogEvent(gfx::NativeViewId containing_window); 49 base::WaitableEvent* GetModalDialogEvent(gfx::NativeViewId containing_window);
46 50
47 bool in_send() { return in_send_ != 0; } 51 bool in_send() { return in_send_ != 0; }
48 52
49 bool off_the_record() { return off_the_record_; } 53 bool off_the_record() { return off_the_record_; }
50 void set_off_the_record(bool value) { off_the_record_ = value; } 54 void set_off_the_record(bool value) { off_the_record_ = value; }
51 55
52 #if defined(OS_POSIX) 56 #if defined(OS_POSIX)
(...skipping 16 matching lines...) Expand all
69 // Called on the plugin thread 73 // Called on the plugin thread
70 PluginChannel(); 74 PluginChannel();
71 75
72 void OnControlMessageReceived(const IPC::Message& msg); 76 void OnControlMessageReceived(const IPC::Message& msg);
73 77
74 static PluginChannelBase* ClassFactory() { return new PluginChannel(); } 78 static PluginChannelBase* ClassFactory() { return new PluginChannel(); }
75 79
76 void OnCreateInstance(const std::string& mime_type, int* instance_id); 80 void OnCreateInstance(const std::string& mime_type, int* instance_id);
77 void OnDestroyInstance(int instance_id, IPC::Message* reply_msg); 81 void OnDestroyInstance(int instance_id, IPC::Message* reply_msg);
78 void OnGenerateRouteID(int* route_id); 82 void OnGenerateRouteID(int* route_id);
83 void OnClearSiteData(uint64 flags,
84 const std::string& domain,
85 base::Time begin_time);
79 86
80 #if defined(OS_POSIX) 87 #if defined(OS_POSIX)
81 // Close the plugin process' copy of the renderer's side of the plugin 88 // Close the plugin process' copy of the renderer's side of the plugin
82 // channel. This can be called after the renderer is known to have its own 89 // channel. This can be called after the renderer is known to have its own
83 // copy of renderer_fd_. 90 // copy of renderer_fd_.
84 void CloseRendererFD(); 91 void CloseRendererFD();
85 #endif 92 #endif
86 93
87 std::vector<scoped_refptr<WebPluginDelegateStub> > plugin_stubs_; 94 std::vector<scoped_refptr<WebPluginDelegateStub> > plugin_stubs_;
88 95
(...skipping 12 matching lines...) Expand all
101 108
102 int in_send_; // Tracks if we're in a Send call. 109 int in_send_; // Tracks if we're in a Send call.
103 bool log_messages_; // True if we should log sent and received messages. 110 bool log_messages_; // True if we should log sent and received messages.
104 bool off_the_record_; // True if the renderer is in off the record mode. 111 bool off_the_record_; // True if the renderer is in off the record mode.
105 scoped_refptr<MessageFilter> filter_; // Handles the modal dialog events. 112 scoped_refptr<MessageFilter> filter_; // Handles the modal dialog events.
106 113
107 DISALLOW_COPY_AND_ASSIGN(PluginChannel); 114 DISALLOW_COPY_AND_ASSIGN(PluginChannel);
108 }; 115 };
109 116
110 #endif // CHROME_PLUGIN_PLUGIN_CHANNEL_H_ 117 #endif // CHROME_PLUGIN_PLUGIN_CHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698