OLD | NEW |
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_WEB_UI_BINDINGS_H_ | 5 #ifndef CONTENT_RENDERER_WEB_UI_BINDINGS_H_ |
6 #define CONTENT_RENDERER_WEB_UI_BINDINGS_H_ | 6 #define CONTENT_RENDERER_WEB_UI_BINDINGS_H_ |
7 | 7 |
8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
9 #include "ipc/ipc_sender.h" | 9 #include "ipc/ipc_sender.h" |
10 #include "webkit/glue/cpp_bound_class.h" | 10 #include "webkit/glue/cpp_bound_class.h" |
11 | 11 |
| 12 namespace content { |
| 13 |
12 // A DOMBoundBrowserObject is a backing for some object bound to the window | 14 // A DOMBoundBrowserObject is a backing for some object bound to the window |
13 // in JS that knows how to dispatch messages to an associated c++ object living | 15 // in JS that knows how to dispatch messages to an associated c++ object living |
14 // in the browser process. | 16 // in the browser process. |
15 class DOMBoundBrowserObject : public webkit_glue::CppBoundClass { | 17 class DOMBoundBrowserObject : public webkit_glue::CppBoundClass { |
16 public: | 18 public: |
17 CONTENT_EXPORT DOMBoundBrowserObject(); | 19 CONTENT_EXPORT DOMBoundBrowserObject(); |
18 CONTENT_EXPORT virtual ~DOMBoundBrowserObject(); | 20 CONTENT_EXPORT virtual ~DOMBoundBrowserObject(); |
19 | 21 |
20 // Sets a property with the given name and value. | 22 // Sets a property with the given name and value. |
21 void SetProperty(const std::string& name, const std::string& value); | 23 void SetProperty(const std::string& name, const std::string& value); |
(...skipping 23 matching lines...) Expand all Loading... |
45 // The send() function provided to Javascript. | 47 // The send() function provided to Javascript. |
46 void Send(const webkit_glue::CppArgumentList& args, | 48 void Send(const webkit_glue::CppArgumentList& args, |
47 webkit_glue::CppVariant* result); | 49 webkit_glue::CppVariant* result); |
48 | 50 |
49 IPC::Sender* sender_; | 51 IPC::Sender* sender_; |
50 int routing_id_; | 52 int routing_id_; |
51 | 53 |
52 DISALLOW_COPY_AND_ASSIGN(WebUIBindings); | 54 DISALLOW_COPY_AND_ASSIGN(WebUIBindings); |
53 }; | 55 }; |
54 | 56 |
| 57 } // namespace content |
| 58 |
55 #endif // CONTENT_RENDERER_WEB_UI_BINDINGS_H_ | 59 #endif // CONTENT_RENDERER_WEB_UI_BINDINGS_H_ |
OLD | NEW |