OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ | 5 #ifndef CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ |
6 #define CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ | 6 #define CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... | |
38 // have a process. After that, most of the communication is directly between | 38 // have a process. After that, most of the communication is directly between |
39 // the renderer and plugin processes. | 39 // the renderer and plugin processes. |
40 class PluginProcessHost : public BrowserChildProcessHost { | 40 class PluginProcessHost : public BrowserChildProcessHost { |
41 public: | 41 public: |
42 class Client { | 42 class Client { |
43 public: | 43 public: |
44 // Returns a opaque unique identifier for the process requesting | 44 // Returns a opaque unique identifier for the process requesting |
45 // the channel. | 45 // the channel. |
46 virtual int ID() = 0; | 46 virtual int ID() = 0; |
47 virtual bool OffTheRecord() = 0; | 47 virtual bool OffTheRecord() = 0; |
48 virtual bool SaveLocalState() = 0; | |
Bernhard Bauer
2011/06/30 12:24:12
I think we should collapse |OffTheRecord| and |Sav
Miranda Callahan
2011/06/30 13:38:43
Ha -- I woke up at four in the morning and had the
| |
48 virtual void SetPluginInfo(const webkit::npapi::WebPluginInfo& info) = 0; | 49 virtual void SetPluginInfo(const webkit::npapi::WebPluginInfo& info) = 0; |
49 // The client should delete itself when one of these methods is called. | 50 // The client should delete itself when one of these methods is called. |
50 virtual void OnChannelOpened(const IPC::ChannelHandle& handle) = 0; | 51 virtual void OnChannelOpened(const IPC::ChannelHandle& handle) = 0; |
51 virtual void OnError() = 0; | 52 virtual void OnError() = 0; |
52 | 53 |
53 protected: | 54 protected: |
54 virtual ~Client() {} | 55 virtual ~Client() {} |
55 }; | 56 }; |
56 | 57 |
57 PluginProcessHost(); | 58 PluginProcessHost(); |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
145 // Tracks modal windows currently visible. | 146 // Tracks modal windows currently visible. |
146 std::set<uint32> plugin_modal_windows_set_; | 147 std::set<uint32> plugin_modal_windows_set_; |
147 // Tracks the current visibility of the cursor. | 148 // Tracks the current visibility of the cursor. |
148 bool plugin_cursor_visible_; | 149 bool plugin_cursor_visible_; |
149 #endif | 150 #endif |
150 | 151 |
151 DISALLOW_COPY_AND_ASSIGN(PluginProcessHost); | 152 DISALLOW_COPY_AND_ASSIGN(PluginProcessHost); |
152 }; | 153 }; |
153 | 154 |
154 #endif // CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ | 155 #endif // CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ |
OLD | NEW |