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_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <functional> | 10 #include <functional> |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 bool IsSavable() override; | 333 bool IsSavable() override; |
334 void OnSavePage() override; | 334 void OnSavePage() override; |
335 bool SavePage(const base::FilePath& main_file, | 335 bool SavePage(const base::FilePath& main_file, |
336 const base::FilePath& dir_path, | 336 const base::FilePath& dir_path, |
337 SavePageType save_type) override; | 337 SavePageType save_type) override; |
338 void SaveFrame(const GURL& url, const Referrer& referrer) override; | 338 void SaveFrame(const GURL& url, const Referrer& referrer) override; |
339 void SaveFrameWithHeaders(const GURL& url, | 339 void SaveFrameWithHeaders(const GURL& url, |
340 const Referrer& referrer, | 340 const Referrer& referrer, |
341 const std::string& headers) override; | 341 const std::string& headers) override; |
342 void GenerateMHTML(const base::FilePath& file, | 342 void GenerateMHTML(const base::FilePath& file, |
| 343 bool use_binary_encoding, |
343 const base::Callback<void(int64_t)>& callback) override; | 344 const base::Callback<void(int64_t)>& callback) override; |
344 const std::string& GetContentsMimeType() const override; | 345 const std::string& GetContentsMimeType() const override; |
345 bool WillNotifyDisconnection() const override; | 346 bool WillNotifyDisconnection() const override; |
346 void SetOverrideEncoding(const std::string& encoding) override; | 347 void SetOverrideEncoding(const std::string& encoding) override; |
347 void ResetOverrideEncoding() override; | 348 void ResetOverrideEncoding() override; |
348 RendererPreferences* GetMutableRendererPrefs() override; | 349 RendererPreferences* GetMutableRendererPrefs() override; |
349 void Close() override; | 350 void Close() override; |
350 void SystemDragEnded() override; | 351 void SystemDragEnded() override; |
351 void UserGestureDone() override; | 352 void UserGestureDone() override; |
352 void SetClosedByUserGesture(bool value) override; | 353 void SetClosedByUserGesture(bool value) override; |
(...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1375 // Adds/removes a callback called on creation of each new WebContents. | 1376 // Adds/removes a callback called on creation of each new WebContents. |
1376 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1377 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1377 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1378 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1378 | 1379 |
1379 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1380 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
1380 }; | 1381 }; |
1381 | 1382 |
1382 } // namespace content | 1383 } // namespace content |
1383 | 1384 |
1384 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1385 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |