blob: d5f66295c76542ccc3f1e2a58f36ac72b0a39499 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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_
|