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

Unified Diff: chrome/browser/extensions/extension_chrome_auth_private_api.h

Issue 7253001: Added a private chromeAuthPrivate API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed unittest failure Created 9 years, 6 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/extension_chrome_auth_private_api.h
diff --git a/chrome/browser/extensions/extension_chrome_auth_private_api.h b/chrome/browser/extensions/extension_chrome_auth_private_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..d5f66295c76542ccc3f1e2a58f36ac72b0a39499
--- /dev/null
+++ b/chrome/browser/extensions/extension_chrome_auth_private_api.h
@@ -0,0 +1,31 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// 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_CHROME_AUTH_PRIVATE_API_H_
+#define CHROME_BROWSER_EXTENSIONS_EXTENSION_CHROME_AUTH_PRIVATE_API_H_
+#pragma once
+
+#include <string>
+#include "chrome/browser/extensions/extension_function.h"
+
+class SetCloudPrintCredentialsFunction : public AsyncExtensionFunction {
+ public:
+ SetCloudPrintCredentialsFunction();
+
+ // For use only in tests - sets a flag that can cause this function to not
+ // actually set the credentials but instead simply reflect the passed in
+ // arguments appended together as one string back in results_.
+ static void SetTestMode(bool test_mode_enabled);
+
+ protected:
+ virtual ~SetCloudPrintCredentialsFunction();
+
+ virtual bool RunImpl();
+
+ private:
+ DECLARE_EXTENSION_FUNCTION_NAME("chromeAuthPrivate.setCloudPrintCredentials");
+};
+
+
+#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_CHROME_AUTH_PRIVATE_API_H_
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/extensions/extension_chrome_auth_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698