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

Side by Side Diff: chrome/browser/extensions/extension_managed_mode_api.h

Issue 10071035: RefCounted types should not have public destructors, chrome/browser/extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Compile fix Created 8 years, 8 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 (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 // Defines the Chrome Extensions Managed Mode API relevant classes to realize 5 // Defines the Chrome Extensions Managed Mode API relevant classes to realize
6 // the API as specified in the extension API JSON. 6 // the API as specified in the extension API JSON.
7 7
8 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGED_MODE_API_H_ 8 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGED_MODE_API_H_
9 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGED_MODE_API_H_ 9 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGED_MODE_API_H_
10 #pragma once 10 #pragma once
11 11
12 #include "chrome/browser/extensions/extension_function.h" 12 #include "chrome/browser/extensions/extension_function.h"
13 13
14 class GetManagedModeFunction : public SyncExtensionFunction { 14 class GetManagedModeFunction : public SyncExtensionFunction {
15 public: 15 public:
16 DECLARE_EXTENSION_FUNCTION_NAME("managedModePrivate.get")
17
18 protected:
16 virtual ~GetManagedModeFunction(); 19 virtual ~GetManagedModeFunction();
20
21 // ExtensionFunction:
17 virtual bool RunImpl() OVERRIDE; 22 virtual bool RunImpl() OVERRIDE;
18 DECLARE_EXTENSION_FUNCTION_NAME("managedModePrivate.get")
19 }; 23 };
20 24
21 class EnterManagedModeFunction : public AsyncExtensionFunction { 25 class EnterManagedModeFunction : public AsyncExtensionFunction {
22 public: 26 public:
27 DECLARE_EXTENSION_FUNCTION_NAME("managedModePrivate.enter")
28
29 protected:
23 virtual ~EnterManagedModeFunction(); 30 virtual ~EnterManagedModeFunction();
31
32 // ExtensionFunction:
24 virtual bool RunImpl() OVERRIDE; 33 virtual bool RunImpl() OVERRIDE;
25 DECLARE_EXTENSION_FUNCTION_NAME("managedModePrivate.enter")
26 34
27 private: 35 private:
28 // Called when we have either successfully entered managed mode or failed. 36 // Called when we have either successfully entered managed mode or failed.
29 void SendResult(bool success); 37 void SendResult(bool success);
30 }; 38 };
31 39
32 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGED_MODE_API_H_ 40 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGED_MODE_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_input_ime_api.cc ('k') | chrome/browser/extensions/extension_management_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698