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

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

Issue 2165523004: Force MimeHandlerView to always use BrowserPlugin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing lazyboy@'s and lfg@'s comments Created 4 years, 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_BROWSER_PLUGIN_GUEST_MANAGER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_MANAGER_H_
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_MANAGER_H_ 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_MANAGER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 10
(...skipping 16 matching lines...) Expand all
27 // calling |callback| for each. If one of the callbacks returns true, then 27 // calling |callback| for each. If one of the callbacks returns true, then
28 // the iteration exits early. 28 // the iteration exits early.
29 typedef base::Callback<bool(WebContents*)> GuestCallback; 29 typedef base::Callback<bool(WebContents*)> GuestCallback;
30 virtual bool ForEachGuest(WebContents* embedder_web_contents, 30 virtual bool ForEachGuest(WebContents* embedder_web_contents,
31 const GuestCallback& callback); 31 const GuestCallback& callback);
32 32
33 // Returns the "full page" guest if there is one. That is, if there is a 33 // Returns the "full page" guest if there is one. That is, if there is a
34 // single BrowserPlugin in the given embedder which takes up the full page, 34 // single BrowserPlugin in the given embedder which takes up the full page,
35 // then it is returned. 35 // then it is returned.
36 virtual WebContents* GetFullPageGuest(WebContents* embedder_web_contents); 36 virtual WebContents* GetFullPageGuest(WebContents* embedder_web_contents);
37
38 // TODO(ekaramad): Remove this method once MimeHandlerViewGuest is implemented
39 // based on OOPIF (https://crbug.com/563285).
40 // Returns true if the given |web_contents| belongs to a MimeHandlerViewGuest.
41 virtual bool IsForMimeHandlerViewGuest(WebContents* web_contents);
37 }; 42 };
38 43
39 } // namespace content 44 } // namespace content
40 45
41 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_MANAGER_H_ 46 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698