summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_chrome_auth_private_api.h
blob: 29d8beac17617c1b02e9749210647d975d7f8042 (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) 2012 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:
  DECLARE_EXTENSION_FUNCTION_NAME("chromeAuthPrivate.setCloudPrintCredentials");

  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();

  // ExtensionFunction:
  virtual bool RunImpl() OVERRIDE;
};


#endif  // CHROME_BROWSER_EXTENSIONS_EXTENSION_CHROME_AUTH_PRIVATE_API_H_