OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 const std::wstring& default_prompt, | 367 const std::wstring& default_prompt, |
368 const GURL& frame_url, | 368 const GURL& frame_url, |
369 const int flags, | 369 const int flags, |
370 IPC::Message* reply_msg, | 370 IPC::Message* reply_msg, |
371 bool* did_suppress_message) {} | 371 bool* did_suppress_message) {} |
372 | 372 |
373 virtual void RunBeforeUnloadConfirm(const RenderViewHost* rvh, | 373 virtual void RunBeforeUnloadConfirm(const RenderViewHost* rvh, |
374 const std::wstring& message, | 374 const std::wstring& message, |
375 IPC::Message* reply_msg) {} | 375 IPC::Message* reply_msg) {} |
376 | 376 |
377 // |url| is assigned to a server that can provide alternate error pages. If | |
378 // the returned URL is empty, the default error page built into WebKit will | |
379 // be used. | |
380 virtual GURL GetAlternateErrorPageURL() const; | |
381 | |
382 // Return a dummy RendererPreferences object that will be used by the renderer | 377 // Return a dummy RendererPreferences object that will be used by the renderer |
383 // associated with the owning RenderViewHost. | 378 // associated with the owning RenderViewHost. |
384 virtual RendererPreferences GetRendererPrefs(Profile* profile) const = 0; | 379 virtual RendererPreferences GetRendererPrefs(Profile* profile) const = 0; |
385 | 380 |
386 // Returns a WebPreferences object that will be used by the renderer | 381 // Returns a WebPreferences object that will be used by the renderer |
387 // associated with the owning render view host. | 382 // associated with the owning render view host. |
388 virtual WebPreferences GetWebkitPrefs(); | 383 virtual WebPreferences GetWebkitPrefs(); |
389 | 384 |
390 // Notification the user has made a gesture while focus was on the | 385 // Notification the user has made a gesture while focus was on the |
391 // page. This is used to avoid uninitiated user downloads (aka carpet | 386 // page. This is used to avoid uninitiated user downloads (aka carpet |
(...skipping 30 matching lines...) Expand all Loading... |
422 // Returns true if the delegate will take care of asking the user, otherwise | 417 // Returns true if the delegate will take care of asking the user, otherwise |
423 // the caller will do the default behavior. | 418 // the caller will do the default behavior. |
424 bool RequestDesktopNotificationPermission(const GURL& source_origin, | 419 bool RequestDesktopNotificationPermission(const GURL& source_origin, |
425 int callback_context); | 420 int callback_context); |
426 | 421 |
427 protected: | 422 protected: |
428 virtual ~RenderViewHostDelegate() {} | 423 virtual ~RenderViewHostDelegate() {} |
429 }; | 424 }; |
430 | 425 |
431 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 426 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |