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

Unified Diff: chrome/browser/guest_view/guest_view.h

Issue 257823005: [Sheriff] Revert "Revert "Revert 266297 "1. Handle the case of empty embedder_extension_id...""" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « chrome/browser/guest_view/ad_view/ad_view_guest.cc ('k') | chrome/browser/guest_view/guest_view_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/guest_view/guest_view.h
diff --git a/chrome/browser/guest_view/guest_view.h b/chrome/browser/guest_view/guest_view.h
deleted file mode 100644
index 351930541b93ca39a0a3df05b85173790995fbdf..0000000000000000000000000000000000000000
--- a/chrome/browser/guest_view/guest_view.h
+++ /dev/null
@@ -1,41 +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 CHROME_BROWSER_GUEST_VIEW_GUEST_VIEW_H_
-#define CHROME_BROWSER_GUEST_VIEW_GUEST_VIEW_H_
-
-#include "chrome/browser/guest_view/guest_view_base.h"
-
-template <typename T>
-class GuestView : public GuestViewBase {
- public:
- static T* From(int embedder_process_id, int guest_instance_id) {
- GuestViewBase* guest =
- GuestViewBase::From(embedder_process_id, guest_instance_id);
- if (!guest)
- return NULL;
- return guest->As<T>();
- }
-
- static T* FromWebContents(content::WebContents* contents) {
- GuestViewBase* guest = GuestViewBase::FromWebContents(contents);
- return guest ? guest->As<T>() : NULL;
- }
-
- // GuestViewBase implementation.
- virtual const std::string& GetViewType() const OVERRIDE { return type_; }
-
- protected:
- GuestView(content::WebContents* guest_web_contents,
- const std::string& embedder_extension_id)
- : GuestViewBase(guest_web_contents, embedder_extension_id),
- type_(T::Type) {}
-
- private:
- std::string type_;
-
- DISALLOW_COPY_AND_ASSIGN(GuestView);
-};
-
-#endif // CHROME_BROWSER_GUEST_VIEW_GUEST_VIEW_H_
« no previous file with comments | « chrome/browser/guest_view/ad_view/ad_view_guest.cc ('k') | chrome/browser/guest_view/guest_view_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698