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

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

Issue 2140463002: Remove WebContents::HasManifest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Explanatory comment for manifest_url_ resetting Created 4 years, 5 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_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 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 // Notifies the renderer that the user has closed the FindInPage window 684 // Notifies the renderer that the user has closed the FindInPage window
685 // (and what action to take regarding the selection). 685 // (and what action to take regarding the selection).
686 virtual void StopFinding(StopFindAction action) = 0; 686 virtual void StopFinding(StopFindAction action) = 0;
687 687
688 // Requests the renderer to insert CSS into the main frame's document. 688 // Requests the renderer to insert CSS into the main frame's document.
689 virtual void InsertCSS(const std::string& css) = 0; 689 virtual void InsertCSS(const std::string& css) = 0;
690 690
691 // Returns true if audio has recently been audible from the WebContents. 691 // Returns true if audio has recently been audible from the WebContents.
692 virtual bool WasRecentlyAudible() = 0; 692 virtual bool WasRecentlyAudible() = 0;
693 693
694 // The callback invoked when the renderer responds to a request for the main
695 // frame document's manifest. The url will be empty if the document specifies
696 // no manifest, and the manifest will be empty if any other failures occurred.
694 typedef base::Callback<void(const GURL&, const Manifest&)> 697 typedef base::Callback<void(const GURL&, const Manifest&)>
695 GetManifestCallback; 698 GetManifestCallback;
696 699
697 // Requests the manifest URL and the Manifest of the main frame's document. 700 // Requests the manifest URL and the Manifest of the main frame's document.
698 virtual void GetManifest(const GetManifestCallback& callback) = 0; 701 virtual void GetManifest(const GetManifestCallback& callback) = 0;
699 702
700 typedef base::Callback<void(bool)> HasManifestCallback;
701
702 // Returns true if the main frame has a <link> to a web manifest, otherwise
703 // false. This method does not guarantee that the manifest exists at the
704 // specified location or is valid.
705 virtual void HasManifest(const HasManifestCallback& callback) = 0;
706
707 // Requests the renderer to exit fullscreen. 703 // Requests the renderer to exit fullscreen.
708 // |will_cause_resize| indicates whether the fullscreen change causes a 704 // |will_cause_resize| indicates whether the fullscreen change causes a
709 // view resize. e.g. This will be false when going from tab fullscreen to 705 // view resize. e.g. This will be false when going from tab fullscreen to
710 // browser fullscreen. 706 // browser fullscreen.
711 virtual void ExitFullscreen(bool will_cause_resize) = 0; 707 virtual void ExitFullscreen(bool will_cause_resize) = 0;
712 708
713 // Unblocks requests from renderer for a newly created window. This is 709 // Unblocks requests from renderer for a newly created window. This is
714 // used in showCreatedWindow() or sometimes later in cases where 710 // used in showCreatedWindow() or sometimes later in cases where
715 // delegate->ShouldResumeRequestsForCreatedWindow() indicated the requests 711 // delegate->ShouldResumeRequestsForCreatedWindow() indicated the requests
716 // should not yet be resumed. Then the client is responsible for calling this 712 // should not yet be resumed. Then the client is responsible for calling this
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 749
754 private: 750 private:
755 // This interface should only be implemented inside content. 751 // This interface should only be implemented inside content.
756 friend class WebContentsImpl; 752 friend class WebContentsImpl;
757 WebContents() {} 753 WebContents() {}
758 }; 754 };
759 755
760 } // namespace content 756 } // namespace content
761 757
762 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 758 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/common/manifest_manager_messages.h ('k') | content/renderer/manifest/manifest_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698