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_TAB_CONTENTS_TAB_CONTENTS_H_ | 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
751 virtual void DidCancelLoading(); | 751 virtual void DidCancelLoading(); |
752 virtual void DidChangeLoadProgress(double progress); | 752 virtual void DidChangeLoadProgress(double progress); |
753 virtual void DocumentOnLoadCompletedInMainFrame( | 753 virtual void DocumentOnLoadCompletedInMainFrame( |
754 RenderViewHost* render_view_host, | 754 RenderViewHost* render_view_host, |
755 int32 page_id); | 755 int32 page_id); |
756 virtual void RequestOpenURL(const GURL& url, const GURL& referrer, | 756 virtual void RequestOpenURL(const GURL& url, const GURL& referrer, |
757 WindowOpenDisposition disposition); | 757 WindowOpenDisposition disposition); |
758 virtual void ProcessExternalHostMessage(const std::string& message, | 758 virtual void ProcessExternalHostMessage(const std::string& message, |
759 const std::string& origin, | 759 const std::string& origin, |
760 const std::string& target); | 760 const std::string& target); |
761 virtual void RunJavaScriptMessage(const std::wstring& message, | 761 virtual void RunJavaScriptMessage(const RenderViewHost* rvh, |
| 762 const std::wstring& message, |
762 const std::wstring& default_prompt, | 763 const std::wstring& default_prompt, |
763 const GURL& frame_url, | 764 const GURL& frame_url, |
764 const int flags, | 765 const int flags, |
765 IPC::Message* reply_msg, | 766 IPC::Message* reply_msg, |
766 bool* did_suppress_message); | 767 bool* did_suppress_message); |
767 virtual void RunBeforeUnloadConfirm(const std::wstring& message, | 768 virtual void RunBeforeUnloadConfirm(const RenderViewHost* rvh, |
| 769 const std::wstring& message, |
768 IPC::Message* reply_msg); | 770 IPC::Message* reply_msg); |
769 virtual GURL GetAlternateErrorPageURL() const; | 771 virtual GURL GetAlternateErrorPageURL() const; |
770 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; | 772 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; |
771 virtual WebPreferences GetWebkitPrefs(); | 773 virtual WebPreferences GetWebkitPrefs(); |
772 virtual void OnUserGesture(); | 774 virtual void OnUserGesture(); |
773 virtual void OnIgnoredUIEvent(); | 775 virtual void OnIgnoredUIEvent(); |
774 virtual void OnCrossSiteResponse(int new_render_process_host_id, | 776 virtual void OnCrossSiteResponse(int new_render_process_host_id, |
775 int new_request_id); | 777 int new_request_id); |
776 virtual void RendererUnresponsive(RenderViewHost* render_view_host, | 778 virtual void RendererUnresponsive(RenderViewHost* render_view_host, |
777 bool is_during_unload); | 779 bool is_during_unload); |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
983 ObserverList<TabContentsObserver> observers_; | 985 ObserverList<TabContentsObserver> observers_; |
984 | 986 |
985 // Content restrictions, used to disable print/copy etc based on content's | 987 // Content restrictions, used to disable print/copy etc based on content's |
986 // (full-page plugins for now only) permissions. | 988 // (full-page plugins for now only) permissions. |
987 int content_restrictions_; | 989 int content_restrictions_; |
988 | 990 |
989 DISALLOW_COPY_AND_ASSIGN(TabContents); | 991 DISALLOW_COPY_AND_ASSIGN(TabContents); |
990 }; | 992 }; |
991 | 993 |
992 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 994 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |