Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(291)

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 1947263004: Introduces a new MHTML generation parameter specifying different behvaior for cache-control headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase onto origin/master. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
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_
OLDNEW
« no previous file with comments | « content/browser/download/save_package.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698