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

Side by Side Diff: chrome/browser/chromeos/extensions/echo_private_api.h

Issue 12147004: Disable/enable echo for enterprise device. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update inline comments. Created 7 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_ECHO_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_ECHO_PRIVATE_API_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_ECHO_PRIVATE_API_H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_ECHO_PRIVATE_API_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "chrome/browser/extensions/extension_function.h" 9 #include "chrome/browser/extensions/extension_function.h"
10 10
(...skipping 16 matching lines...) Expand all
27 27
28 protected: 28 protected:
29 virtual ~GetOobeTimestampFunction(); 29 virtual ~GetOobeTimestampFunction();
30 virtual bool RunImpl() OVERRIDE; 30 virtual bool RunImpl() OVERRIDE;
31 31
32 private: 32 private:
33 bool GetOobeTimestampOnFileThread(); 33 bool GetOobeTimestampOnFileThread();
34 DECLARE_EXTENSION_FUNCTION("echoPrivate.getOobeTimestamp", 34 DECLARE_EXTENSION_FUNCTION("echoPrivate.getOobeTimestamp",
35 ECHOPRIVATE_GETOOBETIMESTAMP) 35 ECHOPRIVATE_GETOOBETIMESTAMP)
36 }; 36 };
37
38 class IsEchoDisabledFunction : public SyncExtensionFunction {
Mattias Nissler (ping if slow) 2013/02/04 09:06:19 I don't see why this shouldn't better be named IsE
oscarpan 2013/02/05 00:17:47 Done.
39 public:
40 IsEchoDisabledFunction();
41
42 protected:
43 virtual ~IsEchoDisabledFunction();
44 virtual bool RunImpl() OVERRIDE;
45
46 private:
47 DECLARE_EXTENSION_FUNCTION("echoPrivate.isEchoDisabled",
48 ECHOPRIVATE_ISECHODISABLED)
49 };
37 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_ECHO_PRIVATE_API_H_ 50 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_ECHO_PRIVATE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698