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

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

Issue 7036025: Get rid of chrome dependencies from PluginProcessHost by moving dispatching of chrome specific me... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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
« no previous file with comments | « content/browser/content_browser_client.cc ('k') | content/browser/plugin_process_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <queue> 11 #include <queue>
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 "webkit/plugins/npapi/webplugininfo.h"
19 #include "ui/gfx/native_widget_types.h" 20 #include "ui/gfx/native_widget_types.h"
20 #include "webkit/plugins/npapi/webplugininfo.h"
21 21
22 namespace gfx { 22 namespace gfx {
23 class Rect; 23 class Rect;
24 } 24 }
25 25
26 namespace IPC { 26 namespace IPC {
27 struct ChannelHandle; 27 struct ChannelHandle;
28 } 28 }
29 29
30 class GURL; 30 class GURL;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 void AddWindow(HWND window); 92 void AddWindow(HWND window);
93 #endif 93 #endif
94 94
95 private: 95 private:
96 // Sends a message to the plugin process to request creation of a new channel 96 // Sends a message to the plugin process to request creation of a new channel
97 // for the given mime type. 97 // for the given mime type.
98 void RequestPluginChannel(Client* client); 98 void RequestPluginChannel(Client* client);
99 99
100 // Message handlers. 100 // Message handlers.
101 void OnChannelCreated(const IPC::ChannelHandle& channel_handle); 101 void OnChannelCreated(const IPC::ChannelHandle& channel_handle);
102 void OnGetPluginFinderUrl(std::string* plugin_finder_url);
103 102
104 #if defined(OS_WIN) 103 #if defined(OS_WIN)
105 void OnPluginWindowDestroyed(HWND window, HWND parent); 104 void OnPluginWindowDestroyed(HWND window, HWND parent);
106 void OnDownloadUrl(const std::string& url, int source_child_unique_id,
107 gfx::NativeWindow caller_window);
108 #endif 105 #endif
109 106
110 #if defined(USE_X11) 107 #if defined(USE_X11)
111 void OnMapNativeViewId(gfx::NativeViewId id, gfx::PluginWindowHandle* output); 108 void OnMapNativeViewId(gfx::NativeViewId id, gfx::PluginWindowHandle* output);
112 #endif 109 #endif
113 110
114 #if defined(OS_MACOSX) 111 #if defined(OS_MACOSX)
115 void OnPluginSelectWindow(uint32 window_id, gfx::Rect window_rect, 112 void OnPluginSelectWindow(uint32 window_id, gfx::Rect window_rect,
116 bool modal); 113 bool modal);
117 void OnPluginShowWindow(uint32 window_id, gfx::Rect window_rect, 114 void OnPluginShowWindow(uint32 window_id, gfx::Rect window_rect,
(...skipping 29 matching lines...) Expand all
147 // Tracks modal windows currently visible. 144 // Tracks modal windows currently visible.
148 std::set<uint32> plugin_modal_windows_set_; 145 std::set<uint32> plugin_modal_windows_set_;
149 // Tracks the current visibility of the cursor. 146 // Tracks the current visibility of the cursor.
150 bool plugin_cursor_visible_; 147 bool plugin_cursor_visible_;
151 #endif 148 #endif
152 149
153 DISALLOW_COPY_AND_ASSIGN(PluginProcessHost); 150 DISALLOW_COPY_AND_ASSIGN(PluginProcessHost);
154 }; 151 };
155 152
156 #endif // CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ 153 #endif // CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/content_browser_client.cc ('k') | content/browser/plugin_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698