Get rid of the RenderViewType concept in content, since it was only used by Chrome. Store the enum value in the WebContents' property bag.
BUG=98716
Review URL: https://chromiumcodereview.appspot.com/10409088
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138434 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/extensions/extension_process_manager.h b/chrome/browser/extensions/extension_process_manager.h
index c695d21..9561c4b2 100644
--- a/chrome/browser/extensions/extension_process_manager.h
+++ b/chrome/browser/extensions/extension_process_manager.h
@@ -14,7 +14,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "base/time.h"
-#include "content/public/common/view_type.h"
+#include "chrome/common/view_type.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
@@ -56,10 +56,10 @@
virtual ExtensionHost* CreateViewHost(const extensions::Extension* extension,
const GURL& url,
Browser* browser,
- content::ViewType view_type);
+ chrome::ViewType view_type);
ExtensionHost* CreateViewHost(const GURL& url,
Browser* browser,
- content::ViewType view_type);
+ chrome::ViewType view_type);
ExtensionHost* CreatePopupHost(const extensions::Extension* extension,
const GURL& url,
Browser* browser);
@@ -171,7 +171,7 @@
// We also keep a cache of the host's view type, because that information
// is not accessible at registration/deregistration time.
typedef std::map<content::RenderViewHost*,
- content::ViewType> ExtensionRenderViews;
+ chrome::ViewType> ExtensionRenderViews;
ExtensionRenderViews all_extension_views_;
// Close the given |host| iff it's a background page.
@@ -179,7 +179,7 @@
// Ensure browser object is not null except for certain situations.
void EnsureBrowserWhenRequired(Browser* browser,
- content::ViewType view_type);
+ chrome::ViewType view_type);
// These are called when the extension transitions between idle and active.
// They control the process of closing the background page when idle.