OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_TAB_CONTENTS_CORE_TAB_HELPER_H_ | 5 #ifndef CHROME_BROWSER_UI_TAB_CONTENTS_CORE_TAB_HELPER_H_ |
6 #define CHROME_BROWSER_UI_TAB_CONTENTS_CORE_TAB_HELPER_H_ | 6 #define CHROME_BROWSER_UI_TAB_CONTENTS_CORE_TAB_HELPER_H_ |
7 | 7 |
8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
9 #include "content/public/browser/web_contents_observer.h" | 9 #include "content/public/browser/web_contents_observer.h" |
10 #include "content/public/browser/web_contents_user_data.h" | 10 #include "content/public/browser/web_contents_user_data.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 friend class content::WebContentsUserData<CoreTabHelper>; | 56 friend class content::WebContentsUserData<CoreTabHelper>; |
57 | 57 |
58 // content::WebContentsObserver overrides: | 58 // content::WebContentsObserver overrides: |
59 virtual void DidStartLoading( | 59 virtual void DidStartLoading( |
60 content::RenderViewHost* render_view_host) OVERRIDE; | 60 content::RenderViewHost* render_view_host) OVERRIDE; |
61 virtual void WasShown() OVERRIDE; | 61 virtual void WasShown() OVERRIDE; |
62 virtual void WebContentsDestroyed( | 62 virtual void WebContentsDestroyed( |
63 content::WebContents* web_contents) OVERRIDE; | 63 content::WebContents* web_contents) OVERRIDE; |
64 virtual void BeforeUnloadFired(const base::TimeTicks& proceed_time) OVERRIDE; | 64 virtual void BeforeUnloadFired(const base::TimeTicks& proceed_time) OVERRIDE; |
65 virtual void BeforeUnloadDialogCancelled() OVERRIDE; | 65 virtual void BeforeUnloadDialogCancelled() OVERRIDE; |
66 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 66 virtual bool OnMessageReceived( |
| 67 const IPC::Message& message, |
| 68 content::RenderFrameHost* render_frame_host) OVERRIDE; |
67 | 69 |
68 void OnRequestThumbnailForContextNodeACK(const SkBitmap& bitmap, | 70 void OnRequestThumbnailForContextNodeACK(const SkBitmap& bitmap, |
69 const gfx::Size& original_size); | 71 const gfx::Size& original_size); |
70 | 72 |
71 // Delegate for notifying our owner about stuff. Not owned by us. | 73 // Delegate for notifying our owner about stuff. Not owned by us. |
72 CoreTabHelperDelegate* delegate_; | 74 CoreTabHelperDelegate* delegate_; |
73 | 75 |
74 // The time when we started to create the new tab page. This time is from | 76 // The time when we started to create the new tab page. This time is from |
75 // before we created this WebContents. | 77 // before we created this WebContents. |
76 base::TimeTicks new_tab_start_time_; | 78 base::TimeTicks new_tab_start_time_; |
77 | 79 |
78 // The time that we started to close this WebContents. | 80 // The time that we started to close this WebContents. |
79 base::TimeTicks close_start_time_; | 81 base::TimeTicks close_start_time_; |
80 | 82 |
81 // The time when onbeforeunload ended. | 83 // The time when onbeforeunload ended. |
82 base::TimeTicks before_unload_end_time_; | 84 base::TimeTicks before_unload_end_time_; |
83 | 85 |
84 // The time when the tab was removed from view during close. | 86 // The time when the tab was removed from view during close. |
85 base::TimeTicks unload_detached_start_time_; | 87 base::TimeTicks unload_detached_start_time_; |
86 | 88 |
87 // Content restrictions, used to disable print/copy etc based on content's | 89 // Content restrictions, used to disable print/copy etc based on content's |
88 // (full-page plugins for now only) permissions. | 90 // (full-page plugins for now only) permissions. |
89 int content_restrictions_; | 91 int content_restrictions_; |
90 | 92 |
91 DISALLOW_COPY_AND_ASSIGN(CoreTabHelper); | 93 DISALLOW_COPY_AND_ASSIGN(CoreTabHelper); |
92 }; | 94 }; |
93 | 95 |
94 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_CORE_TAB_HELPER_H_ | 96 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_CORE_TAB_HELPER_H_ |
OLD | NEW |