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

Side by Side Diff: chrome/browser/renderer_host/render_view_host.h

Issue 62032: Stop serializing WebString over IPC. The new rule is that only POD (plain ol... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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 | « no previous file | chrome/browser/renderer_host/render_view_host.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/scoped_ptr.h" 11 #include "base/scoped_ptr.h"
12 #include "chrome/browser/extensions/extension_function_dispatcher.h" 12 #include "chrome/browser/extensions/extension_function_dispatcher.h"
13 #include "chrome/browser/renderer_host/render_view_host_delegate.h" 13 #include "chrome/browser/renderer_host/render_view_host_delegate.h"
14 #include "chrome/browser/renderer_host/render_widget_host.h" 14 #include "chrome/browser/renderer_host/render_widget_host.h"
15 #include "chrome/common/modal_dialog_event.h" 15 #include "chrome/common/modal_dialog_event.h"
16 #include "chrome/common/page_zoom.h" 16 #include "chrome/common/page_zoom.h"
17 #ifdef CHROME_PERSONALIZATION 17 #ifdef CHROME_PERSONALIZATION
18 #include "chrome/personalization/personalization.h" 18 #include "chrome/personalization/personalization.h"
19 #endif 19 #endif
20 #include "third_party/WebKit/WebKit/chromium/public/WebConsoleMessage.h"
20 #include "webkit/glue/autofill_form.h" 21 #include "webkit/glue/autofill_form.h"
21 #include "webkit/glue/password_form_dom_manager.h" 22 #include "webkit/glue/password_form_dom_manager.h"
22 #include "webkit/glue/window_open_disposition.h" 23 #include "webkit/glue/window_open_disposition.h"
23 24
24 class AutofillForm; 25 class AutofillForm;
25 class NavigationEntry; 26 class NavigationEntry;
26 class RenderViewHostDelegate; 27 class RenderViewHostDelegate;
27 class SiteInstance; 28 class SiteInstance;
28 class SkBitmap; 29 class SkBitmap;
29 class ViewMsg_Navigate; 30 class ViewMsg_Navigate;
(...skipping 12 matching lines...) Expand all
42 } 43 }
43 44
44 namespace net { 45 namespace net {
45 enum LoadState; 46 enum LoadState;
46 } 47 }
47 48
48 namespace webkit_glue { 49 namespace webkit_glue {
49 struct WebApplicationInfo; 50 struct WebApplicationInfo;
50 } 51 }
51 52
52 namespace WebKit {
53 struct WebConsoleMessage;
54 }
55
56 // 53 //
57 // RenderViewHost 54 // RenderViewHost
58 // 55 //
59 // A RenderViewHost is responsible for creating and talking to a RenderView 56 // A RenderViewHost is responsible for creating and talking to a RenderView
60 // object in a child process. It exposes a high level API to users, for things 57 // object in a child process. It exposes a high level API to users, for things
61 // like loading pages, adjusting the display and other browser functionality, 58 // like loading pages, adjusting the display and other browser functionality,
62 // which it translates into IPC messages sent over the IPC channel with the 59 // which it translates into IPC messages sent over the IPC channel with the
63 // RenderView. It responds to all IPC messages sent by that RenderView and 60 // RenderView. It responds to all IPC messages sent by that RenderView and
64 // cracks them, calling a delegate object back with higher level types where 61 // cracks them, calling a delegate object back with higher level types where
65 // possible. 62 // possible.
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 228
232 // Runs some javascript within the context of a frame in the page. 229 // Runs some javascript within the context of a frame in the page.
233 void ExecuteJavascriptInWebFrame(const std::wstring& frame_xpath, 230 void ExecuteJavascriptInWebFrame(const std::wstring& frame_xpath,
234 const std::wstring& jscript); 231 const std::wstring& jscript);
235 232
236 // Insert some css into a frame in the page. 233 // Insert some css into a frame in the page.
237 void InsertCSSInWebFrame(const std::wstring& frame_xpath, 234 void InsertCSSInWebFrame(const std::wstring& frame_xpath,
238 const std::string& css); 235 const std::string& css);
239 236
240 // Logs a message to the console of a frame in the page. 237 // Logs a message to the console of a frame in the page.
241 void AddMessageToConsole(const std::wstring& frame_xpath, 238 void AddMessageToConsole(const string16& frame_xpath,
242 const WebKit::WebConsoleMessage&); 239 const string16& message,
240 const WebKit::WebConsoleMessage::Level&);
243 241
244 // Send command to the debugger 242 // Send command to the debugger
245 void DebugCommand(const std::wstring& cmd); 243 void DebugCommand(const std::wstring& cmd);
246 244
247 // Attach to the V8 instance for debugging 245 // Attach to the V8 instance for debugging
248 void DebugAttach(); 246 void DebugAttach();
249 247
250 // Detach from the V8 instance for debugging 248 // Detach from the V8 instance for debugging
251 void DebugDetach(); 249 void DebugDetach();
252 250
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 virtual ~RenderViewHostFactory() {} 657 virtual ~RenderViewHostFactory() {}
660 658
661 virtual RenderViewHost* CreateRenderViewHost( 659 virtual RenderViewHost* CreateRenderViewHost(
662 SiteInstance* instance, 660 SiteInstance* instance,
663 RenderViewHostDelegate* delegate, 661 RenderViewHostDelegate* delegate,
664 int routing_id, 662 int routing_id,
665 base::WaitableEvent* modal_dialog_event) = 0; 663 base::WaitableEvent* modal_dialog_event) = 0;
666 }; 664 };
667 665
668 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 666 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698