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

Unified Diff: extensions/browser/extension_host.h

Issue 198703006: Move ExtensionHost from src/chrome to src/extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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/event_router.cc ('k') | extensions/browser/extension_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_host.h
diff --git a/chrome/browser/extensions/extension_host.h b/extensions/browser/extension_host.h
similarity index 95%
rename from chrome/browser/extensions/extension_host.h
rename to extensions/browser/extension_host.h
index ca25efbcf35c8934cd4e07405164b7d69afc032d..679b9b920422014a09b5d91f49abee4b925d75a8 100644
--- a/chrome/browser/extensions/extension_host.h
+++ b/extensions/browser/extension_host.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
-#define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
+#ifndef EXTENSIONS_BROWSER_EXTENSION_HOST_H_
+#define EXTENSIONS_BROWSER_EXTENSION_HOST_H_
#include <string>
#include <vector>
@@ -37,6 +37,9 @@ class WindowController;
// It handles setting up the renderer process, if needed, with special
// privileges available to extensions. It may have a view to be shown in the
// browser UI, or it may be hidden.
+//
+// If you are adding code that only affects visible extension views (and not
+// invisible background pages) you should add it to ExtensionViewHost.
class ExtensionHost : public content::WebContentsDelegate,
public content::WebContentsObserver,
public ExtensionFunctionDispatcher::Delegate,
@@ -98,9 +101,6 @@ class ExtensionHost : public content::WebContentsDelegate,
content::WebContents* web_contents,
const content::MediaStreamRequest& request,
const content::MediaResponseCallback& callback) OVERRIDE;
- virtual bool PreHandleGestureEvent(
- content::WebContents* source,
- const blink::WebGestureEvent& event) OVERRIDE;
// content::NotificationObserver
virtual void Observe(int type,
@@ -182,4 +182,4 @@ class ExtensionHost : public content::WebContentsDelegate,
} // namespace extensions
-#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
+#endif // EXTENSIONS_BROWSER_EXTENSION_HOST_H_
« no previous file with comments | « extensions/browser/event_router.cc ('k') | extensions/browser/extension_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698