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

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

Issue 8368004: Move common_param_traits and webkit_param_traits to content/public/common. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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
« no previous file with comments | « content/public/common/webkit_param_traits.cc ('k') | no next file » | 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_RENDERER_JAVA_BRIDGE_DISPATCHER_H_ 5 #ifndef CONTENT_RENDERER_JAVA_BRIDGE_DISPATCHER_H_
6 #define CONTENT_RENDERER_JAVA_BRIDGE_DISPATCHER_H_ 6 #define CONTENT_RENDERER_JAVA_BRIDGE_DISPATCHER_H_
7 7
8 #include "content/common/webkit_param_traits.h" // For NPVariant_Param 8 #include "content/public/common/webkit_param_traits.h"
9 #include "content/public/renderer/render_view_observer.h" 9 #include "content/public/renderer/render_view_observer.h"
10 #include "ipc/ipc_channel_handle.h" 10 #include "ipc/ipc_channel_handle.h"
11 11
12 class JavaBridgeChannel; 12 class JavaBridgeChannel;
13 13
14 // This class handles injecting Java objects into the main frame of a 14 // This class handles injecting Java objects into the main frame of a
15 // RenderView. The 'add' and 'remove' messages received from the browser 15 // RenderView. The 'add' and 'remove' messages received from the browser
16 // process modify the entries in a map of 'pending' objects. These objects are 16 // process modify the entries in a map of 'pending' objects. These objects are
17 // bound to the window object of the main frame when that window object is next 17 // bound to the window object of the main frame when that window object is next
18 // cleared. These objects remain bound until the window object is cleared 18 // cleared. These objects remain bound until the window object is cleared
(...skipping 15 matching lines...) Expand all
34 void OnRemoveNamedObject(const string16& name); 34 void OnRemoveNamedObject(const string16& name);
35 35
36 // Objects that will be bound to the window when the window object is next 36 // Objects that will be bound to the window when the window object is next
37 // cleared. We hold a ref to these. 37 // cleared. We hold a ref to these.
38 typedef std::map<string16, NPVariant> ObjectMap; 38 typedef std::map<string16, NPVariant> ObjectMap;
39 ObjectMap objects_; 39 ObjectMap objects_;
40 scoped_ptr<JavaBridgeChannel> channel_; 40 scoped_ptr<JavaBridgeChannel> channel_;
41 }; 41 };
42 42
43 #endif // CONTENT_RENDERER_JAVA_BRIDGE_DISPATCHER_H_ 43 #endif // CONTENT_RENDERER_JAVA_BRIDGE_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/public/common/webkit_param_traits.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698