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 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE; | 179 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE; |
180 virtual void Focus() OVERRIDE; | 180 virtual void Focus() OVERRIDE; |
181 virtual void FocusThroughTabTraversal(bool reverse) OVERRIDE; | 181 virtual void FocusThroughTabTraversal(bool reverse) OVERRIDE; |
182 virtual bool ShowingInterstitialPage() const OVERRIDE; | 182 virtual bool ShowingInterstitialPage() const OVERRIDE; |
183 virtual content::InterstitialPage* GetInterstitialPage() const OVERRIDE; | 183 virtual content::InterstitialPage* GetInterstitialPage() const OVERRIDE; |
184 virtual bool IsSavable() OVERRIDE; | 184 virtual bool IsSavable() OVERRIDE; |
185 virtual void OnSavePage() OVERRIDE; | 185 virtual void OnSavePage() OVERRIDE; |
186 virtual bool SavePage(const FilePath& main_file, | 186 virtual bool SavePage(const FilePath& main_file, |
187 const FilePath& dir_path, | 187 const FilePath& dir_path, |
188 content::SavePageType save_type) OVERRIDE; | 188 content::SavePageType save_type) OVERRIDE; |
| 189 virtual void GenerateMHTML( |
| 190 const FilePath& file, |
| 191 const base::Callback<void(const FilePath&, int64)>& callback) OVERRIDE; |
189 virtual bool IsActiveEntry(int32 page_id) OVERRIDE; | 192 virtual bool IsActiveEntry(int32 page_id) OVERRIDE; |
190 | 193 |
191 virtual const std::string& GetContentsMimeType() const OVERRIDE; | 194 virtual const std::string& GetContentsMimeType() const OVERRIDE; |
192 virtual bool WillNotifyDisconnection() const OVERRIDE; | 195 virtual bool WillNotifyDisconnection() const OVERRIDE; |
193 virtual void SetOverrideEncoding(const std::string& encoding) OVERRIDE; | 196 virtual void SetOverrideEncoding(const std::string& encoding) OVERRIDE; |
194 virtual void ResetOverrideEncoding() OVERRIDE; | 197 virtual void ResetOverrideEncoding() OVERRIDE; |
195 virtual content::RendererPreferences* GetMutableRendererPrefs() OVERRIDE; | 198 virtual content::RendererPreferences* GetMutableRendererPrefs() OVERRIDE; |
196 virtual void SetNewTabStartTime(const base::TimeTicks& time) OVERRIDE; | 199 virtual void SetNewTabStartTime(const base::TimeTicks& time) OVERRIDE; |
197 virtual base::TimeTicks GetNewTabStartTime() const OVERRIDE; | 200 virtual base::TimeTicks GetNewTabStartTime() const OVERRIDE; |
198 virtual void OnCloseStarted() OVERRIDE; | 201 virtual void OnCloseStarted() OVERRIDE; |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 // (full-page plugins for now only) permissions. | 649 // (full-page plugins for now only) permissions. |
647 int content_restrictions_; | 650 int content_restrictions_; |
648 | 651 |
649 // Our view type. Default is VIEW_TYPE_TAB_CONTENTS. | 652 // Our view type. Default is VIEW_TYPE_TAB_CONTENTS. |
650 content::ViewType view_type_; | 653 content::ViewType view_type_; |
651 | 654 |
652 DISALLOW_COPY_AND_ASSIGN(TabContents); | 655 DISALLOW_COPY_AND_ASSIGN(TabContents); |
653 }; | 656 }; |
654 | 657 |
655 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 658 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |