OLD | NEW |
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 // Called on the plugin thread | 69 // Called on the plugin thread |
70 PluginChannel(); | 70 PluginChannel(); |
71 | 71 |
72 void OnControlMessageReceived(const IPC::Message& msg); | 72 void OnControlMessageReceived(const IPC::Message& msg); |
73 | 73 |
74 static PluginChannelBase* ClassFactory() { return new PluginChannel(); } | 74 static PluginChannelBase* ClassFactory() { return new PluginChannel(); } |
75 | 75 |
76 void OnCreateInstance(const std::string& mime_type, int* instance_id); | 76 void OnCreateInstance(const std::string& mime_type, int* instance_id); |
77 void OnDestroyInstance(int instance_id, IPC::Message* reply_msg); | 77 void OnDestroyInstance(int instance_id, IPC::Message* reply_msg); |
78 void OnGenerateRouteID(int* route_id); | 78 void OnGenerateRouteID(int* route_id); |
| 79 void OnClearSiteData(uint64 flags, |
| 80 const std::string& domain, |
| 81 base::Time begin_time); |
79 | 82 |
80 #if defined(OS_POSIX) | 83 #if defined(OS_POSIX) |
81 // Close the plugin process' copy of the renderer's side of the plugin | 84 // 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 | 85 // channel. This can be called after the renderer is known to have its own |
83 // copy of renderer_fd_. | 86 // copy of renderer_fd_. |
84 void CloseRendererFD(); | 87 void CloseRendererFD(); |
85 #endif | 88 #endif |
86 | 89 |
87 std::vector<scoped_refptr<WebPluginDelegateStub> > plugin_stubs_; | 90 std::vector<scoped_refptr<WebPluginDelegateStub> > plugin_stubs_; |
88 | 91 |
(...skipping 12 matching lines...) Expand all Loading... |
101 | 104 |
102 int in_send_; // Tracks if we're in a Send call. | 105 int in_send_; // Tracks if we're in a Send call. |
103 bool log_messages_; // True if we should log sent and received messages. | 106 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. | 107 bool off_the_record_; // True if the renderer is in off the record mode. |
105 scoped_refptr<MessageFilter> filter_; // Handles the modal dialog events. | 108 scoped_refptr<MessageFilter> filter_; // Handles the modal dialog events. |
106 | 109 |
107 DISALLOW_COPY_AND_ASSIGN(PluginChannel); | 110 DISALLOW_COPY_AND_ASSIGN(PluginChannel); |
108 }; | 111 }; |
109 | 112 |
110 #endif // CHROME_PLUGIN_PLUGIN_CHANNEL_H_ | 113 #endif // CHROME_PLUGIN_PLUGIN_CHANNEL_H_ |
OLD | NEW |