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

Side by Side Diff: content/browser/plugin_process_host.h

Issue 8082019: more content exports needed for unit_tests and browser_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert export of browser_accessibility_win for now Created 9 years, 2 months 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) 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
11 #include <list> 11 #include <list>
12 #include <set> 12 #include <set>
13 #include <string> 13 #include <string>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/basictypes.h" 16 #include "base/basictypes.h"
17 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
18 #include "content/browser/browser_child_process_host.h" 18 #include "content/browser/browser_child_process_host.h"
19 #include "content/common/content_export.h"
19 #include "webkit/plugins/webplugininfo.h" 20 #include "webkit/plugins/webplugininfo.h"
20 #include "ui/gfx/native_widget_types.h" 21 #include "ui/gfx/native_widget_types.h"
21 22
22 namespace content { 23 namespace content {
23 class ResourceContext; 24 class ResourceContext;
24 } 25 }
25 26
26 namespace gfx { 27 namespace gfx {
27 class Rect; 28 class Rect;
28 } 29 }
29 30
30 namespace IPC { 31 namespace IPC {
31 struct ChannelHandle; 32 struct ChannelHandle;
32 } 33 }
33 34
34 class GURL; 35 class GURL;
35 36
36 // Represents the browser side of the browser <--> plugin communication 37 // Represents the browser side of the browser <--> plugin communication
37 // channel. Different plugins run in their own process, but multiple instances 38 // channel. Different plugins run in their own process, but multiple instances
38 // of the same plugin run in the same process. There will be one 39 // of the same plugin run in the same process. There will be one
39 // PluginProcessHost per plugin process, matched with a corresponding 40 // PluginProcessHost per plugin process, matched with a corresponding
40 // PluginProcess running in the plugin process. The browser is responsible for 41 // PluginProcess running in the plugin process. The browser is responsible for
41 // starting the plugin process when a plugin is created that doesn't already 42 // starting the plugin process when a plugin is created that doesn't already
42 // have a process. After that, most of the communication is directly between 43 // have a process. After that, most of the communication is directly between
43 // the renderer and plugin processes. 44 // the renderer and plugin processes.
44 class PluginProcessHost : public BrowserChildProcessHost { 45 class CONTENT_EXPORT PluginProcessHost : public BrowserChildProcessHost {
45 public: 46 public:
46 class Client { 47 class Client {
47 public: 48 public:
48 // Returns an opaque unique identifier for the process requesting 49 // Returns an opaque unique identifier for the process requesting
49 // the channel. 50 // the channel.
50 virtual int ID() = 0; 51 virtual int ID() = 0;
51 // Returns the resource context for the renderer requesting the channel. 52 // Returns the resource context for the renderer requesting the channel.
52 virtual const content::ResourceContext& GetResourceContext() = 0; 53 virtual const content::ResourceContext& GetResourceContext() = 0;
53 virtual bool OffTheRecord() = 0; 54 virtual bool OffTheRecord() = 0;
54 virtual void SetPluginInfo(const webkit::WebPluginInfo& info) = 0; 55 virtual void SetPluginInfo(const webkit::WebPluginInfo& info) = 0;
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // Tracks modal windows currently visible. 164 // Tracks modal windows currently visible.
164 std::set<uint32> plugin_modal_windows_set_; 165 std::set<uint32> plugin_modal_windows_set_;
165 // Tracks the current visibility of the cursor. 166 // Tracks the current visibility of the cursor.
166 bool plugin_cursor_visible_; 167 bool plugin_cursor_visible_;
167 #endif 168 #endif
168 169
169 DISALLOW_COPY_AND_ASSIGN(PluginProcessHost); 170 DISALLOW_COPY_AND_ASSIGN(PluginProcessHost);
170 }; 171 };
171 172
172 #endif // CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ 173 #endif // CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698