| 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 virtual bool OnControlMessageReceived(const IPC::Message& msg); | 72 virtual bool 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, | 79 void OnClearSiteData(const std::string& site, |
| 80 const std::string& domain, | 80 uint64 flags, |
| 81 base::Time begin_time); | 81 base::Time begin_time); |
| 82 | 82 |
| 83 std::vector<scoped_refptr<WebPluginDelegateStub> > plugin_stubs_; | 83 std::vector<scoped_refptr<WebPluginDelegateStub> > plugin_stubs_; |
| 84 | 84 |
| 85 // Handle to the renderer process who is on the other side of the channel. | 85 // Handle to the renderer process who is on the other side of the channel. |
| 86 base::ProcessHandle renderer_handle_; | 86 base::ProcessHandle renderer_handle_; |
| 87 | 87 |
| 88 // The id of the renderer who is on the other side of the channel. | 88 // The id of the renderer who is on the other side of the channel. |
| 89 int renderer_id_; | 89 int renderer_id_; |
| 90 | 90 |
| 91 int in_send_; // Tracks if we're in a Send call. | 91 int in_send_; // Tracks if we're in a Send call. |
| 92 bool log_messages_; // True if we should log sent and received messages. | 92 bool log_messages_; // True if we should log sent and received messages. |
| 93 bool off_the_record_; // True if the renderer is in off the record mode. | 93 bool off_the_record_; // True if the renderer is in off the record mode. |
| 94 scoped_refptr<MessageFilter> filter_; // Handles the modal dialog events. | 94 scoped_refptr<MessageFilter> filter_; // Handles the modal dialog events. |
| 95 | 95 |
| 96 DISALLOW_COPY_AND_ASSIGN(PluginChannel); | 96 DISALLOW_COPY_AND_ASSIGN(PluginChannel); |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 #endif // CHROME_PLUGIN_PLUGIN_CHANNEL_H_ | 99 #endif // CHROME_PLUGIN_PLUGIN_CHANNEL_H_ |
| OLD | NEW |