| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 // content::WebContentsObserver overrides: | 58 // content::WebContentsObserver overrides: |
| 59 void DidStartLoading(content::RenderViewHost* render_view_host) override; | 59 void DidStartLoading(content::RenderViewHost* render_view_host) override; |
| 60 void WasShown() override; | 60 void WasShown() override; |
| 61 void WebContentsDestroyed() override; | 61 void WebContentsDestroyed() override; |
| 62 void BeforeUnloadFired(const base::TimeTicks& proceed_time) override; | 62 void BeforeUnloadFired(const base::TimeTicks& proceed_time) override; |
| 63 void BeforeUnloadDialogCancelled() override; | 63 void BeforeUnloadDialogCancelled() override; |
| 64 bool OnMessageReceived(const IPC::Message& message, | 64 bool OnMessageReceived(const IPC::Message& message, |
| 65 content::RenderFrameHost* render_frame_host) override; | 65 content::RenderFrameHost* render_frame_host) override; |
| 66 | 66 |
| 67 void OnRequestThumbnailForContextNodeACK(const SkBitmap& bitmap, | 67 void OnRequestThumbnailForContextNodeACK(const std::string& thumbnail_data, |
| 68 const gfx::Size& original_size); | 68 const gfx::Size& original_size); |
| 69 | 69 |
| 70 // Delegate for notifying our owner about stuff. Not owned by us. | 70 // Delegate for notifying our owner about stuff. Not owned by us. |
| 71 CoreTabHelperDelegate* delegate_; | 71 CoreTabHelperDelegate* delegate_; |
| 72 | 72 |
| 73 // The time when we started to create the new tab page. This time is from | 73 // The time when we started to create the new tab page. This time is from |
| 74 // before we created this WebContents. | 74 // before we created this WebContents. |
| 75 base::TimeTicks new_tab_start_time_; | 75 base::TimeTicks new_tab_start_time_; |
| 76 | 76 |
| 77 // The time that we started to close this WebContents. | 77 // The time that we started to close this WebContents. |
| 78 base::TimeTicks close_start_time_; | 78 base::TimeTicks close_start_time_; |
| 79 | 79 |
| 80 // The time when onbeforeunload ended. | 80 // The time when onbeforeunload ended. |
| 81 base::TimeTicks before_unload_end_time_; | 81 base::TimeTicks before_unload_end_time_; |
| 82 | 82 |
| 83 // The time when the tab was removed from view during close. | 83 // The time when the tab was removed from view during close. |
| 84 base::TimeTicks unload_detached_start_time_; | 84 base::TimeTicks unload_detached_start_time_; |
| 85 | 85 |
| 86 // Content restrictions, used to disable print/copy etc based on content's | 86 // Content restrictions, used to disable print/copy etc based on content's |
| 87 // (full-page plugins for now only) permissions. | 87 // (full-page plugins for now only) permissions. |
| 88 int content_restrictions_; | 88 int content_restrictions_; |
| 89 | 89 |
| 90 DISALLOW_COPY_AND_ASSIGN(CoreTabHelper); | 90 DISALLOW_COPY_AND_ASSIGN(CoreTabHelper); |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_CORE_TAB_HELPER_H_ | 93 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_CORE_TAB_HELPER_H_ |
| OLD | NEW |