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

Unified Diff: content/public/browser/browser_plugin_guest_manager_delegate.h

Issue 261363002: Rename BrowserPluginGuestManagerDelegate to BrowserPluginGuestManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@guestview_manager_cleanupguestmanager
Patch Set: Fixed Android Build (Hopefully) Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/browser_plugin_guest_manager_delegate.h
diff --git a/content/public/browser/browser_plugin_guest_manager_delegate.h b/content/public/browser/browser_plugin_guest_manager_delegate.h
deleted file mode 100644
index 66651b4c41db767f978d793690d627227c9708dc..0000000000000000000000000000000000000000
--- a/content/public/browser/browser_plugin_guest_manager_delegate.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_MANAGER_DELEGATE_H_
-#define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_MANAGER_DELEGATE_H_
-
-#include <string>
-
-#include "base/callback.h"
-#include "content/common/content_export.h"
-
-class GURL;
-
-namespace base {
-class DictionaryValue;
-} // namespace base
-
-namespace content {
-
-class SiteInstance;
-class WebContents;
-
-// A BrowserPluginGuestManagerDelegate offloads guest management and routing
-// operations outside of the content layer.
-class CONTENT_EXPORT BrowserPluginGuestManagerDelegate {
- public:
- virtual ~BrowserPluginGuestManagerDelegate() {}
-
- // Requests the allocation of a new guest WebContents.
- virtual content::WebContents* CreateGuest(
- content::SiteInstance* embedder_site_instance,
- int instance_id,
- const std::string& storage_partition_id,
- bool persist_storage,
- scoped_ptr<base::DictionaryValue> extra_params);
-
- // Return a new instance ID.
- // TODO(fsamuel): Remove this. Once the instance ID concept is moved
- // entirely out of content and into chrome, this API will be unnecessary.
- virtual int GetNextInstanceID();
-
- typedef base::Callback<void(WebContents*)> GuestByInstanceIDCallback;
- // Requests a guest WebContents associated with the provided
- // |guest_instance_id|. If a guest associated with the provided ID
- // does not exist, then the |callback| will be called with a NULL
- // WebContents. If the provided |embedder_render_process_id| does
- // not own the requested guest, then the embedder will be killed,
- // and the |callback| will not be called.
- virtual void MaybeGetGuestByInstanceIDOrKill(
- int guest_instance_id,
- int embedder_render_process_id,
- const GuestByInstanceIDCallback& callback) {}
-
- // Iterates over all WebContents belonging to a given |embedder_web_contents|,
- // calling |callback| for each. If one of the callbacks returns true, then
- // the iteration exits early.
- typedef base::Callback<bool(WebContents*)> GuestCallback;
- virtual bool ForEachGuest(WebContents* embedder_web_contents,
- const GuestCallback& callback);
-};
-
-} // namespace content
-
-#endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_MANAGER_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698