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