| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 class WakeLockServiceContext; | 76 class WakeLockServiceContext; |
| 77 class WebContentsAudioMuter; | 77 class WebContentsAudioMuter; |
| 78 class WebContentsDelegate; | 78 class WebContentsDelegate; |
| 79 class WebContentsImpl; | 79 class WebContentsImpl; |
| 80 class WebContentsView; | 80 class WebContentsView; |
| 81 class WebContentsViewDelegate; | 81 class WebContentsViewDelegate; |
| 82 struct AXEventNotificationDetails; | 82 struct AXEventNotificationDetails; |
| 83 struct ColorSuggestion; | 83 struct ColorSuggestion; |
| 84 struct FaviconURL; | 84 struct FaviconURL; |
| 85 struct LoadNotificationDetails; | 85 struct LoadNotificationDetails; |
| 86 struct MHTMLGenerationParams; |
| 86 struct ResourceRedirectDetails; | 87 struct ResourceRedirectDetails; |
| 87 struct ResourceRequestDetails; | 88 struct ResourceRequestDetails; |
| 88 | 89 |
| 89 #if defined(OS_ANDROID) | 90 #if defined(OS_ANDROID) |
| 90 class WebContentsAndroid; | 91 class WebContentsAndroid; |
| 91 #endif | 92 #endif |
| 92 | 93 |
| 93 // Factory function for the implementations that content knows about. Takes | 94 // Factory function for the implementations that content knows about. Takes |
| 94 // ownership of |delegate|. | 95 // ownership of |delegate|. |
| 95 WebContentsView* CreateWebContentsView( | 96 WebContentsView* CreateWebContentsView( |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 InterstitialPage* GetInterstitialPage() const override; | 349 InterstitialPage* GetInterstitialPage() const override; |
| 349 bool IsSavable() override; | 350 bool IsSavable() override; |
| 350 void OnSavePage() override; | 351 void OnSavePage() override; |
| 351 bool SavePage(const base::FilePath& main_file, | 352 bool SavePage(const base::FilePath& main_file, |
| 352 const base::FilePath& dir_path, | 353 const base::FilePath& dir_path, |
| 353 SavePageType save_type) override; | 354 SavePageType save_type) override; |
| 354 void SaveFrame(const GURL& url, const Referrer& referrer) override; | 355 void SaveFrame(const GURL& url, const Referrer& referrer) override; |
| 355 void SaveFrameWithHeaders(const GURL& url, | 356 void SaveFrameWithHeaders(const GURL& url, |
| 356 const Referrer& referrer, | 357 const Referrer& referrer, |
| 357 const std::string& headers) override; | 358 const std::string& headers) override; |
| 358 void GenerateMHTML(const base::FilePath& file, | 359 void GenerateMHTML(const MHTMLGenerationParams& params, |
| 359 bool use_binary_encoding, | |
| 360 const base::Callback<void(int64_t)>& callback) override; | 360 const base::Callback<void(int64_t)>& callback) override; |
| 361 const std::string& GetContentsMimeType() const override; | 361 const std::string& GetContentsMimeType() const override; |
| 362 bool WillNotifyDisconnection() const override; | 362 bool WillNotifyDisconnection() const override; |
| 363 void SetOverrideEncoding(const std::string& encoding) override; | 363 void SetOverrideEncoding(const std::string& encoding) override; |
| 364 void ResetOverrideEncoding() override; | 364 void ResetOverrideEncoding() override; |
| 365 RendererPreferences* GetMutableRendererPrefs() override; | 365 RendererPreferences* GetMutableRendererPrefs() override; |
| 366 void Close() override; | 366 void Close() override; |
| 367 void SystemDragEnded() override; | 367 void SystemDragEnded() override; |
| 368 void UserGestureDone() override; | 368 void UserGestureDone() override; |
| 369 void SetClosedByUserGesture(bool value) override; | 369 void SetClosedByUserGesture(bool value) override; |
| (...skipping 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1394 // Adds/removes a callback called on creation of each new WebContents. | 1394 // Adds/removes a callback called on creation of each new WebContents. |
| 1395 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1395 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1396 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1396 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1397 | 1397 |
| 1398 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1398 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1399 }; | 1399 }; |
| 1400 | 1400 |
| 1401 } // namespace content | 1401 } // namespace content |
| 1402 | 1402 |
| 1403 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1403 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |