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

Side by Side Diff: content/renderer/browser_plugin/browser_plugin_manager_impl.h

Issue 283623002: Add support for passing an arbitrary parameter to an IPC message handler. The motivation is for Web… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_IMPL_H_ 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_IMPL_H_
6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_IMPL_H_ 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "content/renderer/browser_plugin/browser_plugin_manager.h" 10 #include "content/renderer/browser_plugin/browser_plugin_manager.h"
(...skipping 20 matching lines...) Expand all
31 // IPC::Sender implementation. 31 // IPC::Sender implementation.
32 virtual bool Send(IPC::Message* msg) OVERRIDE; 32 virtual bool Send(IPC::Message* msg) OVERRIDE;
33 33
34 // RenderViewObserver override. Call on render thread. 34 // RenderViewObserver override. Call on render thread.
35 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 35 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
36 virtual void DidCommitCompositorFrame() OVERRIDE; 36 virtual void DidCommitCompositorFrame() OVERRIDE;
37 37
38 private: 38 private:
39 virtual ~BrowserPluginManagerImpl(); 39 virtual ~BrowserPluginManagerImpl();
40 40
41 void OnAllocateInstanceIDACK(const IPC::Message& message, 41 void OnAllocateInstanceIDACK(int request_id,
42 int request_id,
43 int guest_instance_id); 42 int guest_instance_id);
44 43
45 int request_id_counter_; 44 int request_id_counter_;
46 typedef std::map<int, const base::WeakPtr<BrowserPlugin> > InstanceIDMap; 45 typedef std::map<int, const base::WeakPtr<BrowserPlugin> > InstanceIDMap;
47 InstanceIDMap pending_allocate_guest_instance_id_requests_; 46 InstanceIDMap pending_allocate_guest_instance_id_requests_;
48 47
49 DISALLOW_COPY_AND_ASSIGN(BrowserPluginManagerImpl); 48 DISALLOW_COPY_AND_ASSIGN(BrowserPluginManagerImpl);
50 }; 49 };
51 50
52 } // namespace content 51 } // namespace content
53 52
54 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_IMPL_H_ 53 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698