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

Unified Diff: extensions/browser/guest_view/guest_view_manager_delegate.h

Issue 1102173002: Move GuestView layer in browser to components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Mac Build + GN Test builds Created 5 years, 8 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: extensions/browser/guest_view/guest_view_manager_delegate.h
diff --git a/extensions/browser/guest_view/guest_view_manager_delegate.h b/extensions/browser/guest_view/guest_view_manager_delegate.h
deleted file mode 100644
index f6e1795fb86c931bf7537e31fd19e66b18f81d71..0000000000000000000000000000000000000000
--- a/extensions/browser/guest_view/guest_view_manager_delegate.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright 2015 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 EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_MANAGER_DELEGATE_H_
-#define EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_MANAGER_DELEGATE_H_
-
-#include <string>
-
-#include "base/memory/scoped_ptr.h"
-
-namespace base {
-class DictionaryValue;
-} // namespace base
-
-namespace extensions {
-class GuestViewBase;
-} // namespace extensions
-
-namespace guestview {
-
-// A GuestViewManagerDelegate interface allows GuestViewManager to delegate
-// responsibilities to other modules in Chromium. Different builds of Chromium
-// may use different GuestViewManagerDelegate implementations. For example,
-// mobile builds of Chromium do not include an extensions module and so
-// permission checks would be different, and IsOwnedByExtension would always
-// return false.
-class GuestViewManagerDelegate {
- public:
- virtual ~GuestViewManagerDelegate() {}
-
- // Dispatches the event with |name| with the provided |args| to the embedder
- // of the given |guest| with |instance_id| for routing.
- virtual void DispatchEvent(const std::string& event_name,
- scoped_ptr<base::DictionaryValue> args,
- extensions::GuestViewBase* guest,
- int instance_id) = 0;
-
- // Indicates whether the |guest| can be used within the context of where it
- // was created.
- virtual bool IsGuestAvailableToContext(extensions::GuestViewBase* guest) = 0;
-
- // Indicates whether the |guest| is owned by an extension or Chrome App.
- virtual bool IsOwnedByExtension(extensions::GuestViewBase* guest) = 0;
-
- // Registers additional GuestView types the delegator (GuestViewManger) can
- // create.
- virtual void RegisterAdditionalGuestViewTypes() = 0;
-};
-
-} // namespace guestview
-
-#endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_MANAGER_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698