OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
607 int32 page_id, | 607 int32 page_id, |
608 const std::wstring& title) {} | 608 const std::wstring& title) {} |
609 | 609 |
610 // The page's encoding was changed and should be updated. | 610 // The page's encoding was changed and should be updated. |
611 virtual void UpdateEncoding(RenderViewHost* render_view_host, | 611 virtual void UpdateEncoding(RenderViewHost* render_view_host, |
612 const std::string& encoding) {} | 612 const std::string& encoding) {} |
613 | 613 |
614 // The destination URL has changed should be updated | 614 // The destination URL has changed should be updated |
615 virtual void UpdateTargetURL(int32 page_id, const GURL& url) {} | 615 virtual void UpdateTargetURL(int32 page_id, const GURL& url) {} |
616 | 616 |
617 // The thumbnail representation of the page changed and should be updated. | |
618 virtual void UpdateThumbnail(const GURL& url, | |
619 const SkBitmap& bitmap, | |
620 const ThumbnailScore& score) {} | |
621 | |
622 // Inspector setting was changed and should be persisted. | 617 // Inspector setting was changed and should be persisted. |
623 virtual void UpdateInspectorSetting(const std::string& key, | 618 virtual void UpdateInspectorSetting(const std::string& key, |
624 const std::string& value) = 0; | 619 const std::string& value) = 0; |
625 | 620 |
626 virtual void ClearInspectorSettings() = 0; | 621 virtual void ClearInspectorSettings() = 0; |
627 | 622 |
628 // The page is trying to close the RenderView's representation in the client. | 623 // The page is trying to close the RenderView's representation in the client. |
629 virtual void Close(RenderViewHost* render_view_host) {} | 624 virtual void Close(RenderViewHost* render_view_host) {} |
630 | 625 |
631 // The page is trying to move the RenderView's representation in the client. | 626 // The page is trying to move the RenderView's representation in the client. |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
754 bool remember) {} | 749 bool remember) {} |
755 | 750 |
756 // Update the content restrictions, i.e. disable print/copy. | 751 // Update the content restrictions, i.e. disable print/copy. |
757 virtual void UpdateContentRestrictions(int restrictions) {} | 752 virtual void UpdateContentRestrictions(int restrictions) {} |
758 | 753 |
759 protected: | 754 protected: |
760 virtual ~RenderViewHostDelegate() {} | 755 virtual ~RenderViewHostDelegate() {} |
761 }; | 756 }; |
762 | 757 |
763 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 758 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |