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

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

Issue 1102173002: Move GuestView layer in browser to components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed John's comments 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
« no previous file with comments | « extensions/browser/guest_view/guest_view_base.cc ('k') | extensions/browser/guest_view/guest_view_event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/guest_view/guest_view_event.h
diff --git a/extensions/browser/guest_view/guest_view_event.h b/extensions/browser/guest_view/guest_view_event.h
deleted file mode 100644
index c9c8cb89e94451581f77b229cba991373aa89ab7..0000000000000000000000000000000000000000
--- a/extensions/browser/guest_view/guest_view_event.h
+++ /dev/null
@@ -1,41 +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_EVENT_H_
-#define EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_EVENT_H_
-
-#include <string>
-
-#include "base/memory/scoped_ptr.h"
-#include "base/values.h"
-
-namespace extensions {
-
-class GuestViewBase;
-
-// A GuestViewEvent is a wrapper class for a GuestView event.
-// GuestViewEvents may be queued until the guest is attached to a container.
-// This wrapper class holds all the necessary information to fire the event
-// on attachment. GuestViewEvents are owned by GuestViewBase.
-class GuestViewEvent {
- public:
- GuestViewEvent(const std::string& name,
- scoped_ptr<base::DictionaryValue> args);
- ~GuestViewEvent();
-
- // This method will dispatch the event to the specified |guest|'s embedder and
- // use the provided |instance_id| for routing. After dispatch, this object
- // will self-destruct.
- void Dispatch(GuestViewBase* guest, int instance_id);
-
-private:
- const std::string name_;
- scoped_ptr<base::DictionaryValue> args_;
-
- DISALLOW_COPY_AND_ASSIGN(GuestViewEvent);
-};
-
-} // namespace extensions
-
-#endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_EVENT_H_
« no previous file with comments | « extensions/browser/guest_view/guest_view_base.cc ('k') | extensions/browser/guest_view/guest_view_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698