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

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

Issue 376033002: Adding MimeHandlerView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pending-zork-patch2
Patch Set: With the new attach approach Created 6 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
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 <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 21 matching lines...) Expand all
32 // |guest_instance_id|. If a guest associated with the provided ID 32 // |guest_instance_id|. If a guest associated with the provided ID
33 // does not exist, then the |callback| will be called with a NULL 33 // does not exist, then the |callback| will be called with a NULL
34 // WebContents. If the provided |embedder_render_process_id| does 34 // WebContents. If the provided |embedder_render_process_id| does
35 // not own the requested guest, then the embedder will be killed, 35 // not own the requested guest, then the embedder will be killed,
36 // and the |callback| will not be called. 36 // and the |callback| will not be called.
37 virtual void MaybeGetGuestByInstanceIDOrKill( 37 virtual void MaybeGetGuestByInstanceIDOrKill(
38 WebContents* embedder_web_contents, 38 WebContents* embedder_web_contents,
39 int browser_plugin_instance_id, 39 int browser_plugin_instance_id,
40 const GuestByInstanceIDCallback& callback) {} 40 const GuestByInstanceIDCallback& callback) {}
41 41
42 virtual void CreateMimeHandlerViewGuest(int render_process_id,
Fady Samuel 2014/08/29 18:52:31 Is this necessary?
lazyboy 2014/08/29 22:08:24 No, removed.
43 int render_frame_id,
44 const std::string& url,
45 const std::string& mime_type,
46 int element_instance_id) {}
47
42 // Iterates over all WebContents belonging to a given |embedder_web_contents|, 48 // Iterates over all WebContents belonging to a given |embedder_web_contents|,
43 // calling |callback| for each. If one of the callbacks returns true, then 49 // calling |callback| for each. If one of the callbacks returns true, then
44 // the iteration exits early. 50 // the iteration exits early.
45 typedef base::Callback<bool(WebContents*)> GuestCallback; 51 typedef base::Callback<bool(WebContents*)> GuestCallback;
46 virtual bool ForEachGuest(WebContents* embedder_web_contents, 52 virtual bool ForEachGuest(WebContents* embedder_web_contents,
47 const GuestCallback& callback); 53 const GuestCallback& callback);
48 }; 54 };
49 55
50 } // namespace content 56 } // namespace content
51 57
52 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_MANAGER_H_ 58 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698