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

Side by Side Diff: chrome/browser/extensions/api/hotword_private/hotword_private_api.h

Issue 252653002: Rename (Chrome)SyncExtensionFunction::RunImpl to RunSync so that the RunImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix bookmarks Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_HOTWORD_PRIVATE_HOTWORD_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_HOTWORD_PRIVATE_HOTWORD_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_HOTWORD_PRIVATE_HOTWORD_PRIVATE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_HOTWORD_PRIVATE_HOTWORD_PRIVATE_API_H_
7 7
8 #include "base/prefs/pref_change_registrar.h" 8 #include "base/prefs/pref_change_registrar.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/extensions/chrome_extension_function.h" 10 #include "chrome/browser/extensions/chrome_extension_function.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 class HotwordPrivateSetEnabledFunction : public ChromeSyncExtensionFunction { 43 class HotwordPrivateSetEnabledFunction : public ChromeSyncExtensionFunction {
44 public: 44 public:
45 DECLARE_EXTENSION_FUNCTION("hotwordPrivate.setEnabled", 45 DECLARE_EXTENSION_FUNCTION("hotwordPrivate.setEnabled",
46 HOTWORDPRIVATE_SETENABLED) 46 HOTWORDPRIVATE_SETENABLED)
47 47
48 protected: 48 protected:
49 virtual ~HotwordPrivateSetEnabledFunction() {} 49 virtual ~HotwordPrivateSetEnabledFunction() {}
50 50
51 // ExtensionFunction: 51 // ExtensionFunction:
52 virtual bool RunImpl() OVERRIDE; 52 virtual bool RunSync() OVERRIDE;
53 }; 53 };
54 54
55 class HotwordPrivateSetAudioLoggingEnabledFunction 55 class HotwordPrivateSetAudioLoggingEnabledFunction
56 : public ChromeSyncExtensionFunction { 56 : public ChromeSyncExtensionFunction {
57 public: 57 public:
58 DECLARE_EXTENSION_FUNCTION("hotwordPrivate.setAudioLoggingEnabled", 58 DECLARE_EXTENSION_FUNCTION("hotwordPrivate.setAudioLoggingEnabled",
59 HOTWORDPRIVATE_SETAUDIOLOGGINGENABLED) 59 HOTWORDPRIVATE_SETAUDIOLOGGINGENABLED)
60 60
61 protected: 61 protected:
62 virtual ~HotwordPrivateSetAudioLoggingEnabledFunction() {} 62 virtual ~HotwordPrivateSetAudioLoggingEnabledFunction() {}
63 63
64 // ExtensionFunction: 64 // ExtensionFunction:
65 virtual bool RunImpl() OVERRIDE; 65 virtual bool RunSync() OVERRIDE;
66 }; 66 };
67 67
68 class HotwordPrivateGetStatusFunction : public ChromeSyncExtensionFunction { 68 class HotwordPrivateGetStatusFunction : public ChromeSyncExtensionFunction {
69 public: 69 public:
70 DECLARE_EXTENSION_FUNCTION("hotwordPrivate.getStatus", 70 DECLARE_EXTENSION_FUNCTION("hotwordPrivate.getStatus",
71 HOTWORDPRIVATE_GETSTATUS) 71 HOTWORDPRIVATE_GETSTATUS)
72 72
73 protected: 73 protected:
74 virtual ~HotwordPrivateGetStatusFunction() {} 74 virtual ~HotwordPrivateGetStatusFunction() {}
75 75
76 // ExtensionFunction: 76 // ExtensionFunction:
77 virtual bool RunImpl() OVERRIDE; 77 virtual bool RunSync() OVERRIDE;
78 }; 78 };
79 79
80 } // namespace extensions 80 } // namespace extensions
81 81
82 #endif // CHROME_BROWSER_EXTENSIONS_API_HOTWORD_PRIVATE_HOTWORD_PRIVATE_API_H_ 82 #endif // CHROME_BROWSER_EXTENSIONS_API_HOTWORD_PRIVATE_HOTWORD_PRIVATE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698