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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 | 267 |
268 virtual void RunBeforeUnloadConfirm(RenderViewHost* rvh, | 268 virtual void RunBeforeUnloadConfirm(RenderViewHost* rvh, |
269 const string16& message, | 269 const string16& message, |
270 bool is_reload, | 270 bool is_reload, |
271 IPC::Message* reply_msg) {} | 271 IPC::Message* reply_msg) {} |
272 | 272 |
273 // A message was added to to the console. | 273 // A message was added to to the console. |
274 virtual bool AddMessageToConsole(int32 level, | 274 virtual bool AddMessageToConsole(int32 level, |
275 const string16& message, | 275 const string16& message, |
276 int32 line_no, | 276 int32 line_no, |
277 const string16& source_id); | 277 const string16& source_id, |
| 278 const string16& stack_trace); |
278 | 279 |
279 // Return a dummy RendererPreferences object that will be used by the renderer | 280 // Return a dummy RendererPreferences object that will be used by the renderer |
280 // associated with the owning RenderViewHost. | 281 // associated with the owning RenderViewHost. |
281 virtual RendererPreferences GetRendererPrefs( | 282 virtual RendererPreferences GetRendererPrefs( |
282 BrowserContext* browser_context) const = 0; | 283 BrowserContext* browser_context) const = 0; |
283 | 284 |
284 // Returns a WebPreferences object that will be used by the renderer | 285 // Returns a WebPreferences object that will be used by the renderer |
285 // associated with the owning render view host. | 286 // associated with the owning render view host. |
286 virtual WebPreferences GetWebkitPrefs(); | 287 virtual WebPreferences GetWebkitPrefs(); |
287 | 288 |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 virtual SessionStorageNamespace* GetSessionStorageNamespace( | 421 virtual SessionStorageNamespace* GetSessionStorageNamespace( |
421 SiteInstance* instance); | 422 SiteInstance* instance); |
422 | 423 |
423 protected: | 424 protected: |
424 virtual ~RenderViewHostDelegate() {} | 425 virtual ~RenderViewHostDelegate() {} |
425 }; | 426 }; |
426 | 427 |
427 } // namespace content | 428 } // namespace content |
428 | 429 |
429 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 430 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |