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

Side by Side Diff: content/renderer/webplugin_delegate_proxy.h

Issue 9034029: Revert 115997 - Replace MessageLoop::DeleteSoon implementation with one that uses base::Bind. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 11 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_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ 5 #ifndef CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_
6 #define CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ 6 #define CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/message_loop_helpers.h"
16 #include "googleurl/src/gurl.h" 15 #include "googleurl/src/gurl.h"
17 #include "ipc/ipc_channel.h" 16 #include "ipc/ipc_channel.h"
18 #include "ipc/ipc_message.h" 17 #include "ipc/ipc_message.h"
19 #include "ui/gfx/native_widget_types.h" 18 #include "ui/gfx/native_widget_types.h"
20 #include "ui/gfx/rect.h" 19 #include "ui/gfx/rect.h"
21 #include "ui/gfx/surface/transport_dib.h" 20 #include "ui/gfx/surface/transport_dib.h"
22 #include "webkit/plugins/npapi/webplugin_delegate.h" 21 #include "webkit/plugins/npapi/webplugin_delegate.h"
23 #include "webkit/plugins/webplugininfo.h" 22 #include "webkit/plugins/webplugininfo.h"
24 23
25 #if defined(OS_MACOSX) 24 #if defined(OS_MACOSX)
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 virtual void DidFinishManualLoading() OVERRIDE; 125 virtual void DidFinishManualLoading() OVERRIDE;
127 virtual void DidManualLoadFail() OVERRIDE; 126 virtual void DidManualLoadFail() OVERRIDE;
128 virtual webkit::npapi::WebPluginResourceClient* CreateResourceClient( 127 virtual webkit::npapi::WebPluginResourceClient* CreateResourceClient(
129 unsigned long resource_id, const GURL& url, int notify_id) OVERRIDE; 128 unsigned long resource_id, const GURL& url, int notify_id) OVERRIDE;
130 virtual webkit::npapi::WebPluginResourceClient* CreateSeekableResourceClient( 129 virtual webkit::npapi::WebPluginResourceClient* CreateSeekableResourceClient(
131 unsigned long resource_id, int range_request_id) OVERRIDE; 130 unsigned long resource_id, int range_request_id) OVERRIDE;
132 131
133 gfx::PluginWindowHandle GetPluginWindowHandle(); 132 gfx::PluginWindowHandle GetPluginWindowHandle();
134 133
135 protected: 134 protected:
136 friend class base::DeleteHelper<WebPluginDelegateProxy>; 135 template<class WebPluginDelegateProxy> friend class DeleteTask;
137 virtual ~WebPluginDelegateProxy(); 136 virtual ~WebPluginDelegateProxy();
138 137
139 private: 138 private:
140 struct SharedBitmap { 139 struct SharedBitmap {
141 SharedBitmap(); 140 SharedBitmap();
142 ~SharedBitmap(); 141 ~SharedBitmap();
143 142
144 scoped_ptr<TransportDIB> dib; 143 scoped_ptr<TransportDIB> dib;
145 scoped_ptr<skia::PlatformCanvas> canvas; 144 scoped_ptr<skia::PlatformCanvas> canvas;
146 }; 145 };
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 // back-buffer. 321 // back-buffer.
323 gfx::Rect front_buffer_diff_; 322 gfx::Rect front_buffer_diff_;
324 323
325 // The url of the main frame hosting the plugin. 324 // The url of the main frame hosting the plugin.
326 GURL page_url_; 325 GURL page_url_;
327 326
328 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); 327 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy);
329 }; 328 };
330 329
331 #endif // CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ 330 #endif // CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698