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

Unified Diff: chrome/browser/extensions/extension_managed_mode_api.h

Issue 10704201: Moving managed_mode to api/ . (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_managed_mode_api.h
diff --git a/chrome/browser/extensions/extension_managed_mode_api.h b/chrome/browser/extensions/extension_managed_mode_api.h
deleted file mode 100644
index f0cb16a046c8b64a6b09f2394ac29d6419fd22a2..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/extension_managed_mode_api.h
+++ /dev/null
@@ -1,85 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Defines the Chrome Extensions Managed Mode API relevant classes to realize
-// the API as specified in the extension API JSON.
-
-#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGED_MODE_API_H_
-#define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGED_MODE_API_H_
-
-#include "chrome/browser/extensions/extension_function.h"
-#include "chrome/browser/prefs/pref_change_registrar.h"
-#include "content/public/browser/notification_observer.h"
-
-class Profile;
-
-class ExtensionManagedModeEventRouter : public content::NotificationObserver {
- public:
- explicit ExtensionManagedModeEventRouter(Profile* profile);
- virtual ~ExtensionManagedModeEventRouter();
-
- void Init();
-
- // content::NotificationObserver implementation:
- virtual void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) OVERRIDE;
-
- private:
- PrefChangeRegistrar registrar_;
- Profile* profile_;
-
- DISALLOW_COPY_AND_ASSIGN(ExtensionManagedModeEventRouter);
-};
-
-class GetManagedModeFunction : public SyncExtensionFunction {
- public:
- DECLARE_EXTENSION_FUNCTION_NAME("managedModePrivate.get")
-
- protected:
- virtual ~GetManagedModeFunction();
-
- // ExtensionFunction:
- virtual bool RunImpl() OVERRIDE;
-};
-
-class EnterManagedModeFunction : public AsyncExtensionFunction {
- public:
- DECLARE_EXTENSION_FUNCTION_NAME("managedModePrivate.enter")
-
- protected:
- virtual ~EnterManagedModeFunction();
-
- // ExtensionFunction:
- virtual bool RunImpl() OVERRIDE;
-
- private:
- // Called when we have either successfully entered managed mode or failed.
- void SendResult(bool success);
-};
-
-
-class GetPolicyFunction : public SyncExtensionFunction {
- public:
- DECLARE_EXTENSION_FUNCTION_NAME("managedModePrivate.getPolicy")
-
- protected:
- virtual ~GetPolicyFunction();
-
- // ExtensionFunction:
- virtual bool RunImpl() OVERRIDE;
-};
-
-class SetPolicyFunction : public SyncExtensionFunction {
- public:
- DECLARE_EXTENSION_FUNCTION_NAME("managedModePrivate.setPolicy")
-
- protected:
- virtual ~SetPolicyFunction();
-
- // ExtensionFunction:
- virtual bool RunImpl() OVERRIDE;
-};
-
-#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGED_MODE_API_H_
« no previous file with comments | « chrome/browser/extensions/extension_function_registry.cc ('k') | chrome/browser/extensions/extension_managed_mode_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698