Index: chrome/browser/extensions/api/identity_private/identity_private_api.h |
diff --git a/chrome/browser/extensions/api/webview/webview_api.h b/chrome/browser/extensions/api/identity_private/identity_private_api.h |
similarity index 30% |
copy from chrome/browser/extensions/api/webview/webview_api.h |
copy to chrome/browser/extensions/api/identity_private/identity_private_api.h |
index 794232fee081871c2815604117ea97d60c1fee77..c1f507b318676a3878e97eb152dc70da87fc9060 100644 |
--- a/chrome/browser/extensions/api/webview/webview_api.h |
+++ b/chrome/browser/extensions/api/identity_private/identity_private_api.h |
@@ -2,30 +2,29 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef CHROME_BROWSER_EXTENSIONS_API_WEBVIEW_WEBVIEW_API_H_ |
-#define CHROME_BROWSER_EXTENSIONS_API_WEBVIEW_WEBVIEW_API_H_ |
+#ifndef CHROME_BROWSER_EXTENSIONS_API_IDENTITY_PRIVATE_IDENTITY_PRIVATE_API_H_ |
+#define CHROME_BROWSER_EXTENSIONS_API_IDENTITY_PRIVATE_IDENTITY_PRIVATE_API_H_ |
#include "chrome/browser/extensions/extension_function.h" |
-#include "chrome/browser/extensions/script_executor.h" |
-class WebviewExecuteScriptFunction : public AsyncExtensionFunction { |
- public: |
- DECLARE_EXTENSION_FUNCTION("webview.executeScript", WEBVIEW_EXECUTESCRIPT) |
+namespace extensions { |
- WebviewExecuteScriptFunction(); |
+class IdentityPrivateGetResourcesFunction : public SyncExtensionFunction { |
+ public: |
+ DECLARE_EXTENSION_FUNCTION("identityPrivate.getResources", |
+ IDENTITYPRIVATE_GETRESOURCES); |
+ IdentityPrivateGetResourcesFunction(); |
protected: |
- virtual ~WebviewExecuteScriptFunction(); |
+ virtual ~IdentityPrivateGetResourcesFunction(); |
- // ExtensionFunction implementation. |
+ // ExtensionFunction: |
virtual bool RunImpl() OVERRIDE; |
private: |
+ DISALLOW_COPY_AND_ASSIGN(IdentityPrivateGetResourcesFunction); |
+}; |
- void OnExecuteCodeFinished(const std::string& error, |
- int32 on_page_id, |
- const GURL& on_url, |
- const ListValue& result); |
+} // extensions |
-}; |
-#endif // CHROME_BROWSER_EXTENSIONS_API_WEBVIEW_WEBVIEW_API_H_ |
+#endif // CHROME_BROWSER_EXTENSIONS_API_IDENTITY_PRIVATE_IDENTITY_PRIVATE_API_H_ |