Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
|
viettrungluu
2012/04/11 02:48:10
2012, or is that automatically updated these days?
brettw
2012/04/11 21:22:34
CQ does it automatically. I don't care beyond that
| |
| 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 CONTENT_PLUGIN_PLUGIN_CHANNEL_H_ | 5 #ifndef CONTENT_PLUGIN_PLUGIN_CHANNEL_H_ |
| 6 #define CONTENT_PLUGIN_PLUGIN_CHANNEL_H_ | 6 #define CONTENT_PLUGIN_PLUGIN_CHANNEL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_handle.h" | 11 #include "base/memory/scoped_handle.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 77 | 77 |
| 78 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; | 78 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 79 | 79 |
| 80 static NPChannelBase* ClassFactory() { return new PluginChannel(); } | 80 static NPChannelBase* ClassFactory() { return new PluginChannel(); } |
| 81 | 81 |
| 82 void OnCreateInstance(const std::string& mime_type, int* instance_id); | 82 void OnCreateInstance(const std::string& mime_type, int* instance_id); |
| 83 void OnDestroyInstance(int instance_id, IPC::Message* reply_msg); | 83 void OnDestroyInstance(int instance_id, IPC::Message* reply_msg); |
| 84 void OnGenerateRouteID(int* route_id); | 84 void OnGenerateRouteID(int* route_id); |
| 85 void OnClearSiteData(const std::string& site, | 85 void OnClearSiteData(const std::string& site, |
| 86 uint64 flags, | 86 uint64 flags, |
| 87 base::Time begin_time); | 87 uint64 max_age); |
|
viettrungluu
2012/04/11 02:48:10
/me wonders where base::Time was declared. Oh well
| |
| 88 | 88 |
| 89 std::vector<scoped_refptr<WebPluginDelegateStub> > plugin_stubs_; | 89 std::vector<scoped_refptr<WebPluginDelegateStub> > plugin_stubs_; |
| 90 | 90 |
| 91 // Handle to the renderer process who is on the other side of the channel. | 91 // Handle to the renderer process who is on the other side of the channel. |
| 92 base::ProcessHandle renderer_handle_; | 92 base::ProcessHandle renderer_handle_; |
| 93 | 93 |
| 94 // The id of the renderer who is on the other side of the channel. | 94 // The id of the renderer who is on the other side of the channel. |
| 95 int renderer_id_; | 95 int renderer_id_; |
| 96 | 96 |
| 97 int in_send_; // Tracks if we're in a Send call. | 97 int in_send_; // Tracks if we're in a Send call. |
| 98 bool log_messages_; // True if we should log sent and received messages. | 98 bool log_messages_; // True if we should log sent and received messages. |
| 99 bool incognito_; // True if the renderer is in incognito mode. | 99 bool incognito_; // True if the renderer is in incognito mode. |
| 100 scoped_refptr<MessageFilter> filter_; // Handles the modal dialog events. | 100 scoped_refptr<MessageFilter> filter_; // Handles the modal dialog events. |
| 101 | 101 |
| 102 DISALLOW_COPY_AND_ASSIGN(PluginChannel); | 102 DISALLOW_COPY_AND_ASSIGN(PluginChannel); |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 #endif // CONTENT_PLUGIN_PLUGIN_CHANNEL_H_ | 105 #endif // CONTENT_PLUGIN_PLUGIN_CHANNEL_H_ |
| OLD | NEW |