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

Unified Diff: chrome/browser/extensions/api/identity_private/identity_private_api.h

Issue 14081014: Identity API: Change WebAuthFlow to use <webview> instead of a normal browser pop-up. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: chrome.identity side-by-side with chrome.experimental.identity Created 7 years, 7 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/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_

Powered by Google App Engine
This is Rietveld 408576698