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

Unified Diff: chrome/browser/extensions/api/webview/webview_api.h

Issue 257333002: Drive extension functions from ExtensionFunction::Run. The (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comment 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
Index: chrome/browser/extensions/api/webview/webview_api.h
diff --git a/chrome/browser/extensions/api/webview/webview_api.h b/chrome/browser/extensions/api/webview/webview_api.h
index b90eef78488c4974e69c36380be14b16d6592bb2..5e0a4ad2c2699d9ef4d0dbb9ba4b150799d2d9b9 100644
--- a/chrome/browser/extensions/api/webview/webview_api.h
+++ b/chrome/browser/extensions/api/webview/webview_api.h
@@ -18,7 +18,7 @@
namespace extensions {
// An abstract base class for async webview APIs. It does a process ID check
-// in RunImpl, and then calls RunImplSafe which must be overriden by all
+// in RunAsync, and then calls RunAsyncSafe which must be overriden by all
// subclasses.
class WebviewExtensionFunction : public AsyncExtensionFunction {
public:
@@ -28,10 +28,10 @@ class WebviewExtensionFunction : public AsyncExtensionFunction {
virtual ~WebviewExtensionFunction() {}
// ExtensionFunction implementation.
- virtual bool RunImpl() OVERRIDE FINAL;
+ virtual bool RunAsync() OVERRIDE FINAL;
private:
- virtual bool RunImplSafe(WebViewGuest* guest) = 0;
+ virtual bool RunAsyncSafe(WebViewGuest* guest) = 0;
};
class WebviewContextMenusCreateFunction : public AsyncExtensionFunction {
@@ -44,7 +44,7 @@ class WebviewContextMenusCreateFunction : public AsyncExtensionFunction {
virtual ~WebviewContextMenusCreateFunction() {}
// ExtensionFunction implementation.
- virtual bool RunImpl() OVERRIDE;
+ virtual bool RunAsync() OVERRIDE;
private:
DISALLOW_COPY_AND_ASSIGN(WebviewContextMenusCreateFunction);
@@ -60,7 +60,7 @@ class WebviewContextMenusUpdateFunction : public AsyncExtensionFunction {
virtual ~WebviewContextMenusUpdateFunction() {}
// ExtensionFunction implementation.
- virtual bool RunImpl() OVERRIDE;
+ virtual bool RunAsync() OVERRIDE;
private:
DISALLOW_COPY_AND_ASSIGN(WebviewContextMenusUpdateFunction);
@@ -76,7 +76,7 @@ class WebviewContextMenusRemoveFunction : public AsyncExtensionFunction {
virtual ~WebviewContextMenusRemoveFunction() {}
// ExtensionFunction implementation.
- virtual bool RunImpl() OVERRIDE;
+ virtual bool RunAsync() OVERRIDE;
private:
DISALLOW_COPY_AND_ASSIGN(WebviewContextMenusRemoveFunction);
@@ -92,7 +92,7 @@ class WebviewContextMenusRemoveAllFunction : public AsyncExtensionFunction {
virtual ~WebviewContextMenusRemoveAllFunction() {}
// ExtensionFunction implementation.
- virtual bool RunImpl() OVERRIDE;
+ virtual bool RunAsync() OVERRIDE;
private:
DISALLOW_COPY_AND_ASSIGN(WebviewContextMenusRemoveAllFunction);
@@ -109,7 +109,7 @@ class WebviewClearDataFunction : public WebviewExtensionFunction {
private:
// WebviewExtensionFunction implementation.
- virtual bool RunImplSafe(WebViewGuest* guest) OVERRIDE;
+ virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE;
uint32 GetRemovalMask();
void ClearDataDone();
@@ -214,7 +214,7 @@ class WebviewSetZoomFunction : public WebviewExtensionFunction {
virtual ~WebviewSetZoomFunction();
private:
- virtual bool RunImplSafe(WebViewGuest* guest) OVERRIDE;
+ virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE;
DISALLOW_COPY_AND_ASSIGN(WebviewSetZoomFunction);
};
@@ -229,7 +229,7 @@ class WebviewGetZoomFunction : public WebviewExtensionFunction {
virtual ~WebviewGetZoomFunction();
private:
- virtual bool RunImplSafe(WebViewGuest* guest) OVERRIDE;
+ virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE;
DISALLOW_COPY_AND_ASSIGN(WebviewGetZoomFunction);
};
@@ -248,7 +248,7 @@ class WebviewFindFunction : public WebviewExtensionFunction {
private:
// WebviewExtensionFunction implementation.
- virtual bool RunImplSafe(WebViewGuest* guest) OVERRIDE;
+ virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE;
DISALLOW_COPY_AND_ASSIGN(WebviewFindFunction);
};
@@ -264,7 +264,7 @@ class WebviewStopFindingFunction : public WebviewExtensionFunction {
private:
// WebviewExtensionFunction implementation.
- virtual bool RunImplSafe(WebViewGuest* guest) OVERRIDE;
+ virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE;
DISALLOW_COPY_AND_ASSIGN(WebviewStopFindingFunction);
};
@@ -280,7 +280,7 @@ class WebviewGoFunction : public WebviewExtensionFunction {
private:
// WebviewExtensionFunction implementation.
- virtual bool RunImplSafe(WebViewGuest* guest) OVERRIDE;
+ virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE;
DISALLOW_COPY_AND_ASSIGN(WebviewGoFunction);
};
@@ -296,7 +296,7 @@ class WebviewReloadFunction : public WebviewExtensionFunction {
private:
// WebviewExtensionFunction implementation.
- virtual bool RunImplSafe(WebViewGuest* guest) OVERRIDE;
+ virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE;
DISALLOW_COPY_AND_ASSIGN(WebviewReloadFunction);
};
@@ -312,7 +312,7 @@ class WebviewSetPermissionFunction : public WebviewExtensionFunction {
private:
// WebviewExtensionFunction implementation.
- virtual bool RunImplSafe(WebViewGuest* guest) OVERRIDE;
+ virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE;
DISALLOW_COPY_AND_ASSIGN(WebviewSetPermissionFunction);
};
@@ -329,7 +329,7 @@ class WebviewOverrideUserAgentFunction: public WebviewExtensionFunction {
private:
// WebviewExtensionFunction implementation.
- virtual bool RunImplSafe(WebViewGuest* guest) OVERRIDE;
+ virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE;
DISALLOW_COPY_AND_ASSIGN(WebviewOverrideUserAgentFunction);
};
@@ -345,7 +345,7 @@ class WebviewStopFunction : public WebviewExtensionFunction {
private:
// WebviewExtensionFunction implementation.
- virtual bool RunImplSafe(WebViewGuest* guest) OVERRIDE;
+ virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE;
DISALLOW_COPY_AND_ASSIGN(WebviewStopFunction);
};
@@ -361,7 +361,7 @@ class WebviewTerminateFunction : public WebviewExtensionFunction {
private:
// WebviewExtensionFunction implementation.
- virtual bool RunImplSafe(WebViewGuest* guest) OVERRIDE;
+ virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE;
DISALLOW_COPY_AND_ASSIGN(WebviewTerminateFunction);
};

Powered by Google App Engine
This is Rietveld 408576698