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

Side by Side Diff: chrome/browser/extensions/api/autotest_private/autotest_private_api.h

Issue 624153002: replace OVERRIDE and FINAL with override and final in chrome/browser/extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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_EXTENSIONS_API_AUTOTEST_PRIVATE_AUTOTEST_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_AUTOTEST_PRIVATE_AUTOTEST_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_AUTOTEST_PRIVATE_AUTOTEST_PRIVATE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_AUTOTEST_PRIVATE_AUTOTEST_PRIVATE_API_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "chrome/browser/extensions/chrome_extension_function.h" 11 #include "chrome/browser/extensions/chrome_extension_function.h"
12 #include "extensions/browser/browser_context_keyed_api_factory.h" 12 #include "extensions/browser/browser_context_keyed_api_factory.h"
13 13
14 namespace extensions { 14 namespace extensions {
15 15
16 class AutotestPrivateLogoutFunction : public ChromeSyncExtensionFunction { 16 class AutotestPrivateLogoutFunction : public ChromeSyncExtensionFunction {
17 public: 17 public:
18 DECLARE_EXTENSION_FUNCTION("autotestPrivate.logout", AUTOTESTPRIVATE_LOGOUT) 18 DECLARE_EXTENSION_FUNCTION("autotestPrivate.logout", AUTOTESTPRIVATE_LOGOUT)
19 19
20 private: 20 private:
21 virtual ~AutotestPrivateLogoutFunction() {} 21 virtual ~AutotestPrivateLogoutFunction() {}
22 virtual bool RunSync() OVERRIDE; 22 virtual bool RunSync() override;
23 }; 23 };
24 24
25 class AutotestPrivateRestartFunction : public ChromeSyncExtensionFunction { 25 class AutotestPrivateRestartFunction : public ChromeSyncExtensionFunction {
26 public: 26 public:
27 DECLARE_EXTENSION_FUNCTION("autotestPrivate.restart", AUTOTESTPRIVATE_RESTART) 27 DECLARE_EXTENSION_FUNCTION("autotestPrivate.restart", AUTOTESTPRIVATE_RESTART)
28 28
29 private: 29 private:
30 virtual ~AutotestPrivateRestartFunction() {} 30 virtual ~AutotestPrivateRestartFunction() {}
31 virtual bool RunSync() OVERRIDE; 31 virtual bool RunSync() override;
32 }; 32 };
33 33
34 class AutotestPrivateShutdownFunction : public ChromeSyncExtensionFunction { 34 class AutotestPrivateShutdownFunction : public ChromeSyncExtensionFunction {
35 public: 35 public:
36 DECLARE_EXTENSION_FUNCTION("autotestPrivate.shutdown", 36 DECLARE_EXTENSION_FUNCTION("autotestPrivate.shutdown",
37 AUTOTESTPRIVATE_SHUTDOWN) 37 AUTOTESTPRIVATE_SHUTDOWN)
38 38
39 private: 39 private:
40 virtual ~AutotestPrivateShutdownFunction() {} 40 virtual ~AutotestPrivateShutdownFunction() {}
41 virtual bool RunSync() OVERRIDE; 41 virtual bool RunSync() override;
42 }; 42 };
43 43
44 class AutotestPrivateLoginStatusFunction : public ChromeSyncExtensionFunction { 44 class AutotestPrivateLoginStatusFunction : public ChromeSyncExtensionFunction {
45 public: 45 public:
46 DECLARE_EXTENSION_FUNCTION("autotestPrivate.loginStatus", 46 DECLARE_EXTENSION_FUNCTION("autotestPrivate.loginStatus",
47 AUTOTESTPRIVATE_LOGINSTATUS) 47 AUTOTESTPRIVATE_LOGINSTATUS)
48 48
49 private: 49 private:
50 virtual ~AutotestPrivateLoginStatusFunction() {} 50 virtual ~AutotestPrivateLoginStatusFunction() {}
51 virtual bool RunSync() OVERRIDE; 51 virtual bool RunSync() override;
52 }; 52 };
53 53
54 class AutotestPrivateLockScreenFunction : public ChromeSyncExtensionFunction { 54 class AutotestPrivateLockScreenFunction : public ChromeSyncExtensionFunction {
55 public: 55 public:
56 DECLARE_EXTENSION_FUNCTION("autotestPrivate.lockScreen", 56 DECLARE_EXTENSION_FUNCTION("autotestPrivate.lockScreen",
57 AUTOTESTPRIVATE_LOCKSCREEN) 57 AUTOTESTPRIVATE_LOCKSCREEN)
58 58
59 private: 59 private:
60 virtual ~AutotestPrivateLockScreenFunction() {} 60 virtual ~AutotestPrivateLockScreenFunction() {}
61 virtual bool RunSync() OVERRIDE; 61 virtual bool RunSync() override;
62 }; 62 };
63 63
64 class AutotestPrivateGetExtensionsInfoFunction 64 class AutotestPrivateGetExtensionsInfoFunction
65 : public ChromeSyncExtensionFunction { 65 : public ChromeSyncExtensionFunction {
66 public: 66 public:
67 DECLARE_EXTENSION_FUNCTION("autotestPrivate.getExtensionsInfo", 67 DECLARE_EXTENSION_FUNCTION("autotestPrivate.getExtensionsInfo",
68 AUTOTESTPRIVATE_GETEXTENSIONSINFO) 68 AUTOTESTPRIVATE_GETEXTENSIONSINFO)
69 69
70 private: 70 private:
71 virtual ~AutotestPrivateGetExtensionsInfoFunction() {} 71 virtual ~AutotestPrivateGetExtensionsInfoFunction() {}
72 virtual bool RunSync() OVERRIDE; 72 virtual bool RunSync() override;
73 }; 73 };
74 74
75 class AutotestPrivateSimulateAsanMemoryBugFunction 75 class AutotestPrivateSimulateAsanMemoryBugFunction
76 : public ChromeSyncExtensionFunction { 76 : public ChromeSyncExtensionFunction {
77 public: 77 public:
78 DECLARE_EXTENSION_FUNCTION("autotestPrivate.simulateAsanMemoryBug", 78 DECLARE_EXTENSION_FUNCTION("autotestPrivate.simulateAsanMemoryBug",
79 AUTOTESTPRIVATE_SIMULATEASANMEMORYBUG) 79 AUTOTESTPRIVATE_SIMULATEASANMEMORYBUG)
80 80
81 private: 81 private:
82 virtual ~AutotestPrivateSimulateAsanMemoryBugFunction() {} 82 virtual ~AutotestPrivateSimulateAsanMemoryBugFunction() {}
83 virtual bool RunSync() OVERRIDE; 83 virtual bool RunSync() override;
84 }; 84 };
85 85
86 // Don't kill the browser when we're in a browser test. 86 // Don't kill the browser when we're in a browser test.
87 void SetAutotestPrivateTest(); 87 void SetAutotestPrivateTest();
88 88
89 // The profile-keyed service that manages the autotestPrivate extension API. 89 // The profile-keyed service that manages the autotestPrivate extension API.
90 class AutotestPrivateAPI : public BrowserContextKeyedAPI { 90 class AutotestPrivateAPI : public BrowserContextKeyedAPI {
91 public: 91 public:
92 static BrowserContextKeyedAPIFactory<AutotestPrivateAPI>* 92 static BrowserContextKeyedAPIFactory<AutotestPrivateAPI>*
93 GetFactoryInstance(); 93 GetFactoryInstance();
(...skipping 17 matching lines...) Expand all
111 }; 111 };
112 112
113 template <> 113 template <>
114 KeyedService* 114 KeyedService*
115 BrowserContextKeyedAPIFactory<AutotestPrivateAPI>::BuildServiceInstanceFor( 115 BrowserContextKeyedAPIFactory<AutotestPrivateAPI>::BuildServiceInstanceFor(
116 content::BrowserContext* context) const; 116 content::BrowserContext* context) const;
117 117
118 } // namespace extensions 118 } // namespace extensions
119 119
120 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOTEST_PRIVATE_AUTOTEST_PRIVATE_API_H _ 120 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOTEST_PRIVATE_AUTOTEST_PRIVATE_API_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698