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

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

Issue 10500013: Delete old policy code after AsyncPolicyLoader refactor. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebased Created 8 years, 6 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/file_based_policy_provider.h
diff --git a/chrome/browser/policy/file_based_policy_provider.h b/chrome/browser/policy/file_based_policy_provider.h
deleted file mode 100644
index dbc8f5937d3b4c9b93e1a9d2095330235fbf120c..0000000000000000000000000000000000000000
--- a/chrome/browser/policy/file_based_policy_provider.h
+++ /dev/null
@@ -1,54 +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_FILE_BASED_POLICY_PROVIDER_H_
-#define CHROME_BROWSER_POLICY_FILE_BASED_POLICY_PROVIDER_H_
-#pragma once
-
-#include "base/file_path.h"
-#include "base/time.h"
-#include "chrome/browser/policy/asynchronous_policy_provider.h"
-
-namespace policy {
-
-// File based policy provider that coordinates watching and reloading policy
-// information from the configuration path. Actual logic for loading policy
-// information is handled by a delegate passed at construction time.
-class FileBasedPolicyProvider : public AsynchronousPolicyProvider {
- public:
-
- // Delegate interface for actual policy loading from the system.
- class ProviderDelegate : public AsynchronousPolicyProvider::Delegate {
- public:
- explicit ProviderDelegate(const FilePath& config_file_path);
- virtual ~ProviderDelegate();
-
- // AsynchronousPolicyProvider::Delegate implementation:
- virtual scoped_ptr<PolicyBundle> Load() = 0;
-
- // Gets the last modification timestamp for the policy information from the
- // filesystem. Returns base::Time() if the information is not present, in
- // which case Load() should return an empty dictionary.
- virtual base::Time GetLastModification() = 0;
-
- const FilePath& config_file_path() { return config_file_path_; }
-
- private:
- const FilePath config_file_path_;
-
- DISALLOW_COPY_AND_ASSIGN(ProviderDelegate);
- };
-
- // Assumes ownership of |delegate|.
- FileBasedPolicyProvider(const PolicyDefinitionList* policy_list,
- ProviderDelegate* delegate);
- virtual ~FileBasedPolicyProvider() {}
-
- private:
- DISALLOW_COPY_AND_ASSIGN(FileBasedPolicyProvider);
-};
-
-} // namespace policy
-
-#endif // CHROME_BROWSER_POLICY_FILE_BASED_POLICY_PROVIDER_H_
« no previous file with comments | « chrome/browser/policy/file_based_policy_loader.cc ('k') | chrome/browser/policy/file_based_policy_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698