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

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

Issue 11225045: Move a bunch of content\common code into the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 8 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/renderer/v8_value_converter_impl.cc ('k') | content/renderer/web_ui_bindings.cc » ('j') | 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) 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
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_
OLDNEW
« no previous file with comments | « content/renderer/v8_value_converter_impl.cc ('k') | content/renderer/web_ui_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698