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

Unified Diff: chrome/browser/policy/user_cloud_policy_manager.h

Issue 12189011: Split up chrome/browser/policy subdirectory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, add chrome/browser/chromeos/policy/OWNERS Created 7 years, 9 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/policy/user_cloud_policy_manager.h
diff --git a/chrome/browser/policy/user_cloud_policy_manager.h b/chrome/browser/policy/user_cloud_policy_manager.h
deleted file mode 100644
index 8c4dbfbcc43688c1db278d4b69a4ae2358187499..0000000000000000000000000000000000000000
--- a/chrome/browser/policy/user_cloud_policy_manager.h
+++ /dev/null
@@ -1,70 +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.
-
-#ifndef CHROME_BROWSER_POLICY_USER_CLOUD_POLICY_MANAGER_H_
-#define CHROME_BROWSER_POLICY_USER_CLOUD_POLICY_MANAGER_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/memory/scoped_ptr.h"
-#include "chrome/browser/policy/cloud_policy_manager.h"
-
-class PrefService;
-class Profile;
-
-namespace policy {
-
-class DeviceManagementService;
-class UserCloudPolicyStore;
-
-// UserCloudPolicyManager handles initialization of user policy for Chrome
-// Profiles on the desktop platforms.
-class UserCloudPolicyManager : public CloudPolicyManager {
- public:
- UserCloudPolicyManager(Profile* profile,
- scoped_ptr<UserCloudPolicyStore> store);
- virtual ~UserCloudPolicyManager();
-
- // Initializes the cloud connection. |local_state| and
- // |device_management_service| must stay valid until this object is deleted or
- // DisconnectAndRemovePolicy() gets called. Virtual for mocking.
- virtual void Connect(PrefService* local_state,
- scoped_ptr<CloudPolicyClient> client);
-
- // Shuts down the UserCloudPolicyManager (removes and stops refreshing the
- // cached cloud policy). This is typically called when a profile is being
- // disassociated from a given user (e.g. during signout). No policy will be
- // provided by this object until the next time Initialize() is invoked.
- void DisconnectAndRemovePolicy();
-
- // Returns true if the underlying CloudPolicyClient is already registered.
- // Virtual for mocking.
- virtual bool IsClientRegistered() const;
-
- // Register the CloudPolicyClient using the passed OAuth token. This contacts
- // the DMServer to mint a new DMToken.
- void RegisterClient(const std::string& access_token);
-
- // Creates a CloudPolicyClient for this client. Used in situations where
- // callers want to create a DMToken without actually initializing the
- // profile's policy infrastructure.
- static scoped_ptr<CloudPolicyClient> CreateCloudPolicyClient(
- DeviceManagementService* device_management_service);
-
- private:
- // The profile this instance belongs to.
- Profile* profile_;
-
- // Typed pointer to the store owned by UserCloudPolicyManager. Note that
- // CloudPolicyManager only keeps a plain CloudPolicyStore pointer.
- scoped_ptr<UserCloudPolicyStore> store_;
-
- DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyManager);
-};
-
-} // namespace policy
-
-#endif // CHROME_BROWSER_POLICY_USER_CLOUD_POLICY_MANAGER_H_
« no previous file with comments | « chrome/browser/policy/test_request_interceptor.cc ('k') | chrome/browser/policy/user_cloud_policy_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698