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

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

Issue 1365563003: Prevent guest views from issuing a search for empty text. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lint Created 5 years, 2 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 <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 uint32_t max_bitmap_size, 635 uint32_t max_bitmap_size,
636 bool bypass_cache, 636 bool bypass_cache,
637 const ImageDownloadCallback& callback) = 0; 637 const ImageDownloadCallback& callback) = 0;
638 638
639 // Returns true if the WebContents is responsible for displaying a subframe 639 // Returns true if the WebContents is responsible for displaying a subframe
640 // in a different process from its parent page. 640 // in a different process from its parent page.
641 // TODO: this doesn't really belong here. With site isolation, this should be 641 // TODO: this doesn't really belong here. With site isolation, this should be
642 // removed since we can then embed iframes in different processes. 642 // removed since we can then embed iframes in different processes.
643 virtual bool IsSubframe() const = 0; 643 virtual bool IsSubframe() const = 0;
644 644
645 // Finds text on a page. 645 // Finds text on a page. |search_text| should not be empty.
646 virtual void Find(int request_id, 646 virtual void Find(int request_id,
647 const base::string16& search_text, 647 const base::string16& search_text,
648 const blink::WebFindOptions& options) = 0; 648 const blink::WebFindOptions& options) = 0;
649 649
650 // Notifies the renderer that the user has closed the FindInPage window 650 // Notifies the renderer that the user has closed the FindInPage window
651 // (and what action to take regarding the selection). 651 // (and what action to take regarding the selection).
652 virtual void StopFinding(StopFindAction action) = 0; 652 virtual void StopFinding(StopFindAction action) = 0;
653 653
654 // Requests the renderer to insert CSS into the main frame's document. 654 // Requests the renderer to insert CSS into the main frame's document.
655 virtual void InsertCSS(const std::string& css) = 0; 655 virtual void InsertCSS(const std::string& css) = 0;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 694
695 private: 695 private:
696 // This interface should only be implemented inside content. 696 // This interface should only be implemented inside content.
697 friend class WebContentsImpl; 697 friend class WebContentsImpl;
698 WebContents() {} 698 WebContents() {}
699 }; 699 };
700 700
701 } // namespace content 701 } // namespace content
702 702
703 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 703 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698