| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 74 |
| 75 private: | 75 private: |
| 76 explicit CoreTabHelper(content::WebContents* web_contents); | 76 explicit CoreTabHelper(content::WebContents* web_contents); |
| 77 friend class content::WebContentsUserData<CoreTabHelper>; | 77 friend class content::WebContentsUserData<CoreTabHelper>; |
| 78 | 78 |
| 79 static bool GetStatusTextForWebContents(base::string16* status_text, | 79 static bool GetStatusTextForWebContents(base::string16* status_text, |
| 80 content::WebContents* source); | 80 content::WebContents* source); |
| 81 | 81 |
| 82 // content::WebContentsObserver overrides: | 82 // content::WebContentsObserver overrides: |
| 83 void DidStartLoading() override; | 83 void DidStartLoading() override; |
| 84 void DocumentOnLoadCompletedInMainFrame() override; |
| 84 void WasShown() override; | 85 void WasShown() override; |
| 85 void WebContentsDestroyed() override; | 86 void WebContentsDestroyed() override; |
| 86 void BeforeUnloadFired(const base::TimeTicks& proceed_time) override; | 87 void BeforeUnloadFired(const base::TimeTicks& proceed_time) override; |
| 87 void BeforeUnloadDialogCancelled() override; | 88 void BeforeUnloadDialogCancelled() override; |
| 88 bool OnMessageReceived(const IPC::Message& message, | 89 bool OnMessageReceived(const IPC::Message& message, |
| 89 content::RenderFrameHost* render_frame_host) override; | 90 content::RenderFrameHost* render_frame_host) override; |
| 90 | 91 |
| 91 void OnRequestThumbnailForContextNodeACK(const std::string& thumbnail_data, | 92 void OnRequestThumbnailForContextNodeACK(const std::string& thumbnail_data, |
| 92 const gfx::Size& original_size, | 93 const gfx::Size& original_size, |
| 93 int callback_id); | 94 int callback_id); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 114 // Content restrictions, used to disable print/copy etc based on content's | 115 // Content restrictions, used to disable print/copy etc based on content's |
| 115 // (full-page plugins for now only) permissions. | 116 // (full-page plugins for now only) permissions. |
| 116 int content_restrictions_; | 117 int content_restrictions_; |
| 117 | 118 |
| 118 IDMap<ContextNodeThumbnailCallback, IDMapOwnPointer> thumbnail_callbacks_; | 119 IDMap<ContextNodeThumbnailCallback, IDMapOwnPointer> thumbnail_callbacks_; |
| 119 | 120 |
| 120 DISALLOW_COPY_AND_ASSIGN(CoreTabHelper); | 121 DISALLOW_COPY_AND_ASSIGN(CoreTabHelper); |
| 121 }; | 122 }; |
| 122 | 123 |
| 123 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_CORE_TAB_HELPER_H_ | 124 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_CORE_TAB_HELPER_H_ |
| OLD | NEW |