OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 int32 page_id, const GURL& doc_url, | 521 int32 page_id, const GURL& doc_url, |
522 bool autodetected) {} | 522 bool autodetected) {} |
523 | 523 |
524 // |url| is assigned to a server that can provide alternate error pages. If | 524 // |url| is assigned to a server that can provide alternate error pages. If |
525 // the returned URL is empty, the default error page built into WebKit will | 525 // the returned URL is empty, the default error page built into WebKit will |
526 // be used. | 526 // be used. |
527 virtual GURL GetAlternateErrorPageURL() const; | 527 virtual GURL GetAlternateErrorPageURL() const; |
528 | 528 |
529 // Return a dummy RendererPreferences object that will be used by the renderer | 529 // Return a dummy RendererPreferences object that will be used by the renderer |
530 // associated with the owning RenderViewHost. | 530 // associated with the owning RenderViewHost. |
531 virtual RendererPreferences GetRendererPrefs() const = 0; | 531 virtual RendererPreferences GetRendererPrefs(Profile* profile) const = 0; |
532 | 532 |
533 // Returns a WebPreferences object that will be used by the renderer | 533 // Returns a WebPreferences object that will be used by the renderer |
534 // associated with the owning render view host. | 534 // associated with the owning render view host. |
535 virtual WebPreferences GetWebkitPrefs(); | 535 virtual WebPreferences GetWebkitPrefs(); |
536 | 536 |
537 // Notification from the renderer that JS runs out of memory. | 537 // Notification from the renderer that JS runs out of memory. |
538 virtual void OnJSOutOfMemory() {} | 538 virtual void OnJSOutOfMemory() {} |
539 | 539 |
540 // Returns true if this this object can be blurred through a javascript | 540 // Returns true if this this object can be blurred through a javascript |
541 // obj.blur() call. ConstrainedWindows shouldn't be able to be blurred, but | 541 // obj.blur() call. ConstrainedWindows shouldn't be able to be blurred, but |
(...skipping 22 matching lines...) Expand all Loading... |
564 virtual bool IsExternalTabContainer() const; | 564 virtual bool IsExternalTabContainer() const; |
565 | 565 |
566 // The RenderView has inserted one css file into page. | 566 // The RenderView has inserted one css file into page. |
567 virtual void DidInsertCSS() {} | 567 virtual void DidInsertCSS() {} |
568 | 568 |
569 // A different node in the page got focused. | 569 // A different node in the page got focused. |
570 virtual void FocusedNodeChanged() {} | 570 virtual void FocusedNodeChanged() {} |
571 }; | 571 }; |
572 | 572 |
573 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 573 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |