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

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

Issue 102593002: Convert string16 to base::string16 in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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_JAVA_JAVA_BRIDGE_DISPATCHER_H_ 5 #ifndef CONTENT_RENDERER_JAVA_JAVA_BRIDGE_DISPATCHER_H_
6 #define CONTENT_RENDERER_JAVA_JAVA_BRIDGE_DISPATCHER_H_ 6 #define CONTENT_RENDERER_JAVA_JAVA_BRIDGE_DISPATCHER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 15 matching lines...) Expand all
26 public: 26 public:
27 JavaBridgeDispatcher(RenderView* render_view); 27 JavaBridgeDispatcher(RenderView* render_view);
28 virtual ~JavaBridgeDispatcher(); 28 virtual ~JavaBridgeDispatcher();
29 29
30 private: 30 private:
31 // RenderViewObserver override: 31 // RenderViewObserver override:
32 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 32 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
33 virtual void DidClearWindowObject(blink::WebFrame* frame) OVERRIDE; 33 virtual void DidClearWindowObject(blink::WebFrame* frame) OVERRIDE;
34 34
35 // Message handlers 35 // Message handlers
36 void OnAddNamedObject(const string16& name, 36 void OnAddNamedObject(const base::string16& name,
37 const NPVariant_Param& variant_param); 37 const NPVariant_Param& variant_param);
38 void OnRemoveNamedObject(const string16& name); 38 void OnRemoveNamedObject(const base::string16& name);
39 39
40 void EnsureChannelIsSetUp(); 40 void EnsureChannelIsSetUp();
41 41
42 // Objects that will be bound to the window when the window object is next 42 // Objects that will be bound to the window when the window object is next
43 // cleared. We hold a ref to these. 43 // cleared. We hold a ref to these.
44 typedef std::map<string16, NPVariant> ObjectMap; 44 typedef std::map<base::string16, NPVariant> ObjectMap;
45 ObjectMap objects_; 45 ObjectMap objects_;
46 scoped_refptr<JavaBridgeChannel> channel_; 46 scoped_refptr<JavaBridgeChannel> channel_;
47 }; 47 };
48 48
49 } // namespace content 49 } // namespace content
50 50
51 #endif // CONTENT_RENDERER_JAVA_JAVA_BRIDGE_DISPATCHER_H_ 51 #endif // CONTENT_RENDERER_JAVA_JAVA_BRIDGE_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/input_event_filter_unittest.cc ('k') | content/renderer/java/java_bridge_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698