| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 int content_restrictions() const { return content_restrictions_; } | 52 int content_restrictions() const { return content_restrictions_; } |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 explicit CoreTabHelper(content::WebContents* web_contents); | 55 explicit CoreTabHelper(content::WebContents* web_contents); |
| 56 friend class content::WebContentsUserData<CoreTabHelper>; | 56 friend class content::WebContentsUserData<CoreTabHelper>; |
| 57 | 57 |
| 58 static bool GetStatusTextForWebContents(base::string16* status_text, | 58 static bool GetStatusTextForWebContents(base::string16* status_text, |
| 59 content::WebContents* source); | 59 content::WebContents* source); |
| 60 | 60 |
| 61 // content::WebContentsObserver overrides: | 61 // content::WebContentsObserver overrides: |
| 62 void DidStartLoading(content::RenderViewHost* render_view_host) override; | 62 void DidStartLoading() override; |
| 63 void WasShown() override; | 63 void WasShown() override; |
| 64 void WebContentsDestroyed() override; | 64 void WebContentsDestroyed() override; |
| 65 void BeforeUnloadFired(const base::TimeTicks& proceed_time) override; | 65 void BeforeUnloadFired(const base::TimeTicks& proceed_time) override; |
| 66 void BeforeUnloadDialogCancelled() override; | 66 void BeforeUnloadDialogCancelled() override; |
| 67 bool OnMessageReceived(const IPC::Message& message, | 67 bool OnMessageReceived(const IPC::Message& message, |
| 68 content::RenderFrameHost* render_frame_host) override; | 68 content::RenderFrameHost* render_frame_host) override; |
| 69 | 69 |
| 70 void OnRequestThumbnailForContextNodeACK(const std::string& thumbnail_data, | 70 void OnRequestThumbnailForContextNodeACK(const std::string& thumbnail_data, |
| 71 const gfx::Size& original_size); | 71 const gfx::Size& original_size); |
| 72 | 72 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 87 base::TimeTicks unload_detached_start_time_; | 87 base::TimeTicks unload_detached_start_time_; |
| 88 | 88 |
| 89 // 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 |
| 90 // (full-page plugins for now only) permissions. | 90 // (full-page plugins for now only) permissions. |
| 91 int content_restrictions_; | 91 int content_restrictions_; |
| 92 | 92 |
| 93 DISALLOW_COPY_AND_ASSIGN(CoreTabHelper); | 93 DISALLOW_COPY_AND_ASSIGN(CoreTabHelper); |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_CORE_TAB_HELPER_H_ | 96 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_CORE_TAB_HELPER_H_ |
| OLD | NEW |