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

Side by Side Diff: chrome/plugin/webplugin_proxy.h

Issue 42158: Get rid of the gears in renderer process code. This allows me to do some cle... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_WEBPLUGIN_PROXY_H__ 5 #ifndef CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__
6 #define CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ 6 #define CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__
7 7
8 #include "base/hash_tables.h" 8 #include "base/hash_tables.h"
9 #include "base/ref_counted.h" 9 #include "base/ref_counted.h"
10 #include "base/scoped_handle.h" 10 #include "base/scoped_handle.h"
(...skipping 23 matching lines...) Expand all
34 HANDLE modal_dialog_event); 34 HANDLE modal_dialog_event);
35 ~WebPluginProxy(); 35 ~WebPluginProxy();
36 36
37 // WebPlugin overrides 37 // WebPlugin overrides
38 void SetWindow(HWND window, HANDLE pump_messages_event); 38 void SetWindow(HWND window, HANDLE pump_messages_event);
39 void CancelResource(int id); 39 void CancelResource(int id);
40 void Invalidate(); 40 void Invalidate();
41 void InvalidateRect(const gfx::Rect& rect); 41 void InvalidateRect(const gfx::Rect& rect);
42 NPObject* GetWindowScriptNPObject(); 42 NPObject* GetWindowScriptNPObject();
43 NPObject* GetPluginElement(); 43 NPObject* GetPluginElement();
44 WebFrame* GetWebFrame() {
45 return NULL; // doesn't make sense in the plugin process.
46 }
47 void SetCookie(const GURL& url, 44 void SetCookie(const GURL& url,
48 const GURL& policy_url, 45 const GURL& policy_url,
49 const std::string& cookie); 46 const std::string& cookie);
50 std::string GetCookies(const GURL& url, const GURL& policy_url); 47 std::string GetCookies(const GURL& url, const GURL& policy_url);
51 48
52 void ShowModalHTMLDialog(const GURL& url, int width, int height, 49 void ShowModalHTMLDialog(const GURL& url, int width, int height,
53 const std::string& json_arguments, 50 const std::string& json_arguments,
54 std::string* json_retval); 51 std::string* json_retval);
55 void OnMissingPluginStatus(int status); 52 void OnMissingPluginStatus(int status);
56 // class-specific methods 53 // class-specific methods
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 143
147 // These hold the bitmap of the background image. 144 // These hold the bitmap of the background image.
148 ScopedHandle background_shared_section_; 145 ScopedHandle background_shared_section_;
149 ScopedBitmap background_bitmap_; 146 ScopedBitmap background_bitmap_;
150 ScopedHDC background_hdc_; 147 ScopedHDC background_hdc_;
151 148
152 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_; 149 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_;
153 }; 150 };
154 151
155 #endif // CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ 152 #endif // CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698