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

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

Issue 2254273003: Remove text encoding UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 3 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
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PUBLIC_BROWSER_WEB_CONTENTS_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 virtual void GenerateMHTML( 565 virtual void GenerateMHTML(
566 const MHTMLGenerationParams& params, 566 const MHTMLGenerationParams& params,
567 const base::Callback<void(int64_t /* size of the file */)>& callback) = 0; 567 const base::Callback<void(int64_t /* size of the file */)>& callback) = 0;
568 568
569 // Returns the contents MIME type after a navigation. 569 // Returns the contents MIME type after a navigation.
570 virtual const std::string& GetContentsMimeType() const = 0; 570 virtual const std::string& GetContentsMimeType() const = 0;
571 571
572 // Returns true if this WebContents will notify about disconnection. 572 // Returns true if this WebContents will notify about disconnection.
573 virtual bool WillNotifyDisconnection() const = 0; 573 virtual bool WillNotifyDisconnection() const = 0;
574 574
575 // Override the encoding and reload the page by sending down
576 // ViewMsg_SetPageEncoding to the renderer. |UpdateEncoding| is kinda
577 // the opposite of this, by which 'browser' is notified of
578 // the encoding of the current tab from 'renderer' (determined by
579 // auto-detect, http header, meta, bom detection, etc).
580 virtual void SetOverrideEncoding(const std::string& encoding) = 0;
581
582 // Remove any user-defined override encoding and reload by sending down
583 // ViewMsg_ResetPageEncodingToDefault to the renderer.
584 virtual void ResetOverrideEncoding() = 0;
585
586 // Returns the settings which get passed to the renderer. 575 // Returns the settings which get passed to the renderer.
587 virtual content::RendererPreferences* GetMutableRendererPrefs() = 0; 576 virtual content::RendererPreferences* GetMutableRendererPrefs() = 0;
588 577
589 // Tells the tab to close now. The tab will take care not to close until it's 578 // Tells the tab to close now. The tab will take care not to close until it's
590 // out of nested message loops. 579 // out of nested message loops.
591 virtual void Close() = 0; 580 virtual void Close() = 0;
592 581
593 // A render view-originated drag has ended. Informs the render view host and 582 // A render view-originated drag has ended. Informs the render view host and
594 // WebContentsDelegate. 583 // WebContentsDelegate.
595 virtual void SystemDragEnded() = 0; 584 virtual void SystemDragEnded() = 0;
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 738
750 private: 739 private:
751 // This interface should only be implemented inside content. 740 // This interface should only be implemented inside content.
752 friend class WebContentsImpl; 741 friend class WebContentsImpl;
753 WebContents() {} 742 WebContents() {}
754 }; 743 };
755 744
756 } // namespace content 745 } // namespace content
757 746
758 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 747 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698