Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / browser / ui / webui / version_handler_chromeos.h
blobf8977a576fac8773e562f3e6989d836ffa543b2d
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_WEBUI_VERSION_HANDLER_CHROMEOS_H_
6 #define CHROME_BROWSER_UI_WEBUI_VERSION_HANDLER_CHROMEOS_H_
8 #include <string>
10 #include "base/memory/weak_ptr.h"
11 #include "chrome/browser/ui/webui/version_handler.h"
12 #include "chromeos/system/version_loader.h"
14 // VersionHandlerChromeOS is responsible for loading the Chrome OS
15 // version.
16 class VersionHandlerChromeOS : public VersionHandler {
17 public:
18 VersionHandlerChromeOS();
19 ~VersionHandlerChromeOS() override;
21 // VersionHandler overrides:
22 void HandleRequestVersionInfo(const base::ListValue* args) override;
24 // Callback from chromeos::VersionLoader giving the version.
25 void OnVersion(const std::string& version);
27 private:
28 base::WeakPtrFactory<VersionHandlerChromeOS> weak_factory_;
30 DISALLOW_COPY_AND_ASSIGN(VersionHandlerChromeOS);
33 #endif // CHROME_BROWSER_UI_WEBUI_VERSION_HANDLER_CHROMEOS_H_