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